Function at 0x4386f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x84c
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x50], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x4c], ebp
mov dword [0x51a4a0], ebp
call fcn.00435650
mov esi, dword [esp + 0x860]
push esi
call fcn.004355c0
mov ebx, 1
push ebx
call fcn.0045f290
mov eax, dword [esi + 0x20e0]
add esp, 8
shr eax, 0xf
and eax, 3
mov edi, 0xa
dec eax
je 0x4387a9
dec eax
je 0x438764
call fcn.00424e50
mov eax, dword [0x50deb0]
mov dword [esp + 0x48], eax
jmp 0x4387e9
push esi
call fcn.00424f50
add esp, 4
test eax, eax
je 0x43878e
push str.No_record_to_play__
call fcn.004036e0
add esp, 4
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84c
ret
mov dword [esi + 0x1028], ebx
mov ecx, dword [esi + 0x165c]
mov dword [esp + 0x8c], ecx
mov dword [esi + 0x165c], ebx
jmp 0x4387e5
call fcn.00424e50
test eax, eax
je 0x4387cf
push str.Cannot_record__
call fcn.004036e0
add esp, 4
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84c
ret
call fcn.00424d90
call fcn.00424e00
mov dword [esi + 0x1020], ebp
mov dword [esi + 0x1024], ebp
mov dword [esp + 0x48], edi
push esi
call fcn.004368b0
add esp, 4
test eax, eax
je 0x438806
mov eax, dword [0x51a938]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84c
ret
push esi
mov dword [0x519170], ebp
mov dword [0x519c60], ebp
call fcn.00419550
mov edx, dword [esi + 0x2474]
mov eax, 0xbf800000
mov dword [esi + 0x2470], edx
mov edi, dword [esi + 0x20e0]
and edi, 0xffffffbf
add esp, 4
mov dword [esi + 0x20e0], edi
mov dword [esi + 0x20a8], eax
mov dword [esi + 0x20ac], eax
mov dword [esi + 0x1024], ebp
mov edx, dword [esi + 0x20e0]
and edx, 0xfffff7df
mov eax, edx
mov dword [esi + 0x20e0], edx
test ah, 1
je 0x438878
mov dword [esi + 0x203c], ebp
mov dword [esi + 0x1028], ebx
mov dword [esi + 0x1020], ebp
push esi
call fcn.004409c0
mov dword [esi + 0x2480], ebp
mov edi, dword [esi + 0x20]
mov ecx, dword [esi + 0x2010]
and edi, 0xfeffffff
mov dword [esi + 0x20], edi
mov eax, dword [esi + 0x1028]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x88], ecx
jl 0x4388af
cmp eax, 9
jle 0x4388b5
mov dword [esi + 0x1028], ebx
cmp dword [ecx + 8], ebp
jle 0x43a54b
mov eax, dword [esi + 0x20e0]
test ah, 0x40
jne 0x43a54b
lea ebx, [esi + 0x2038]
push ebx
push esi
call fcn.0041ca50
mov edi, eax
add esp, 8
cmp edi, ebp
je 0x4388f2
push str.Cannot_build_grid.
call fcn.004036e0
add esp, 4
jmp 0x43893e
lea eax, [esp + 0xb4]
push eax
push esi
call fcn.00426020
mov ecx, dword [ebx]
lea edx, [esp + 0xbc]
push ecx
push edx
call fcn.00418ad0
mov edi, eax
add esp, 0x10
cmp edi, ebp
je 0x43895a
mov eax, dword [ebx]
lea ecx, [esp + 0xb4]
push eax
push ecx
call fcn.004190c0
mov edx, dword [ebx]
push edx
call fcn.0041ca00
push str.Cannot_create_decor_bb
call fcn.004036e0
add esp, 0x10
mov eax, dword [esi + 0x20e0]
and ah, 0xfe
mov dword [esi + 0x20e0], eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84c
ret
push esi
call fcn.0040e060
push esi
call fcn.0040e300
mov dword [esi + 0x20a4], ebp
mov eax, dword [esi + 0x24a8]
add esp, 8
cmp eax, ebp
je 0x43897c
mov dword [eax + 8], ebp
mov eax, dword [esi + 0x24ac]
cmp eax, ebp
je 0x438989
mov dword [eax + 8], ebp
push esi
call fcn.00436260
mov eax, dword [esi + 0x2034]
mov ebx, dword [esi + 0x203c]
mov ecx, dword [esp + 0x868]
mov edx, dword [esp + 0x86c]
push ebp
push esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x40], eax
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
call fcn.00435f10
add esp, 0xc
test eax, eax
jne 0x4389f1
push str.Cannot_initialize_hardware_scrolling_context.
call fcn.004036e0
mov eax, dword [esi + 0x20e0]
add esp, 4
and ah, 0xfe
mov dword [esi + 0x20e0], eax
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x84c
ret
mov ecx, dword [esi + 0x203c]
cmp ecx, ebp
je 0x43a54b
mov eax, dword [esi + 0x20e0]
test ah, 0x40
jne 0x43a54b
test ah, 1
je 0x438a19
mov dword [ecx + 0x26c], ebp
mov eax, dword [esi + 0x20e0]
and eax, 0x18000
cmp eax, 0x10000
jne 0x438a46
mov ecx, dword [esp + 0x38]
push ecx
push 1
push 1
push str.DataExtracoins.gaf
push esi
call fcn.0043f5e0
add esp, 0x14
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x2c]
push edx
push ebp
push ebp
push str.DataExtra_failed.gaf
push esi
call fcn.0043f5e0
mov ecx, dword [esi + 0x2034]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0xfa4]
lea edi, [esi + 0x100c]
mov edx, dword [ecx + 4]
mov dword [esp + 0xac], eax
mov dword [esi + 0xfa4], edx
mov eax, dword [edi]
mov dword [esi + 0x2050], eax
mov ecx, dword [edi + 4]
mov dword [esi + 0x2054], ecx
mov edx, dword [ebx + 0xc]
mov dword [esi + 0x2040], edx
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x2044], eax
add esp, 0x14
fld dword [ebx + 0x40]
fadd dword [0x50152c]
call fcn.004f7d68
mov ecx, dword [esi + 0xf84]
sar ecx, 1
sub ecx, eax
mov dword [esi + 0x2058], ecx
fld dword [ebx + 0x44]
fadd dword [0x50152c]
call fcn.004f7d68
mov edx, dword [esi + 0xf88]
sar edx, 1
sub edx, eax
mov dword [esi + 0x205c], edx
mov eax, dword [ebx + 0x40]
mov dword [esi + 0x2048], eax
mov ecx, dword [ebx + 0x44]
mov dword [esi + 0x204c], ecx
mov dword [esi + 0x2064], ebp
mov dword [esi + 0x2060], ebp
mov ebx, dword [esi + 0xf84]
mov eax, dword [esi + 0xf7c]
mov edx, dword [esi + 0xf80]
sub ebx, eax
mov eax, dword [esi + 0xf88]
sub eax, edx
mov dword [esp + 0x94], eax
mov eax, dword [esi + 0x203c]
fld dword [eax + 0xc]
fsub dword [esi + 0x2040]
fld dword [eax + 0x10]
fsub dword [esi + 0x2044]
fstp dword [esp + 0x18]
fadd dword [0x50152c]
fld dword [esp + 0x18]
fadd dword [0x50152c]
fstp dword [esp + 0x18]
call fcn.004f7d68
fld dword [esp + 0x18]
mov dword [esp + 0x68], eax
call fcn.004f7d68
mov edx, dword [esi + 0x2050]
mov ecx, dword [esp + 0x68]
sub edx, ecx
mov dword [edi], edx
mov ecx, dword [esi + 0x2054]
sub ecx, eax
mov dword [esi + 0x1010], ecx
mov edx, dword [esi + 0xf94]
add edx, dword [edi]
mov dword [esi + 0x1014], edx
mov eax, dword [esi + 0xf98]
add eax, dword [esi + 0x1010]
mov dword [esi + 0x1018], eax
mov eax, dword [edi]
cmp eax, ebx
jge 0x438ba9
mov dword [edi], ebx
jmp 0x438baf
cmp eax, ebp
jle 0x438baf
mov dword [edi], ebp
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x94]
cmp eax, ecx
jge 0x438bc2
mov dword [edi + 4], ecx
jmp 0x438bc9
cmp eax, ebp
jle 0x438bc9
mov dword [edi + 4], ebp
push esi
call fcn.0043a6b0
mov ecx, dword [esi + 0x2050]
add esp, 4
mov dword [edi], ecx
mov edx, dword [esi + 0x2054]
mov dword [edi + 4], edx
mov ecx, dword [esi + 0xf88]
mov edx, dword [esi + 0xf80]
mov eax, dword [esi + 0xf84]
mov ebx, dword [esi + 0xf7c]
sub ecx, edx
mov dword [esp + 0x64], ecx
mov ecx, dword [esi + 0x20]
sub eax, ebx
and ecx, 0xfffffffd
mov dword [esp + 0x60], eax
mov dword [esi + 0x20], ecx
mov al, byte [0x51da00]
mov dword [esp + 0x70], ebp
test al, al
mov dword [esp + 0x74], ebp
jne 0x438c30
mov edx, dword [esi + 0x1030]
push edx
call fcn.00457b00
add esp, 4
mov al, byte [0x51d0f8]
test al, al
jne 0x438c44
mov dword [esp + 0x58], ebp
call fcn.0044a9a0
jmp 0x438c4c
mov dword [esp + 0x58], 1
mov eax, dword [0x51d14c]
push 0x5f504d42
mov byte [eax + 0x98], 0
call fcn.0044fda0
push esi
call fcn.00435d40
add esp, 8
call fcn.00404260
mov eax, dword [esi + 0x1970]
cmp eax, ebp
jle 0x438c85
push eax
call fcn.00404200
add esp, 4
jmp 0x438c8a
call fcn.00404240
mov ecx, dword [esi + 0x20e4]
push ebp
push ecx
call fcn.004042f0
add esp, 8
call fcn.00404290
mov eax, dword [esi + 0x1970]
cmp eax, ebp
jle 0x438cb4
push eax
call fcn.00404200
add esp, 4
jmp 0x438cb9
call fcn.00404240
push 0xffffffffffffffff
call fcn.00404250
push ebp
push esi
call fcn.004401d0
mov eax, dword [esi + 0x20]
add esp, 0xc
test eax, 0xc00000
jne 0x438cec
mov edx, dword [esi + 0x1028]
mov eax, dword [esi + 0x203c]
push edx
push eax
call fcn.004316f0
add esp, 8
jmp 0x438d06
and eax, 0xff3fffff
mov ecx, 1
mov dword [esi + 0x20], eax
mov eax, dword [0x505774]
sub ecx, eax
mov dword [0x505774], ecx
push esi
call fcn.0042ea10
push esi
call fcn.00433b30
push esi
call fcn.004354e0
mov al, byte [esi + 0x26d8]
add esp, 0xc
test al, 0x80
je 0x438d3d
call fcn.00458790
test al, al
je 0x438d3d
lea edx, [esi + 0x26cc]
push edx
call fcn.004587c0
add esp, 4
push esi
call fcn.0043a6b0
mov ebx, dword [esi + 0x20e0]
or bh, 0x10
mov dword [esi + 0x20e0], ebx
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov edx, dword [esi + 0x2034]
neg eax
neg ecx
push eax
mov eax, dword [edx + 8]
push ecx
push ebp
push eax
call fcn.00462c10
mov eax, dword [esi + 0x2034]
mov ecx, dword [esi + 0x2064]
mov edx, dword [esi + 0x2060]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax + 8]
push ecx
push edx
call fcn.00462020
mov eax, dword [esi + 0x2034]
push ebp
push ebp
push 0xffffffffffffffff
mov ecx, dword [eax + 4]
push edi
push ecx
push esi
call fcn.0042dcf0
push 1
push esi
call fcn.0042f100
add esp, 0x44
push 0x1e000
call fcn.00449ce0
push 1
push ebp
push esi
call fcn.0043f370
add esp, 0x10
call fcn.0044d900
test al, al
je 0x438e0d
call fcn.00429340
test eax, eax
je 0x438e0d
call fcn.0044d900
test al, al
je 0x438e0d
call fcn.00435620
push esi
call fcn.004355c0
add esp, 4
call fcn.00402ad0
call fcn.00402ab0
test eax, eax
je 0x438e04
push esi
call fcn.00429280
add esp, 4
call fcn.0044d900
test al, al
jne 0x438ddf
call fcn.00402ad0
call fcn.00402ab0
test eax, eax
je 0x438e24
push esi
call fcn.00429280
add esp, 4
mov eax, dword [esi + 0x20e0]
mov edi, 0x18000
test edi, eax
jne 0x438e40
push 0x1fbff
call fcn.00449ce0
add esp, 4
mov edx, dword [esi + 0x203c]
add edx, 0xc
push edx
push esi
call fcn.004f63f0
mov eax, dword [esi + 0x2078]
push 1
push 1
push 4
push eax
call fcn.00403e50
mov ebx, dword [esi + 0x20e0]
add esp, 0x18
or ebx, 2
mov dword [esp + 0x5c], ebp
mov dword [esi + 0x20e0], ebx
mov dword [esi + 0x2498], ebp
mov dword [esi + 0x249c], ebp
mov dword [esi + 0x24a0], ebp
call fcn.00458790
neg al
sbb eax, eax
mov dword [esi + 0x2640], 0x1f4
neg eax
mov dword [esp + 0x3c], eax
mov dword [esi + 0x2644], ebp
mov dword [esi + 0x2648], ebp
call fcn.00402cd0
mov ecx, dword [esi + 0x203c]
mov edx, dword [esi + 0x25e0]
mov dword [ecx + 0x264], edx
mov eax, dword [esi + 0x203c]
mov ecx, dword [esi + 0x25e4]
mov dword [eax + 0x268], ecx
mov edx, dword [esi + 0x203c]
mov eax, dword [esi + 0x25e8]
mov dword [edx + 0x26c], eax
mov eax, dword [esi + 0x20e0]
test edi, eax
je 0x438f0c
mov ecx, dword [esi + 0x203c]
mov dword [ecx + 0x140], ebp
mov edx, dword [esi + 0x203c]
mov dword [edx + 0x144], ebp
push str.Before_Game_Loop.
call fcn.004036b0
mov edi, dword [esi + 0x20e0]
push 0x1e000
and edi, 0xfffffeff
mov dword [esi + 0x20e0], edi
call fcn.00449ce0
add esp, 8
call fcn.00461e80
mov ecx, dword [esi + 0x1024]
mov dword [esp + 0x9c], eax
mov eax, dword [esi + 0x1020]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0x84], eax
call fcn.004103e0
test byte [esi + 0x20], 2
jne 0x43a20d
mov ebx, dword [esp + 0x10]
mov eax, dword [0x51a4a0]
test eax, eax
jne 0x43904b
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x43904b
test byte [esi + 0x26d8], 0x80
je 0x43904b
mov eax, dword [esi + 0x2498]
lea ebp, [esi + 0x2498]
test eax, eax
jne 0x438fbc
mov eax, dword [esi + 0x249c]
test eax, eax
jne 0x438fbc
mov eax, dword [esi + 0x24a0]
test eax, eax
je 0x43904b
lea edx, [esi + 0x26cc]
mov eax, edx
mov ecx, dword [eax]
mov dword [esp + 0x78], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x7c], edx
mov ebx, dword [eax + 8]
mov eax, dword [esi + 0x203c]
mov dword [esp + 0x80], ebx
fld dword [eax + 0xd8]
fcomp dword [0x5014f8]
fnstsw ax
test ah, 0x41
jne 0x43903a
test byte [esi + 0x20e0], 0x20
jne 0x439032
mov edi, ebp
mov ebp, dword [edi]
mov eax, dword [edi + 4]
add ecx, ebp
mov ebp, dword [edi + 8]
mov dword [esp + 0x78], ecx
lea ecx, [esp + 0x78]
add edx, eax
add ebx, ebp
push ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], ebx
call fcn.004587c0
mov ebx, dword [esp + 0x14]
add esp, 4
jmp 0x43904d
mov ebx, dword [esp + 0x10]
xor edi, edi
jmp 0x43904d
push ebp
xor edi, edi
call fcn.004587c0
mov ebx, dword [esp + 0x14]
add esp, 4
jmp 0x43904d
xor edi, edi
mov eax, dword [esi + 0x20e4]
mov ecx, dword [0x50deb8]
cmp eax, ecx
je 0x439067
push eax
push ecx
call fcn.004481d0
add esp, 8
push 0x1fbff
call fcn.00449ce0
mov ebp, eax
add esp, 4
mov dword [esp + 0x30], ebp
call fcn.0043fa40
mov eax, dword [esi + 0x20e0]
test ah, 2
je 0x43909f
mov edx, dword [esi + 0x203c]
push edx
push esi
call fcn.00433c10
add esp, 8
jmp 0x43a1b1
test ah, 4
je 0x4390b2
push esi
call fcn.00434c60
add esp, 4
jmp 0x43a1b1
test edi, edi
je 0x439120
mov eax, dword [edi]
test eax, eax
jle 0x4390bf
dec eax
jmp 0x4390c2
jge 0x4390c4
inc eax
mov dword [edi], eax
mov eax, dword [edi + 4]
test eax, eax
jle 0x4390ce
dec eax
jmp 0x4390d1
jge 0x4390d4
inc eax
mov dword [edi + 4], eax
mov eax, dword [edi + 8]
test eax, eax
jle 0x4390de
dec eax
jmp 0x4390e1
jge 0x4390e4
inc eax
mov dword [edi + 8], eax
cmp dword [edi], 0
jne 0x439106
mov eax, dword [edi + 4]
test eax, eax
jne 0x439106
mov eax, dword [edi + 8]
test eax, eax
jne 0x439106
lea eax, [esi + 0x26cc]
push eax
call fcn.004587c0
add esp, 4
mov ecx, dword [edi]
lea eax, [esi + 0x2498]
mov dword [esi + 0x2498], ecx
mov edx, dword [edi + 4]
mov dword [eax + 4], edx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
test dword [esi + 0x20], 0x1000000
jne 0x439146
mov eax, dword [esi + 0x20e8]
test eax, eax
jne 0x439146
mov eax, dword [esi + 0x245c]
test eax, eax
je 0x439146
push esi
call fcn.00429020
add esp, 4
mov eax, dword [0x51a4a4]
test eax, eax
je 0x439158
call fcn.00424fe0
test eax, eax
je 0x43915c
inc dword [esp + 0x4c]
test ebp, ebp
je 0x439a2e
mov eax, dword [esp + 0x48]
cmp ebp, eax
jle 0x439184
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], 0
fild qword [esp + 0x68]
mov dword [esi + 0x101c], eax
jmp 0x43918e
fild dword [esp + 0x30]
mov dword [esi + 0x101c], ebp
fdivr dword [0x5015dc]
fstp dword [esi + 0x263c]
mov eax, dword [0x51a4a0]
test eax, eax
je 0x4391bb
mov edx, dword [esp + 0x3c]
push edx
push 0
push esi
call fcn.0043fa70
add esp, 0xc
test eax, eax
jne 0x439a2e
push esi
call fcn.0042af70
add esp, 4
call fcn.00461ed0
mov eax, dword [0x51a4a4]
mov dword [0x519c60], 1
test eax, eax
je 0x4391e5
call fcn.00424fe0
test eax, eax
je 0x4391e9
inc dword [esp + 0x54]
call fcn.00461e80
mov ecx, dword [esp + 0x9c]
sub eax, ecx
mov ecx, dword [esp + 0x84]
lea edx, [eax + ecx]
mov ecx, dword [esp + 0xa4]
add eax, ecx
mov dword [esi + 0x1020], edx
mov dword [esi + 0x1024], eax
mov ecx, dword [esi + 0x20e0]
mov eax, ecx
mov edx, dword [0x51d118]
and eax, 0x18000
neg eax
sbb eax, eax
not eax
and eax, edx
mov edx, dword [0x51a488]
test edx, edx
je 0x439244
test eax, eax
jne 0x439244
mov eax, 0x2b
lea edi, [eax - 0x12]
cmp edi, 0xbd
ja case.0x43925b.27
xor eax, eax
mov al, byte [edi + 0x43a590]
jmp dword [eax*4 + 0x43a568]
test byte [0x51d29c], 8
je case.0x43925b.27
mov ecx, dword [esi + 0x203c]
mov eax, dword [ecx + 0x104]
test eax, eax
jne case.0x43925b.27
mov eax, dword [ecx + 0x128]
test al, 8
je 0x4392a4
and al, 0xf7
mov dword [ecx + 0x128], eax
mov dword [0x51a48c], 0
jmp case.0x43925b.27
or al, 8
mov dword [ecx + 0x128], eax
mov dword [0x51a48c], 1
jmp case.0x43925b.27
mov eax, dword [esi + 0x24a8]
test eax, eax
je case.0x43925b.27
mov ecx, dword [0x51d29c]
test ch, 1
je case.0x43925b.27
mov ecx, dword [eax + 8]
dec ecx
js case.0x43925b.27
mov edx, dword [eax]
lea edx, [edx + ecx*4]
mov ebx, dword [edx]
test ebx, ebx
je 0x439315
cmp dword [ebx], 3
jne 0x439315
mov eax, dword [ebx + 0xe8]
test eax, eax
je 0x439315
cmp dword [eax], 3
je 0x43930a
mov eax, dword [eax + 4]
test eax, eax
jne 0x4392fc
jmp 0x439315
test eax, eax
je 0x439315
mov edi, dword [eax + 0x2c]
test edi, edi
jg 0x439322
dec ecx
sub edx, 4
test ecx, ecx
jge 0x4392e7
jmp case.0x43925b.27
mov edi, dword [esi + 0x203c]
mov edx, dword [esi + 0x1f98]
push edi
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov ecx, dword [edx + ecx*4]
lea eax, [eax + eax*2]
lea edx, [ecx + eax*4 + 8]
push edx
call fcn.00418690
mov ecx, dword [ebx + 0x14]
mov edx, dword [esi + 0x1f98]
mov eax, dword [ebx + 0x18]
push 0x18c5
mov ecx, dword [edx + ecx*4]
push str.D:c2vVyruz_D3DVzEdengine.cpp
lea eax, [eax + eax*2]
push edi
lea edx, [ecx + eax*4 + 8]
push edx
call fcn.004185e0
mov eax, dword [ebx + 0xc]
mov dword [edi + 0xc], eax
mov ecx, dword [ebx + 0x10]
mov dword [edi + 0x10], ecx
mov edx, dword [ebx + 0x14]
mov ecx, dword [edi + 0xc]
mov dword [edi + 0x14], edx
mov eax, dword [ebx + 0x18]
mov edx, dword [edi + 0x10]
mov dword [edi + 0x64], ecx
mov dword [edi + 0x68], edx
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x18]
lea edx, [edi + 0x74]
push edx
mov dword [edi + 0x6c], eax
push edi
mov dword [edi + 0x70], ecx
call fcn.004191d0
lea eax, [edi + 0x1c]
push eax
push edi
call fcn.004191d0
push esi
call fcn.0043a6b0
mov eax, dword [esi + 0x20e0]
add esp, 0x2c
or ah, 0x10
mov dword [esi + 0x20e0], eax
jmp case.0x43925b.27
mov eax, dword [0x51d29c]
test ah, 4
je case.0x43925b.27
mov ecx, 1
sub ecx, edx
mov dword [0x51a488], ecx
je case.0x43925b.27
mov eax, 0x5f5e0ff
mov dword [ebx + 0x268], eax
mov dword [ebx + 0x26c], eax
jmp case.0x43925b.27
test byte [0x51d29c], 4
je case.0x43925b.27
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x439436
mov edx, dword [esi + 0x203c]
mov dword [esp + 0x44], 1
mov dword [edx + 0xdc], 0x4b18967f
jmp case.0x43925b.27
mov eax, dword [esi + 0x203c]
mov dword [esp + 0x44], 0
mov ecx, dword [eax + 0xc0]
mov edx, dword [ecx + 0x44]
mov dword [eax + 0xdc], edx
jmp case.0x43925b.27
test byte [0x51d29c], 2
je case.0x43925b.27
mov ecx, dword [esi + 0x203c]
mov eax, dword [ecx + 0x128]
mov edx, eax
not edx
xor edx, eax
and edx, 0x800000
xor edx, eax
mov dword [ecx + 0x128], edx
jmp case.0x43925b.27
test byte [0x51d29c], 4
je case.0x43925b.27
mov ecx, dword [esi + 0x20ec]
xor eax, eax
cmp ecx, eax
je 0x4394b4
mov dword [esi + 0x20ec], eax
mov dword [esi + 0x20e8], eax
jmp case.0x43925b.27
cmp dword [0x51d110], eax
je 0x4394de
mov ecx, dword [0x51d100]
mov dl, byte [ecx + 0x1e]
test dl, dl
je 0x4394de
mov dword [esi + 0x20ec], 5
mov dword [esi + 0x20e8], eax
jmp case.0x43925b.27
mov dword [esi + 0x20ec], 2
mov dword [esi + 0x20e8], eax
jmp case.0x43925b.27
mov eax, dword [0x51d29c]
test ah, 6
je case.0x43925b.27
mov eax, dword [ebx + 0xc0]
mov edx, dword [eax + 0x34]
mov dword [ebx + 0xd8], edx
mov eax, dword [eax + 0x70]
mov dword [ebx + 0xe0], eax
mov eax, dword [ebx + 0xe8]
test eax, eax
je case.0x43925b.27
cmp dword [eax], 0xc
jne 0x43952e
mov ecx, dword [eax + 0x18]
mov dword [eax + 0x14], ecx
mov eax, dword [eax + 4]
test eax, eax
jne 0x439523
jmp case.0x43925b.27
test byte [0x51d29c], 0x10
je case.0x43925b.27
mov edx, ecx
shr edx, 2
and edx, 1
inc edx
neg edx
shl edx, 2
xor edx, ecx
and edx, 4
xor edx, ecx
mov dword [esi + 0x20e0], edx
jmp case.0x43925b.27
test byte [0x51d29c], 0x80
je case.0x43925b.27
mov eax, dword [esi + 0x203c]
test byte [eax + 0x128], 8
jne case.0x43925b.27
mov ecx, dword [eax + 0x104]
test ecx, ecx
jne case.0x43925b.27
mov dword [eax + 0x104], 0x18
mov eax, dword [0x51d110]
test eax, eax
je 0x43959e
mov eax, dword [0x51d100]
mov cl, byte [eax + 1]
test cl, cl
jne 0x4395c9
call fcn.00424fe0
test eax, eax
je 0x4395c9
push esi
call fcn.00425010
push esi
call fcn.00435c10
add esp, 8
test eax, eax
je 0x439610
mov eax, dword [esi + 0x20]
or al, 2
mov dword [esi + 0x20], eax
call fcn.00424fc0
jmp 0x439610
mov ecx, dword [esi + 0x20e0]
and ecx, 0x18000
cmp ecx, 0x10000
jne 0x4395e7
mov eax, dword [esi + 0x20]
or al, 2
mov dword [esi + 0x20], eax
jmp 0x439610
mov eax, dword [0x51a4a0]
test eax, eax
jne 0x439610
push esi
call fcn.004356d0
add esp, 4
test eax, eax
je 0x439610
lea edx, [esp + 0x70]
lea eax, [esp + 0x60]
push edx
push eax
push esi
call fcn.0043f810
add esp, 0xc
mov eax, dword [esi + 0x20]
test al, 2
jne 0x439a2e
test eax, 0x1000000
jne 0x439a0a
mov edi, dword [esi + 0x2068]
mov eax, dword [esi + 0x2644]
mov ecx, dword [esi + 0x101c]
inc edi
cmp eax, ecx
mov dword [esi + 0x2068], edi
jle 0x439650
sub eax, ecx
mov dword [esi + 0x2644], eax
jmp 0x4397ca
mov ecx, dword [esi + 0x203c]
fld dword [ecx + 0xd8]
fcomp dword [0x5014f8]
fnstsw ax
test ah, 0x41
jne 0x4397ca
mov eax, dword [esi + 0x2648]
xor ebx, ebx
cmp eax, 2
mov dword [esi + 0x2644], ebx
jl case.default.0x439766
lea edx, [esp + 0xa8]
push edx
call fcn.00446f50
mov edi, dword [esi + 0x2648]
mov dword [esp + 0xb0], 0xff2010
add edi, 0xfffffffe
add esp, 4
mov eax, edi
mov dword [esi + 0x2648], edi
lea eax, [eax + eax*4 + 0xa]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edi, [eax + eax*4]
mov eax, dword [esi + 0x203c]
shl edi, 3
mov ecx, dword [eax + 0x26c]
add ecx, edi
mov dword [eax + 0x26c], ecx
mov eax, dword [esi + 0x203c]
add dword [eax + 0x268], edi
call fcn.00401030
cmp eax, 2
mov eax, str.Bien_jou
je 0x4396f4
mov eax, str.Well_done__s_____nFast_Kill_Bonus__d__
lea ecx, [esi + 0x264c]
push edi
push ecx
lea edx, [esp + 0x664]
push eax
push edx
call fcn.0044cb10
mov ecx, dword [esi + 0x20c8]
mov edx, dword [esi + 0x20c0]
lea eax, [esp + 0xb8]
push eax
push 5
push ecx
mov ecx, dword [esi + 0xf88]
lea eax, [esp + 0x678]
push edx
push eax
push ebx
push ebx
push 1
sar ecx, 1
push 0x1f40
push ebx
sub ecx, 0x66
push ebx
push ecx
push 0x64
call fcn.0042b4f0
add esp, 0x44
push 1
push 0xa
push eax
call fcn.0042b740
mov eax, dword [esi + 0x1020]
add esp, 0xc
and eax, 7
cmp eax, 7
ja case.default.0x439766
jmp dword [eax*4 + 0x43a650]
mov eax, 0x27
jmp 0x4397a3
mov eax, 0x28
jmp 0x4397a3
mov eax, 0x2a
jmp 0x4397a3
mov eax, 0x23
jmp 0x4397a3
mov eax, 0x24
jmp 0x4397a3
mov eax, 0x2f
jmp 0x4397a3
mov eax, 0x30
jmp 0x4397a3
mov eax, 0x2b
mov edx, dword [esi + 0x208c]
push 0x1388
push 0x3e8
push 0x1f4
mov eax, dword [edx + eax*4]
push eax
call fcn.00412470
add esp, 0x10
mov dword [esi + 0x2648], ebx
mov eax, dword [esi + 0x20e8]
test eax, eax
lea ecx, [eax - 1]
mov dword [esi + 0x20e8], ecx
je 0x4397ec
push 1
push esi
call fcn.0043a740
add esp, 8
mov ebx, eax
jmp 0x439805
push 0
push esi
call fcn.0043a740
mov edx, dword [esi + 0x20ec]
add esp, 8
mov ebx, eax
mov dword [esi + 0x20e8], edx
mov edi, dword [esi + 0x203c]
fld dword [edi + 0xd8]
fcomp dword [0x5014f8]
fnstsw ax
test ah, 0x41
je 0x4399b0
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x4398a2
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x50], 1
push eax
push 1
push 0
push str.DataExtra_failed.gaf
push esi
mov dword [esp + 0x28], 0x3f000000
mov dword [esp + 0x2c], 0
mov dword [esp + 0x54], 0x20
call fcn.0043f5e0
push 8
mov dword [esp + 0x44], eax
call fcn.00458200
mov eax, dword [esp + 0x54]
add esp, 0x18
test eax, eax
je 0x4399b0
test byte [esi + 0x26d8], 0x80
je 0x4399b0
xor eax, eax
mov dword [esi + 0x2498], 0x50
mov dword [esi + 0x249c], eax
mov dword [esi + 0x24a0], eax
jmp 0x4399b0
fld dword [edi + 0xc]
fcomp dword [0x5014f8]
fnstsw ax
test ah, 1
jne 0x43991d
fld dword [edi + 0x10]
fcomp dword [0x5014f8]
fnstsw ax
test ah, 1
jne 0x43991d
fild dword [esi + 0xf7c]
fcomp dword [edi + 0xc]
fnstsw ax
test ah, 0x41
jne 0x43991d
fild dword [esi + 0xf80]
fcomp dword [edi + 0x10]
fnstsw ax
test ah, 0x41
jne 0x43991d
fld dword [edi + 0xc]
call fcn.004f7d68
cdq
idiv dword [esp + 0x40]
test edx, edx
je 0x43991d
fld dword [edi + 0x10]
call fcn.004f7d68
cdq
idiv dword [esp + 0x40]
test edx, edx
je 0x43991d
fld dword [esp + 0x14]
fadd dword [edi + 0xc]
fstp dword [edi + 0xc]
fld dword [esp + 0x18]
fadd dword [edi + 0x10]
fstp dword [edi + 0x10]
jmp 0x4399b0
fld dword [0x5015b8]
fdiv dword [esi + 0x263c]
add dword [esp + 0x40], 0x1e
fld dword [esp + 0x14]
fcomp dword [0x5014f8]
fnstsw ax
test ah, 0x41
jne 0x43994f
fchs
fstp dword [esp + 0x18]
mov dword [esp + 0x14], 0
jmp 0x4399b0
fld dword [esp + 0x14]
fcomp dword [0x5014f8]
fnstsw ax
test ah, 1
je 0x43996e
fstp dword [esp + 0x18]
mov dword [esp + 0x14], 0
jmp 0x4399b0
fld dword [esp + 0x18]
fcomp dword [0x5014f8]
fnstsw ax
test ah, 1
je 0x43998f
fchs
fstp dword [esp + 0x14]
mov dword [esp + 0x18], 0
jmp 0x4399b0
fld dword [esp + 0x18]
fcomp dword [0x5014f8]
fnstsw ax
test ah, 0x41
jne 0x4399ae
fstp dword [esp + 0x14]
mov dword [esp + 0x18], 0
jmp 0x4399b0
fstp st(0)
cmp ebx, 0xffffffff
je 0x43a1f7
test ebx, ebx
je 0x43a1bd
push 0
push esi
call fcn.0042b800
push esi
call fcn.0043f900
mov ecx, dword [esp + 0x40]
push 1
push 1
lea eax, [esi + 0x1014]
mov edx, dword [ecx + 4]
push 0xffffffffffffffff
push eax
push edx
push esi
call fcn.0042dcf0
push 0
push esi
call fcn.0042f100
push esi
call fcn.00438070
add esp, 0x30
call fcn.00461ed0
cmp eax, dword [esp + 0x5c]
jle 0x439a0a
mov dword [esp + 0x5c], eax
sub ebp, dword [esi + 0x101c]
test ebp, ebp
mov dword [esp + 0x30], ebp
jle 0x439a2e
push 0x1e000
call fcn.00449ce0
mov ebx, dword [esp + 0x14]
add esp, 4
jmp 0x439164
mov eax, dword [0x51a4a0]
mov dword [0x519c60], 0
test eax, eax
je 0x439a51
mov eax, dword [esp + 0x3c]
push eax
push 1
push esi
call fcn.0043fa70
add esp, 0xc
push esi
call fcn.00438470
push esi
call fcn.0043a6b0
mov al, byte [esi + 0x20]
add esp, 8
test al, 2
jne 0x43a20d
mov edi, dword [esi + 0x20e0]
mov eax, dword [esi + 0x20f8]
mov ebp, 0x1000
or edi, ebp
test eax, eax
mov dword [esi + 0x20e0], edi
mov ecx, edi
je 0x439aa0
jge 0x439a8f
inc eax
jmp 0x439a90
dec eax
mov edx, eax
mov dword [esi + 0x20f8], eax
neg edx
mov dword [esi + 0x20f8], edx
mov eax, dword [esi + 0x20fc]
test eax, eax
je 0x439abe
jge 0x439aaf
inc eax
jmp 0x439ab0
dec eax
mov dword [esi + 0x20fc], eax
neg eax
mov dword [esi + 0x20fc], eax
mov ebx, dword [esp + 0x10]
test ebp, ecx
je 0x439b38
fld dword [ebx + 0xc]
fsub dword [esi + 0x2040]
call fcn.004f7d68
fld dword [ebx + 0x10]
fsub dword [esi + 0x2044]
mov edi, eax
call fcn.004f7d68
mov ecx, dword [esi + 0x2050]
sub ecx, edi
mov dword [esi + 0x100c], ecx
mov edx, dword [esi + 0x2054]
mov ecx, dword [esp + 0x60]
sub edx, eax
mov dword [esi + 0x1010], edx
mov eax, dword [esi + 0x100c]
cmp eax, ecx
jl 0x439b16
mov ecx, dword [esp + 0x70]
cmp eax, ecx
jle 0x439b1c
mov dword [esi + 0x100c], ecx
mov eax, dword [esi + 0x1010]
mov ecx, dword [esp + 0x64]
cmp eax, ecx
jl 0x439b32
mov ecx, dword [esp + 0x74]
cmp eax, ecx
jle 0x439b38
mov dword [esi + 0x1010], ecx
mov eax, dword [esi + 0x20f8]
test eax, eax
je 0x439b5e
mov ecx, dword [esi + 0x100c]
add ecx, eax
mov dword [esi + 0x100c], ecx
mov eax, dword [esi + 0x20e0]
or eax, ebp
mov dword [esi + 0x20e0], eax
mov eax, dword [esi + 0x20fc]
test eax, eax
je 0x439b84
mov ecx, dword [esi + 0x1010]
add ecx, eax
mov dword [esi + 0x1010], ecx
mov eax, dword [esi + 0x20e0]
or eax, ebp
mov dword [esi + 0x20e0], eax
test dword [esi + 0x20e0], ebp
je 0x439bd8
mov eax, dword [esi + 0xf94]
mov ecx, dword [esi + 0x100c]
add eax, ecx
mov ebp, dword [esp + 0x34]
mov dword [esi + 0x1014], eax
mov ecx, dword [esi + 0xf98]
add ecx, dword [esi + 0x1010]
mov dword [esi + 0x1018], ecx
mov edx, dword [esi + 0x1010]
mov eax, dword [esi + 0x100c]
mov ecx, dword [ebp + 8]
neg edx
neg eax
push edx
push eax
push 0
push ecx
call fcn.00462c10
add esp, 0x10
jmp 0x439bdc
mov ebp, dword [esp + 0x34]
test byte [esi + 0x20e0], 0x20
je 0x439ca5
mov edi, dword [esi + 0x203c]
mov edx, dword [edi + 0x188]
mov ebx, dword [edx]
fld dword [ebx*8 + 0x505440]
fmul dword [0x5015d8]
call fcn.004f7d68
fld dword [edi + 0x64]
mov ebp, eax
call fcn.004f7d68
mov ecx, eax
mov eax, dword [esi + 0x2154]
mov edx, eax
sub ecx, ebp
fld dword [ebx*8 + 0x505444]
sar edx, 1
fmul dword [0x5015d4]
sub ecx, edx
mov edx, dword [esi + 0x1014]
mov ebp, dword [esi + 0x2158]
lea ecx, [ecx + edx - 8]
add eax, ecx
add ecx, 2
sub eax, 2
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], eax
call fcn.004f7d68
fld dword [edi + 0x68]
mov ebx, eax
call fcn.004f7d68
mov edx, dword [esi + 0x1018]
mov ecx, ebp
sub eax, ebx
mov edi, dword [esp + 0x34]
sar ecx, 1
sub eax, ecx
lea eax, [eax + edx - 0x10]
add ebp, eax
add eax, 2
mov dword [esp + 0x20], eax
mov eax, dword [edi + 4]
sub ebp, 2
push eax
mov dword [esp + 0x2c], ebp
call fcn.0044ede0
mov edx, dword [edi + 4]
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.00447860
mov ebx, dword [esp + 0x1c]
add esp, 0xc
mov ebp, edi
mov eax, dword [0x51a4a0]
test eax, eax
jle 0x439cb9
cmp eax, 0x9c4
jl 0x43a1b1
mov eax, dword [esi + 0x2064]
mov ecx, dword [esi + 0x2060]
mov edx, dword [ebp + 4]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
call fcn.00462020
mov al, byte [esi + 0x20e0]
add esp, 0x10
test al, 0x20
push 0
push 0
je 0x439cf4
mov ecx, dword [ebp + 4]
lea eax, [esi + 0x1014]
push 0xfffffffffffffffc
push eax
push ecx
jmp 0x439d01
mov edx, dword [ebp + 4]
lea eax, [esi + 0x1014]
push 0xffffffffffffffff
push eax
push edx
push esi
call fcn.0042dcf0
mov al, byte [esi + 0x20e0]
add esp, 0x18
test al, 0x20
je 0x439e7a
mov edi, dword [esi + 0x215c]
test edi, edi
je 0x439e3c
mov eax, dword [esi + 0x2154]
mov ebx, dword [edi + 0x38]
cdq
sub eax, edx
mov ecx, dword [esi + 0x20e4]
mov ebp, eax
mov eax, dword [esi + 0x2158]
cdq
sub eax, edx
mov edx, dword [esp + 0x1c]
sar ebp, 1
sar eax, 1
lea edx, [edx + ebp - 1]
mov dword [esp + 0xa0], eax
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x20]
and ebx, 0xfff8f8ff
mov dword [esp + 0x30], ecx
lea eax, [eax + edx - 1]
lea edx, [esp + 0x1c]
mov dword [esp + 0x28], eax
lea eax, [edi + 0x48]
push eax
push edi
push edx
push ecx
mov dword [edi + 0x38], ebx
call fcn.00466140
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
add eax, ebp
mov edx, dword [esp + 0x40]
mov dword [esp + 0x34], eax
mov eax, ebx
add ecx, ebp
or ah, 1
mov dword [esp + 0x2c], ecx
mov dword [edi + 0x38], eax
lea eax, [edi + 0x48]
lea ecx, [esp + 0x2c]
push eax
push edi
push ecx
push edx
call fcn.00466140
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
sub ecx, ebp
sub eax, ebp
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xc0]
add edx, eax
add ecx, eax
mov eax, ebx
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x50]
or ah, 2
mov dword [esp + 0x48], ecx
mov dword [edi + 0x38], eax
lea eax, [edi + 0x48]
lea ecx, [esp + 0x3c]
push eax
push edi
push ecx
push edx
call fcn.00466140
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x4c]
add eax, ebp
add ecx, ebp
mov dword [esp + 0x54], eax
mov eax, ebx
or ah, 3
mov dword [esp + 0x4c], ecx
mov dword [edi + 0x38], eax
lea eax, [edi + 0x48]
push eax
push edi
mov edx, dword [esp + 0x68]
lea ecx, [esp + 0x54]
push ecx
push edx
call fcn.00466140
mov ebp, dword [esp + 0x74]
mov dword [edi + 0x38], ebx
mov ebx, dword [esp + 0x50]
add esp, 0x40
mov eax, dword [ebp + 4]
push 0
push 0
push 3
lea ecx, [eax + 0x58]
add eax, 0x48
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp + 4]
lea eax, [esi + 0x1014]
push eax
push edx
push esi
call fcn.0042dcf0
add esp, 0x18
call fcn.0045f480
mov ecx, dword [esi + 0x245c]
test ecx, ecx
je 0x439e9f
mov edx, dword [esi + 0x2464]
mov eax, dword [ebp + 4]
lea ecx, [ecx + edx*4]
push ecx
push eax
push 0
push 0
push eax
call fcn.00466880
add esp, 0x14
mov eax, dword [esi + 0x20e0]
test ah, 6
jne 0x439eb5
push 1
push esi
call fcn.0042b800
add esp, 8
test dword [esi + 0x20], 0x20000
je 0x439f0c
mov edx, dword [esi + 0x203c]
mov eax, dword [esi + 0x2010]
mov dword [esp + 0x90], edx
xor ecx, ecx
mov edx, dword [eax + 8]
test edx, edx
jle 0x439f0c
mov edx, 0x18
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x439f00
cmp eax, dword [esi + 0x203c]
je 0x439f00
cmp dword [eax], 3
jne 0x439f00
cmp dword [eax + 4], edx
jne 0x439f00
mov dword [esi + 0x203c], eax
mov eax, dword [esi + 0x2010]
inc ecx
cmp ecx, dword [eax + 8]
jl 0x439edf
push 1
push esi
call fcn.0042f100
push esi
call fcn.004303a0
mov edi, dword [esi + 0x203c]
add esp, 0xc
mov eax, dword [edi + 0x16c]
test eax, eax
je 0x43a02b
mov eax, dword [esi + 0x2600]
test eax, eax
jne 0x439f93
mov eax, dword [esi + 0x20c0]
cmp dword [eax + 0x10], 1
jae 0x439f71
add eax, 0x64
lea ecx, [esp + 0x45c]
push eax
push 1
push str.Invalid_GAF_index:__d_in__s
push ecx
call fcn.0044cb10
lea edx, [esp + 0x46c]
push edx
call fcn.004036b0
add esp, 0x14
jmp 0x439f85
push 1
push eax
lea eax, [esi + 0x25f4]
push 0
push eax
call fcn.00456f70
add esp, 0x10
mov eax, dword [esi + 0x2600]
test eax, eax
je 0x43a02b
fild dword [edi + 0x154]
fsubr dword [edi + 0x10]
call fcn.004f7d68
fld dword [edi + 0xc]
push eax
call fcn.004f7d68
mov edx, dword [esi + 0x2034]
mov ecx, dword [edi + 0x16c]
push eax
push ecx
mov eax, dword [edx + 0x24]
push eax
call fcn.0041de10
add esp, 0x10
test al, al
je 0x43a02b
fild dword [esi + 0x100c]
fadd dword [edi + 0xc]
call fcn.004f7d68
fild dword [esi + 0x1010]
mov ebx, eax
fadd dword [edi + 0x10]
call fcn.004f7d68
mov edi, dword [edi + 0x188]
mov ecx, 0x27
lea edx, [esi + 0x25f4]
push 0x3f800000
mov ebp, dword [edi]
push 0x3f800000
sub ecx, ebp
add eax, 0xffffffe0
lea ecx, [ecx + ecx*2]
lea ecx, [ecx + ecx*4]
push ecx
mov ecx, dword [edx + 0x24]
push 0
push ecx
push 0
push eax
push ebx
push edx
call fcn.004572b0
add esp, 0x24
call fcn.0045f480
mov ebx, dword [esp + 0x10]
test dword [esi + 0x20], 0x20000
je 0x43a041
mov edx, dword [esp + 0x90]
mov dword [esi + 0x203c], edx
test dword [esi + 0x20], 0x1000000
jne 0x43a11b
mov eax, dword [0x51a484]
test eax, eax
je 0x43a082
mov eax, dword [0x505738]
mov edx, dword [0x50573c]
sub eax, 0x40
sub edx, 0x30
test eax, eax
mov dword [0x505738], eax
mov dword [0x50573c], edx
jle 0x43a07d
mov eax, edx
test eax, eax
jg 0x43a082
call fcn.0043a670
mov eax, dword [0x51a47c]
test eax, eax
je 0x43a11b
mov ecx, dword [esi + 0x2034]
push 0x1e0
push 0x280
push 0
mov edx, dword [ecx + 4]
mov ecx, dword [0x50573c]
push 0
push edx
mov edx, dword [0x505738]
push ecx
push edx
push 0
push 0
push eax
call fcn.004660e0
mov eax, dword [0x51a484]
mov ecx, dword [0x505738]
mov edx, dword [0x51a47c]
add esp, 0x28
test eax, eax
mov eax, dword [0x50573c]
push eax
push ecx
push 0
push 0
push edx
je 0x43a105
mov edx, dword [esi + 0xf88]
sub edx, eax
mov eax, dword [esi + 0xf84]
sub eax, ecx
mov ecx, dword [esi + 0x2034]
sar edx, 1
push edx
mov edx, dword [ecx + 4]
sar eax, 1
push eax
push edx
jmp 0x43a113
mov eax, dword [esi + 0x2034]
push 0x64
push 0x64
mov ecx, dword [eax + 4]
push ecx
call fcn.00448390
add esp, 0x20
cmp dword [esi + 0x165c], 3
jne 0x43a18e
mov eax, dword [esi + 0x24c0]
test eax, eax
je 0x43a178
mov edx, dword [esi + 0x101c]
lea edi, [esi + 0x24b4]
push edx
push edi
call fcn.00456fe0
mov ecx, dword [esi + 0x1010]
mov eax, dword [edi + 0x24]
mov edx, dword [esi + 0x1fa0]
push 0x3f800000
push 0x3f800000
push 0
neg ecx
push 0
push eax
mov eax, dword [esi + 0x1f9c]
shl ecx, 2
push ecx
push edx
push eax
push edi
call fcn.004572b0
add esp, 0x2c
jmp 0x43a18e
mov ecx, dword [esi + 0x1fa0]
mov edx, dword [esi + 0x1f9c]
push ecx
push edx
call fcn.00460a00
add esp, 8
mov eax, dword [esi + 0x20e0]
test ah, 8
je 0x43a1a2
push esi
call fcn.0042e230
add esp, 4
mov eax, dword [esi + 0x20e0]
and ah, 0xef
mov dword [esi + 0x20e0], eax
test byte [esi + 0x20], 2
je 0x438f6e
jmp 0x43a20d
mov al, byte [0x51da00]
test al, al
je 0x43a1d0
push 2
call fcn.00458200
add esp, 4
call fcn.00435650
push esi
call fcn.004355c0
mov ecx, dword [esi + 0x20]
add esp, 4
or ecx, 2
mov dword [esi + 0x20], ecx
mov eax, dword [esi + 0x20e0]
and al, 0xfe
mov dword [esi + 0x20e0], eax
jmp 0x43a20d
call fcn.00435650
push esi
call fcn.004355c0
push 1
push esi
call fcn.0041ff60
add esp, 0xc
push str.After_Game_Loop.
call fcn.004036b0
mov eax, dword [esi + 0x203c]
add esp, 4
mov ecx, dword [eax + 0xd4]
test ecx, ecx
je 0x43a236
push 1
push eax
push esi
call fcn.0041afb0
add esp, 0xc
mov eax, dword [esi + 0x1ff0]
test eax, eax
je 0x43a249
push esi
call fcn.00430560
add esp, 4
push esi
call fcn.004291f0
call fcn.00435650
push esi
call fcn.004355c0
push 1
push esi
call fcn.0042b0e0
mov al, byte [0x51da00]
add esp, 0x10
test al, al
je 0x43a29e
push 2
call fcn.00458370
add esp, 4
test al, al
je 0x43a286
push 2
call fcn.00458200
add esp, 4
push 4
call fcn.00458370
add esp, 4
test al, al
je 0x43a29e
push 8
call fcn.00458200
add esp, 4
cmp byte [esi + 0x24], 0x2a
jne 0x43a31f
test byte [esi + 0x26d8], 0x80
je 0x43a2c5
call fcn.00458790
test al, al
je 0x43a2c5
lea eax, [esi + 0x26cc]
push eax
call fcn.004587c0
add esp, 4
mov ebx, dword [esi + 0x20]
push esi
and ebx, 0xff3fffff
mov dword [esi + 0x20], ebx
call fcn.004355c0
add esp, 4
call fcn.00401030
cmp eax, 2
mov eax, str.bravo_fr.txt
je 0x43a2ee
mov eax, str.bravo_en.txt
push 0
push 0
push 1
push eax
push esi
call fcn.00437f90
push 1
push esi
call fcn.004401d0
mov ecx, dword [esi + 0x20]
add esp, 0x1c
or ecx, 2
mov dword [esi + 0x20], ecx
mov eax, dword [esi + 0x20e0]
and al, 0xfe
mov dword [esi + 0x20e0], eax
jmp 0x43a32a
push 1
push esi
call fcn.004401d0
add esp, 8
test dword [esi + 0x20], 0xc00000
jne 0x43a36a
mov ecx, dword [0x50deb4]
push ecx
call fcn.0044ede0
mov edx, dword [esi + 0x2034]
mov eax, dword [edx + 4]
push eax
call fcn.0044ede0
push 0x1fbff
call fcn.00449ce0
mov eax, dword [esp + 0x64]
add esp, 0xc
test eax, eax
jne 0x43a380
call fcn.0044a970
jmp 0x43a380
call fcn.00404290
mov ecx, dword [esi + 0x20e4]
push 0
push ecx
call fcn.004042f0
add esp, 8
mov ecx, dword [esi + 0x20]
mov ebp, dword [esp + 0x88]
and ch, 0xfe
mov dword [esi + 0x20], ecx
mov edi, dword [ebp + 8]
dec edi
js 0x43a3db
mov edx, dword [ebp]
mov eax, dword [edx + edi*4]
test eax, eax
je 0x43a3d8
mov ecx, dword [eax + 0xb8]
test ecx, ecx
je 0x43a3d8
cmp dword [eax], 3
jne 0x43a3d8
mov ecx, dword [eax + 4]
mov edx, 1
sub ecx, 0x10
shl edx, cl
test dl, 0x1e
jne 0x43a3d8
mov ecx, dword [eax + 0x190]
and ecx, 3
cmp cl, 2
jne 0x43a3d8
push eax
call fcn.00426820
add esp, 4
dec edi
jns 0x43a396
push esi
call fcn.0040e080
push esi
call fcn.00433be0
push esi
call fcn.00435590
mov edx, dword [esi + 0x2038]
lea eax, [esp + 0xc0]
push edx
push eax
call fcn.004190c0
mov ecx, dword [esi + 0x2038]
push ecx
call fcn.0041ca00
push esi
call fcn.00436120
mov edx, dword [esp + 0xb4]
mov eax, 0xfffffffd
mov dword [esi + 0xfa4], edx
mov edx, dword [esi + 0x20]
and edx, eax
add esp, 0x1c
mov dword [esi + 0x20], edx
mov ecx, dword [esi + 0x20e0]
and ecx, eax
mov dword [esi + 0x20e0], ecx
mov eax, dword [esi + 0x2470]
mov dword [esi + 0x2474], eax
mov dword [esi + 0x2470], 0
mov eax, dword [0x51a4a4]
test eax, eax
je 0x43a46d
call fcn.00424fe0
test eax, eax
je 0x43a46d
call fcn.00424fc0
jmp 0x43a485
call fcn.00424e40
test eax, eax
je 0x43a485
call fcn.00424e30
mov dword [0x51a4a4], 1
test dword [esi + 0x20e0], 0x18000
je 0x43a49a
push esi
call fcn.00436a10
add esp, 4
mov eax, dword [esp + 0x38]
test eax, eax
je 0x43a4af
lea ecx, [esp + 0x38]
push ecx
call fcn.0044b2d0
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x43a4c4
lea edx, [esp + 0x2c]
push edx
call fcn.0044b2d0
add esp, 4
call fcn.00404a90
call fcn.004f63f0
call fcn.00404bd0
mov eax, dword [esi + 0x20e0]
and eax, 0x18000
cmp eax, 0x8000
je 0x43a4ea
call fcn.00424e50
mov eax, dword [esi + 0x203c]
mov ecx, dword [eax + 0x264]
mov dword [esi + 0x25e0], ecx
mov edx, dword [eax + 0x268]
mov ecx, dword [esi + 0x20e0]
mov dword [esi + 0x25e4], edx
mov eax, dword [eax + 0x26c]
and ecx, 0x18000
cmp ecx, 0x10000
mov dword [esi + 0x25e8], eax
jne 0x43a535
mov edx, dword [esp + 0x8c]
mov dword [esi + 0x165c], edx
push esi
call fcn.00436a10
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84c
ret
mov eax, dword [esi + 0x20e0]
pop edi
and ah, 0xfe
mov dword [esi + 0x20e0], eax
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x84c
ret