-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path___15e3ch.c
148 lines (107 loc) · 3.56 KB
/
___15e3ch.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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
#include "drally.h"
#include "drally_fonts.h"
#include "drally_structs_fixed.h"
extern __POINTER__ ___1a112ch__VESA101_ACTIVESCREEN_PTR;
extern __POINTER__ ___1a1e84h;
extern __BYTE__ ___196aa8h[];
extern __BYTE__ ___1a1ef8h[];
extern __BYTE__ ___1a01e0h[];
extern __BYTE__ ___1a1ff1h[];
__DWORD__ ___14c50h(void);
void ___13248h_cdecl(__DWORD__, __DWORD__ ,__DWORD__, __DWORD__, __DWORD__);
// HITMAN RESULT
__DWORD__ ___15e3ch(void){
__BYTE__ esp[0x4c];
__BYTE__ px;
int i, j;
racer_t * s_6c;
s_6c = (racer_t *)___1a01e0h;
___13248h_cdecl(33, 131, 482, 230, 1);
j = -1;
while(++j < 128){
i = -1;
while(++i < 104){
if((px = B(___1a1e84h+0x68*j+i))) B(___1a112ch__VESA101_ACTIVESCREEN_PTR+0x1a42d+0x280*j+i) = px;
}
}
if((int)D(___196aa8h) <= 0){
if(D(___196aa8h) == -1){
D(esp+0x44) = 3000;
strcpy(esp+0x34, "3000");
}
if(D(___196aa8h) == -2){
D(esp+0x44) = 2000;
strcpy(esp+0x34, "2000");
}
if(D(___196aa8h) == -3){
D(esp+0x44) = 1000;
strcpy(esp+0x34, "1000");
}
if(D(___196aa8h) == -4){
D(esp+0x44) = 750;
strcpy(esp+0x34, "750");
}
if(D(___196aa8h) == -5){
D(esp+0x44) = 500;
strcpy(esp+0x34, "500");
}
if(D(___196aa8h) == -6){
D(esp+0x44) = 250;
strcpy(esp+0x34, "250");
}
VESA101_16X16_FORMAT_PRINT("[Your hit missed!", 161, 168);
VESA101_16X16_FORMAT_PRINT("", 161, 184);
VESA101_16X16_FORMAT_PRINT("You sissy Sunday driver. [The", 161, 200);
VESA101_16X16_FORMAT_PRINT("[simplest job, and you screw it up!", 161, 216);
VESA101_16X16_FORMAT_PRINT("I bet you are afraid of the dark as", 161, 232);
VESA101_16X16_FORMAT_PRINT("well. I'll show you what happens", 161, 248);
VESA101_16X16_FORMAT_PRINT("when you break your promises to me.", 161, 264);
VESA101_16X16_FORMAT_PRINT("[I'm gonna make you pay!", 161, 280);
VESA101_16X16_FORMAT_PRINT("", 161, 296);
VESA101_16X16_FORMAT_PRINT("", 161, 312);
if((int)s_6c[D(___1a1ef8h)].money < (int)D(esp+0x44)){
___14c50h();
}
else {
s_6c[D(___1a1ef8h)].money -= D(esp+0x44);
}
}
else {
if(D(___196aa8h) == 1){
strcpy(esp+0x34, "6000");
s_6c[D(___1a1ef8h)].money += 6000;
}
if(D(___196aa8h) == 2){
strcpy(esp+0x34, "4000");
s_6c[D(___1a1ef8h)].money += 4000;
}
if(D(___196aa8h) == 3){
strcpy(esp+0x34, "3000");
s_6c[D(___1a1ef8h)].money += 3000;
}
if(D(___196aa8h) == 4){
strcpy(esp+0x34, "2000");
s_6c[D(___1a1ef8h)].money += 2000;
}
if(D(___196aa8h) == 5){
strcpy(esp+0x34, "1000");
s_6c[D(___1a1ef8h)].money += 1000;
}
if(D(___196aa8h) == 6){
strcpy(esp+0x34, "500");
s_6c[D(___1a1ef8h)].money += 500;
}
VESA101_16X16_FORMAT_PRINT("[You totally slew that car.", 161, 168);
VESA101_16X16_FORMAT_PRINT("", 161, 184);
VESA101_16X16_FORMAT_PRINT("A killer race! The bullets took the", 161, 200);
VESA101_16X16_FORMAT_PRINT("sky like clouds of locusts, and", 161, 216);
VESA101_16X16_FORMAT_PRINT("the screams of motors were a", 161, 232);
VESA101_16X16_FORMAT_PRINT("banshee wail. [Death!{ You were", 161, 248);
VESA101_16X16_FORMAT_PRINT(strcat(strcat(strcpy(esp, "beautiful, ["), ___1a1ff1h), " is in a car-"), 161, 264);
VESA101_16X16_FORMAT_PRINT(strcat(strcat(strcpy(esp, "[coffin grave. $"), esp+0x34), ", your money."), 161, 280);
VESA101_16X16_FORMAT_PRINT("", 161, 296);
VESA101_16X16_FORMAT_PRINT("", 161, 312);
}
___12e78h_v3(___1a10cch___185ba9h, "CONTINUE", 192, 316);
return 0;
}