-
Notifications
You must be signed in to change notification settings - Fork 13
/
___2da10h.c
128 lines (98 loc) · 2.08 KB
/
___2da10h.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
#include "drally.h"
extern __BYTE__ ___1a0a50h[];
extern __POINTER__ ___1a112ch__VESA101_ACTIVESCREEN_PTR;
extern __POINTER__ ___1a1e5ch;
extern __DWORD__ ___1a0178h_PriceRocketFuel;
int ___25180h_cdecl(const char * A1);
void ___12f60h_cdecl(const char * A1, __DWORD__ A2);
void ___2d184h(void);
void ___2d20ch(void);
char * itoa_watcom106(int value, char * buffer, int radix);
void ___2d054h_cdecl(__DWORD__);
// MARKET ROCKET FUEL
void ___2da10h(void){
__DWORD__ eax, ebx, ecx, edx, edi, esi, ebp;
__BYTE__ esp[0x28];
__POINTER__ esip;
__POINTER__ ebxp;
if(D(___1a0a50h+8) == 1){
ecx = 0x60;
ebxp = ___1a112ch__VESA101_ACTIVESCREEN_PTR+0x27960;
esip = ___1a1e5ch+0x4800;
edx = ecx;
L(edx) >>= 2;
while(1){
H(ecx) = L(edx);
while(1){
eax = D(esip);
D(ebxp) = eax;
ebxp += 0x4;
esip += 0x4;
H(ecx)--;
if(H(ecx) == 0) break;
}
ebxp += 0x280;
L(edx) <<= 2;
ebxp -= edx;
L(edx) >>= 2;
L(ecx)--;
if(L(ecx) == 0) break;
}
___2d054h_cdecl(0x2);
itoa_watcom106(___1a0178h_PriceRocketFuel, esp, 0xa);
strcpy(esp+0x14, "$");
strcat(esp+0x14, esp);
___12f60h_cdecl(esp+0x14, ___25180h_cdecl(esp+0x14)+0x34660);
}
if(D(___1a0a50h+8) == 0){
ecx = 0x60;
ebxp = ___1a112ch__VESA101_ACTIVESCREEN_PTR+0x27960;
esip = ___1a1e5ch+0x16800;
edx = ecx;
L(edx) >>= 2;
while(1){
H(ecx) = L(edx);
while(1){
eax = D(esip);
D(ebxp) = eax;
ebxp += 0x4;
esip += 0x4;
H(ecx)--;
if(H(ecx) == 0) break;
}
ebxp += 0x280;
L(edx) <<= 2;
ebxp -= edx;
L(edx) >>= 2;
L(ecx)--;
if(L(ecx) == 0) break;
}
___2d184h();
}
if(D(___1a0a50h+8) == 0xffffffff){
ecx = 0x60;
ebxp = ___1a112ch__VESA101_ACTIVESCREEN_PTR+= 0x27960;
esip = ___1a1e5ch+0xd800;
edx = ecx;
L(edx) >>= 2;
while(1){
H(ecx) = L(edx);
while(1){
eax = D(esip);
D(ebxp) = eax;
ebxp += 0x4;
esip += 0x4;
H(ecx)--;
if(H(ecx) == 0) break;
}
ebxp += 0x280;
L(edx) <<= 2;
ebxp -= edx;
L(edx) >>= 2;
L(ecx)--;
if(L(ecx) == 0) break;
}
___2d20ch();
}
return;
}