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

Disassembly:
sub esp, 0xb8
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [0x466498]
xor ebx, ebx
mov eax, dword [esi + 0xf0]
mov ebp, dword [ecx + 0x774]
cmp eax, ebx
je 0x40a04e
mov eax, dword [esi + 0x124]
cmp eax, ebx
je 0x40af69
sub eax, dword [esp + 0xc8]
cmp eax, ebx
mov dword [esi + 0x124], eax
jg 0x409fec
mov dword [esi + 0x124], ebx
mov edx, dword [esi + 0x124]
mov ecx, 0x3e8
sub ecx, edx
lea eax, [esp + 0x2c]
mov dword [esp + 0x1c], ecx
push eax
fild dword [esp + 0x20]
push ecx
lea edx, [esi + 0x118]
lea eax, [esi + 0x100]
lea ecx, [esi + 0x10c]
fmul dword [0x453448]
fstp dword [esp]
push edx
push eax
lea edx, [esi + 0xf4]
push ecx
push edx
call fcn.0041d4d0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
add esp, 0x18
mov dword [esi + 0x38], edx
jmp 0x40af69
cmp ebp, ebx
je 0x40af69
mov eax, dword [esi + 0x128]
push edi
cmp eax, ebx
je 0x40a12b
mov edi, dword [esp + 0xcc]
cmp edi, eax
jle 0x40a072
mov edi, eax
mov dword [esp + 0x3c], edi
fild dword [esp + 0x3c]
fmul dword [0x453530]
fld qword [0x453528]
call fcn.0042a1ba
fld st(0)
fcos
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x4c], ecx
fstp dword [esp + 0x10]
fsin
fld dword [esi]
fld dword [esp + 0x10]
fmul dword [esi]
fld st(2)
fmul dword [esi + 0x10]
faddp st(1)
fstp dword [esi]
fld st(1)
fmul dword [esi + 0x14]
fld dword [esp + 0x10]
fmul dword [esi + 4]
faddp st(1)
fstp dword [esi + 4]
fld dword [esp + 0x10]
fmul dword [esi + 8]
fld st(2)
fmul dword [esi + 0x18]
faddp st(1)
fstp dword [esi + 8]
fld dword [esp + 0x10]
fmul dword [esi + 0x10]
fxch st(1)
fmul st(2)
fsubp st(1)
fstp dword [esi + 0x10]
fld dword [esp + 0x10]
fmul dword [esi + 0x14]
fld dword [esp + 0x20]
fmul st(2)
fsubp st(1)
fstp dword [esi + 0x14]
fld dword [esp + 0x10]
fmul dword [esi + 0x18]
fld dword [esp + 0x4c]
fmul st(2)
fsubp st(1)
fstp dword [esi + 0x18]
mov eax, dword [esi + 0x128]
sub eax, edi
fstp st(0)
mov dword [esi + 0x128], eax
jne 0x40a9a9
mov dword [esi + 0x12c], ebx
jmp 0x40a9a9
cmp dword [ecx + 0x11d4], ebx
jne 0x40a9a9
fild dword [esp + 0xcc]
mov eax, dword [ebp + 0x46c]
mov edx, dword [ebp + 0x468]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x9c]
fstp dword [esp + 0x14]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x6c], eax
mov eax, dword [esi + 0xd4]
mov dword [esp + 0x18], edx
mov edx, dword [esi + 0xa0]
cmp eax, ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x70], edx
je 0x40a1a0
push str.Holes_Off_n
push ecx
call fcn.00404150
mov ecx, dword [0x466498]
add esp, 8
cmp dword [esi + 0xd8], ebx
je 0x40a1b6
push str.Walls_Off_n
push ecx
call fcn.00404150
add esp, 8
cmp dword [esi + 0xc8], ebx
je 0x40a28c
fld dword [esi + 0xb4]
fsub dword [esi + 0x9c]
fld dword [esi + 0xb8]
fsub dword [esi + 0xa0]
fstp dword [esp + 0x34]
fld dword [esi + 0xbc]
fsub dword [esi + 0xa4]
fld dword [esi + 0xc0]
fcomp dword [0x453484]
fnstsw ax
test ah, 1
je 0x40a221
fld st(0)
fmulp st(1)
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
faddp st(1)
fld st(1)
fmul st(2)
faddp st(1)
fsqrt
fsubr dword [0x453524]
fstp dword [esi + 0xc0]
jmp 0x40a223
fstp st(0)
fmul dword [0x453520]
fld dword [esp + 0x34]
fmul dword [0x453520]
fstp dword [esp + 0x34]
fmul dword [esp + 0x14]
fld dword [esp + 0x14]
fmul dword [esp + 0x34]
fstp dword [esp + 0x34]
fadd dword [esi + 0xa8]
fstp dword [esi + 0xa8]
fld dword [esp + 0x34]
fadd dword [esi + 0xac]
fstp dword [esi + 0xac]
fld qword [0x453518]
fld dword [esp + 0x14]
call fcn.00429f90
fld st(0)
fmul dword [esi + 0xa8]
fstp dword [esi + 0xa8]
fmul dword [esi + 0xac]
fstp dword [esi + 0xac]
fld dword [esp + 0x18]
fmul dword [ebp + 0x20]
cmp dword [esi + 0xe4], ebx
fmul dword [0x453514]
fld dword [esp + 0x18]
fmul dword [ebp + 0x24]
fmul dword [0x453514]
fstp dword [esp + 0x34]
je 0x40a2c6
fmul dword [0x453510]
fld dword [esp + 0x34]
fmul dword [0x453510]
fstp dword [esp + 0x34]
fadd dword [esi + 0xa8]
fstp dword [esi + 0xa8]
fld dword [esp + 0x34]
fadd dword [esi + 0xac]
fstp dword [esi + 0xac]
mov eax, dword [esi + 0xb0]
mov dword [esi + 0xb0], eax
mov eax, dword [esi + 0xec]
fld dword [esi + 0xa8]
cmp eax, ebx
je 0x40a369
fcomp dword [0x45350c]
mov ecx, 0x3d4ccccd
mov edx, 0xbd4ccccd
fnstsw ax
test ah, 0x41
jne 0x40a31d
mov dword [esi + 0xa8], ecx
jmp 0x40a336
fld dword [esi + 0xa8]
fcomp dword [0x453508]
fnstsw ax
test ah, 1
je 0x40a336
mov dword [esi + 0xa8], edx
fld dword [esi + 0xac]
fcomp dword [0x45350c]
fnstsw ax
test ah, 0x41
jne 0x40a354
mov dword [esi + 0xac], ecx
jmp 0x40a3d5
fld dword [esi + 0xac]
fcomp dword [0x453508]
fnstsw ax
test ah, 1
je 0x40a3d5
jmp 0x40a3cf
fcomp dword [0x453450]
mov ecx, 0x3f000000
mov edx, 0xbf000000
fnstsw ax
test ah, 0x41
jne 0x40a388
mov dword [esi + 0xa8], ecx
jmp 0x40a3a1
fld dword [esi + 0xa8]
fcomp dword [0x453504]
fnstsw ax
test ah, 1
je 0x40a3a1
mov dword [esi + 0xa8], edx
fld dword [esi + 0xac]
fcomp dword [0x453450]
fnstsw ax
test ah, 0x41
jne 0x40a3bc
mov dword [esi + 0xac], ecx
jmp 0x40a3d5
fld dword [esi + 0xac]
fcomp dword [0x453504]
fnstsw ax
test ah, 1
je 0x40a3d5
mov dword [esi + 0xac], edx
fld dword [esi + 0xb0]
mov edx, dword [esi + 0xac]
mov ecx, dword [esi + 0xa8]
fld st(0)
fmulp st(1)
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ecx
fld dword [esp + 0x28]
fmul dword [esp + 0x28]
faddp st(1)
fld dword [esp + 0x24]
fmul dword [esp + 0x24]
faddp st(1)
fcom dword [0x453440]
fnstsw ax
test ah, 0x40
jne 0x40a430
fsqrt
fdivr dword [0x45343c]
fld st(0)
fmul dword [esp + 0x24]
fstp dword [esp + 0x24]
fmul dword [esp + 0x28]
fstp dword [esp + 0x28]
jmp 0x40a432
fstp st(0)
mov ecx, ebp
call fcn.0040f7c0
fmul dword [esp + 0x18]
mov ecx, ebp
fmul dword [esp + 0x24]
fstp dword [esp + 0x24]
call fcn.0040f7c0
fmul dword [esp + 0x18]
mov ecx, ebp
fmul dword [esp + 0x28]
fstp dword [esp + 0x28]
call fcn.0040f7c0
fstp st(0)
fld dword [esp + 0x24]
fabs
fld dword [esi + 0xa8]
fabs
fcompp
fnstsw ax
test ah, 0x41
jne 0x40a48a
fld dword [esi + 0xa8]
fsub dword [esp + 0x24]
fstp dword [esi + 0xa8]
jmp 0x40a490
mov dword [esi + 0xa8], ebx
fld dword [esp + 0x28]
fabs
fld dword [esi + 0xac]
fabs
fcompp
fnstsw ax
test ah, 0x41
jne 0x40a4b9
fld dword [esi + 0xac]
fsub dword [esp + 0x28]
fstp dword [esi + 0xac]
jmp 0x40a4bf
mov dword [esi + 0xac], ebx
fld dword [esp + 0x18]
fmul dword [esi + 0xa8]
fld dword [esp + 0x18]
fmul dword [esi + 0xac]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0xc8]
test eax, eax
fstp dword [esp + 0xc0]
mov dword [esp + 0x2c], 0x40f00000
fadd dword [esi + 0x9c]
fstp dword [esp + 0x24]
fld dword [esp + 0xc0]
fadd dword [esi + 0xa0]
fstp dword [esp + 0x28]
jne 0x40a733
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, ebp
call fcn.004100a0
mov edx, dword [esi + 0x9c]
mov edi, eax
sub edi, 2
push edx
mov ecx, ebp
mov dword [esp + 0x60], edi
call fcn.004100a0
add eax, 2
mov ecx, ebp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
push eax
call fcn.004100f0
mov ecx, dword [esi + 0xa0]
mov ebx, eax
push ecx
mov ecx, ebp
sub ebx, 2
call fcn.004100f0
add eax, 2
test edi, edi
mov dword [esp + 0x4c], eax
jge 0x40a577
mov dword [esp + 0x5c], 0
test ebx, ebx
jge 0x40a57d
xor ebx, ebx
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x14]
cmp edx, ecx
jl 0x40a58e
dec ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x40]
cmp eax, ecx
jl 0x40a59d
lea eax, [ecx - 1]
mov dword [esp + 0x4c], eax
cmp ebx, eax
jg 0x40a733
mov edi, dword [esp + 0x5c]
cmp edi, dword [esp + 0x14]
jg 0x40a5ea
lea edx, [esp + 0x20]
lea eax, [esp + 0x60]
push edx
lea ecx, [esp + 0x34]
push eax
push ecx
push ebx
push edi
push ebp
mov ecx, esi
call fcn.0040b420
test eax, eax
je 0x40a5dd
cmp eax, 1
mov dword [esp + 0x3c], eax
jne 0x40a5dd
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ebx
mov eax, dword [esp + 0x14]
inc edi
cmp edi, eax
jle 0x40a5af
mov edi, dword [esp + 0x5c]
mov eax, dword [esp + 0x4c]
inc ebx
cmp ebx, eax
jle 0x40a5a9
mov eax, dword [esp + 0x3c]
cmp eax, 1
jne 0x40a724
fld dword [esp + 0x68]
fmul dword [esi + 0xb0]
fld dword [esp + 0x64]
fmul dword [esi + 0xac]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [esi + 0x40], edx
mov edx, dword [esi + 0xa8]
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0xac]
mov edi, dword [esi + 0xe0]
faddp st(1)
fld dword [esp + 0x60]
fmul dword [esi + 0xa8]
mov dword [esi + 0x48], ecx
mov ecx, dword [esi + 0xb0]
mov dword [esi + 0x58], edx
mov edx, dword [esp + 0x60]
mov dword [esi + 0x5c], eax
mov eax, dword [esp + 0x64]
mov dword [esi + 0x60], ecx
mov ecx, dword [esp + 0x68]
mov dword [esi + 0x64], edx
mov edx, dword [esp + 0x44]
mov dword [esi + 0x68], eax
mov eax, dword [esp + 0x48]
faddp st(1)
mov dword [esi + 0x6c], ecx
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x70], edx
mov edx, dword [esp + 0x34]
mov dword [esi + 0x74], eax
mov eax, dword [esp + 0x38]
fstp dword [esp + 0x14]
test edi, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
je 0x40a6f6
fld dword [esp + 0x14]
fcomp dword [0x453508]
fnstsw ax
test ah, 1
je 0x40a6f6
fld dword [esp + 0x14]
fcomp dword [0x453500]
fnstsw ax
test ah, 0x41
je 0x40a6c4
mov eax, 0x7f
jmp 0x40a6df
fld dword [esp + 0x14]
fmul dword [0x4534fc]
fmul dword [0x4534f8]
fadd dword [0x4534f4]
call fcn.00429f60
push eax
mov ecx, edi
call fcn.00418a20
mov ecx, dword [esi + 0xe0]
push 0
push 0
call fcn.00418a70
fld dword [esp + 0x14]
fmul dword [0x4534f0]
fld st(0)
fmul dword [esp + 0x60]
fadd dword [esi + 0xa8]
fstp dword [esi + 0xa8]
fmul dword [esp + 0x64]
fadd dword [esi + 0xac]
fstp dword [esi + 0xac]
jmp 0x40a733
cmp eax, 2
jne 0x40a733
mov dword [esi + 0xc8], 1
fld dword [esp + 0x18]
fsub dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x9c], ecx
mov dword [esi + 0xa0], edx
mov dword [esi + 0xa4], eax
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fcomp dword [0x453440]
fnstsw ax
test ah, 0x41
je 0x40a4bf
cmp dword [esp + 0x3c], 1
je 0x40a4bf
fld dword [esi + 0x9c]
fsub dword [esp + 0x6c]
fld dword [esi + 0xa0]
fsub dword [esp + 0x70]
fld st(0)
fabs
fcomp qword [0x4534e8]
fnstsw ax
test ah, 0x41
jne 0x40a7ae
fmul dword [0x4534e4]
fstp dword [esp + 0x1c]
jmp 0x40a7b0
fstp st(0)
fld st(0)
fabs
fcomp qword [0x4534e8]
fnstsw ax
test ah, 0x41
jne 0x40a7cd
fmul dword [0x4534e0]
fstp dword [esp + 0x10]
jmp 0x40a7cf
fstp st(0)
fld dword [esp + 0x1c]
fcomp dword [0x4534dc]
fnstsw ax
test ah, 0x41
jne 0x40a7f1
fld dword [esp + 0x1c]
fld qword [0x453528]
call fcn.0042a1ba
jmp 0x40a817
fld dword [esp + 0x1c]
fcomp dword [0x453440]
fnstsw ax
test ah, 1
je 0x40a81b
fld dword [esp + 0x1c]
fld qword [0x453528]
call fcn.0042a1ba
fadd dword [0x4534dc]
fstp dword [esp + 0x1c]
fld dword [esp + 0x10]
fcomp dword [0x4534dc]
fnstsw ax
test ah, 0x41
jne 0x40a83d
fld dword [esp + 0x10]
fld qword [0x453528]
call fcn.0042a1ba
jmp 0x40a863
fld dword [esp + 0x10]
fcomp dword [0x453440]
fnstsw ax
test ah, 1
je 0x40a867
fld dword [esp + 0x10]
fld qword [0x453528]
call fcn.0042a1ba
fadd dword [0x4534dc]
fstp dword [esp + 0x10]
fld dword [esp + 0x1c]
fcos
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x24]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], eax
mov edx, dword [esi + 0x20]
fld dword [esp + 0x1c]
fsin
fld dword [esi + 4]
fld st(2)
fmul dword [esi + 4]
fld st(2)
fmul dword [esi + 8]
fsubp st(1)
fstp dword [esi + 4]
fld st(2)
fmul dword [esi + 0x14]
fld st(2)
fmul dword [esi + 0x18]
fsubp st(1)
fstp dword [esi + 0x14]
fld st(2)
fmul dword [esi + 0x24]
fld st(2)
fmul dword [esi + 0x28]
fsubp st(1)
fstp dword [esi + 0x24]
fld st(2)
fmul dword [esi + 0x34]
fld st(2)
fmul dword [esi + 0x38]
fsubp st(1)
fstp dword [esi + 0x34]
fmul st(1)
fld st(2)
fmul dword [esi + 8]
faddp st(1)
fstp dword [esi + 8]
fld dword [esp + 0x48]
fmul st(1)
fld st(2)
fmul dword [esi + 0x18]
faddp st(1)
fstp dword [esi + 0x18]
fld dword [esp + 0x44]
fmul st(1)
fld st(2)
fmul dword [esi + 0x28]
mov dword [esp + 0x44], edx
faddp st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x40]
fmul st(1)
fxch st(2)
fmul dword [esi + 0x38]
faddp st(2)
fxch st(1)
fstp dword [esi + 0x38]
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x30]
fstp st(0)
fld dword [esp + 0x10]
fcos
mov dword [esp + 0x48], ecx
mov dword [esp + 0x40], eax
fld dword [esp + 0x10]
fsin
fld dword [esi]
fld st(2)
fmul dword [esi]
fld st(2)
fmul dword [esi + 8]
faddp st(1)
fstp dword [esi]
fld st(1)
fmul dword [esi + 0x18]
fld st(3)
fmul dword [esi + 0x10]
faddp st(1)
xor ebx, ebx
fstp dword [esi + 0x10]
fld dword [esp + 0x20]
fmul st(2)
fld st(3)
fmul dword [esi + 0x20]
faddp st(1)
fstp dword [esi + 0x20]
fld st(1)
fmul dword [esi + 0x38]
fld st(3)
fmul dword [esi + 0x30]
faddp st(1)
fstp dword [esi + 0x30]
fld st(2)
fmul dword [esi + 8]
fxch st(1)
fmul st(2)
fsubp st(1)
fstp dword [esi + 8]
fld st(1)
fmul dword [esi + 0x18]
fld dword [esp + 0x48]
fmul st(2)
fsubp st(1)
fstp dword [esi + 0x18]
fld dword [esp + 0x20]
fmul st(2)
fld dword [esp + 0x44]
fmul st(2)
fsubp st(1)
fstp dword [esi + 0x28]
fxch st(1)
fmul dword [esi + 0x38]
fld dword [esp + 0x40]
fmul st(2)
fsubp st(1)
fstp dword [esi + 0x38]
fstp st(0)
fld dword [ebp + 0x20]
fmul dword [esi + 0xa4]
fld dword [ebp + 0x10]
fmul dword [esi + 0xa0]
faddp st(1)
fld dword [esi + 0x9c]
fmul dword [ebp]
faddp st(1)
fadd dword [ebp + 0x30]
fstp dword [esi + 0x30]
fld dword [ebp + 0x24]
fmul dword [esi + 0xa4]
fld dword [ebp + 0x14]
fmul dword [esi + 0xa0]
faddp st(1)
fld dword [ebp + 4]
fmul dword [esi + 0x9c]
faddp st(1)
fadd dword [ebp + 0x34]
fstp dword [esi + 0x34]
fld dword [ebp + 0x28]
fmul dword [esi + 0xa4]
fld dword [ebp + 0x18]
fmul dword [esi + 0xa0]
faddp st(1)
fld dword [ebp + 8]
fmul dword [esi + 0x9c]
faddp st(1)
fadd dword [ebp + 0x38]
fstp dword [esi + 0x38]
fld dword [esi + 8]
fld dword [esi + 4]
fld dword [esi]
fld st(2)
fmulp st(3)
fld st(1)
fmul st(2)
faddp st(3)
fld st(0)
fmul st(1)
faddp st(3)
fstp st(0)
fstp st(0)
fcom dword [0x453440]
fnstsw ax
test ah, 0x40
jne 0x40aa5f
fsqrt
fdivr dword [0x45343c]
fld st(0)
fmul dword [esi]
fstp dword [esi]
fld st(0)
fmul dword [esi + 4]
fstp dword [esi + 4]
fmul dword [esi + 8]
fstp dword [esi + 8]
jmp 0x40aa61
fstp st(0)
fld dword [esi + 0x18]
fld dword [esi + 0x14]
fld dword [esi + 0x10]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp st(3)
fstp st(0)
fstp st(0)
fcom dword [0x453440]
fnstsw ax
test ah, 0x40
jne 0x40aaad
fsqrt
fdivr dword [0x45343c]
fld st(0)
fmul dword [esi + 0x10]
fstp dword [esi + 0x10]
fld st(0)
fmul dword [esi + 0x14]
fstp dword [esi + 0x14]
fmul dword [esi + 0x18]
fstp dword [esi + 0x18]
jmp 0x40aaaf
fstp st(0)
fld dword [esi + 0x28]
fld dword [esi + 0x24]
fld dword [esi + 0x20]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp st(3)
fstp st(0)
fstp st(0)
fcom dword [0x453440]
fnstsw ax
test ah, 0x40
jne 0x40aafb
fsqrt
fdivr dword [0x45343c]
fld st(0)
fmul dword [esi + 0x20]
fstp dword [esi + 0x20]
fld st(0)
fmul dword [esi + 0x24]
fstp dword [esi + 0x24]
fmul dword [esi + 0x28]
fstp dword [esi + 0x28]
jmp 0x40aafd
fstp st(0)
cmp dword [esi + 0xc8], ebx
je 0x40ab82
fld dword [esi + 0xc0]
fcomp dword [0x453484]
fnstsw ax
test ah, 0x41
jne 0x40ab43
fild dword [esp + 0xcc]
fld st(0)
fmul dword [0x453514]
fadd dword [esi + 0xc4]
fst dword [esi + 0xc4]
fmul st(1)
fadd dword [esi + 0xc0]
fstp dword [esi + 0xc0]
fstp st(0)
fld dword [esi + 0xc0]
fcomp dword [0x4534d8]
fnstsw ax
test ah, 0x41
jne 0x40ab63
mov ecx, dword [0x466498]
push 2
call fcn.004076e0
fld dword [esi + 0x38]
fsub dword [esi + 0xc0]
mov ecx, dword [esi + 0xdc]
cmp ecx, ebx
fstp dword [esi + 0x38]
je 0x40ac50
jmp 0x40ac4b
mov edi, dword [esi + 0xdc]
cmp edi, ebx
je 0x40ac50
fld dword [esi + 0xb0]
fld dword [esi + 0xac]
fld dword [esi + 0xa8]
fld st(2)
fmul st(3)
fld st(2)
fmul st(3)
faddp st(1)
fld st(1)
fmul st(2)
faddp st(1)
fsub dword [0x4534d4]
fstp dword [esp + 0x10]
fstp st(0)
fstp st(0)
fstp st(0)
fld dword [esp + 0x10]
fcomp dword [0x453440]
fnstsw ax
test ah, 0x41
jne 0x40ac49
fld dword [esp + 0x10]
fcomp dword [0x453450]
fnstsw ax
test ah, 0x41
jne 0x40abec
mov dword [esp + 0x10], 0x3f000000
fld dword [esp + 0x10]
fmul dword [0x4534d0]
call fcn.00429f60
mov ecx, edi
mov dword [edi + 0x14], eax
call fcn.00418b70
fld dword [esp + 0x10]
fcomp dword [0x4534cc]
fnstsw ax
test ah, 0x41
jne 0x40ac1e
mov dword [esp + 0x10], 0x3ca3d70a
fld dword [esp + 0x10]
fmul dword [0x4534c8]
call fcn.00429f60
mov ecx, dword [esi + 0xdc]
push eax
call fcn.00418a20
mov ecx, dword [esi + 0xdc]
push ebx
push 1
call fcn.00418a70
jmp 0x40ac50
mov ecx, edi
call fcn.00418b00
mov ecx, esi
call fcn.0040afd0
mov ecx, dword [esi + 0xa0]
push ecx
mov ecx, ebp
call fcn.004100f0
mov edx, dword [esi + 0x9c]
push eax
push edx
mov ecx, ebp
call fcn.004100a0
push eax
mov ecx, ebp
call fcn.00410000
and eax, 0xff
mov ecx, ebp
mov ebx, eax
lea eax, [esp + 0x50]
push eax
call fcn.0040f860
fld dword [esp + 0x50]
fsub dword [esi + 0x9c]
fstp dword [esp + 0x50]
fld dword [esp + 0x54]
fsub dword [esi + 0xa0]
fstp dword [esp + 0x54]
fld dword [0x453480]
fsub dword [esi + 0xa4]
fstp dword [esp + 0x58]
fld dword [esp + 0x54]
fmul dword [esp + 0x54]
fld dword [esp + 0x50]
fmul dword [esp + 0x50]
faddp st(1)
fld dword [esp + 0x58]
fmul dword [esp + 0x58]
faddp st(1)
fcomp dword [0x4534c4]
fnstsw ax
test ah, 1
je 0x40af56
mov ecx, dword [0x466498]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov edi, dword [ecx + 0x30]
mov eax, dword [edi + 8]
mov edx, dword [edi + 4]
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x80], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x7c], edx
mov edx, dword [edi + 0x10]
mov dword [esp + 0x84], ecx
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x8c], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x88], edx
mov edx, dword [edi + 0x1c]
mov dword [esp + 0x90], ecx
mov ecx, dword [edi + 0x24]
mov dword [esp + 0x98], eax
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x94], edx
mov edx, dword [edi + 0x28]
mov dword [esp + 0x9c], ecx
mov ecx, dword [edi + 0x30]
mov dword [esp + 0xa4], eax
mov eax, dword [edi + 0x38]
mov dword [esp + 0xa0], edx
mov edx, dword [edi + 0x34]
mov dword [esp + 0xa8], ecx
mov ecx, dword [edi + 0x3c]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xac], edx
mov edx, dword [edi + 0x40]
lea eax, [esp + 0x6c]
mov dword [esp + 0xb4], ecx
push eax
mov ecx, edi
mov dword [esp + 0xbc], edx
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0xc3fa0000
mov dword [edi + 0x3c], 0x442f0000
call fcn.0041e840
mov ecx, dword [esi + 0xdc]
mov dword [esi + 0xf0], 1
test ecx, ecx
je 0x40ade0
call fcn.00418b00
mov dword [esi + 0x124], 0x3e8
mov ecx, dword [esi + 0x30]
mov dword [esi + 0xf4], ecx
mov edx, dword [esi + 0x34]
mov dword [esi + 0xf8], edx
mov eax, dword [esi + 0x38]
mov dword [esi + 0xfc], eax
mov ecx, dword [esp + 0x7c]
fld dword [edi + 0x24]
fmul dword [0x4534c0]
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
fsubr dword [edi + 0x34]
fstp dword [esi + 0x10c]
fld dword [edi + 0x28]
fmul dword [0x4534c0]
fsubr dword [edi + 0x38]
fstp dword [esi + 0x110]
fld dword [edi + 0x2c]
fmul dword [0x4534c0]
fsubr dword [edi + 0x3c]
fstp dword [esi + 0x114]
fld dword [edi + 0x24]
fmul dword [0x4534bc]
fstp dword [esi + 0x118]
fld dword [edi + 0x28]
fmul dword [0x4534bc]
fstp dword [esi + 0x11c]
fld dword [edi + 0x2c]
fmul dword [0x4534b8]
mov dword [esi + 0x108], 0x43480000
fstp dword [esi + 0x120]
fld dword [esi + 0xa8]
fmul dword [0x4534b4]
fstp dword [esi + 0x100]
fld dword [esi + 0xac]
fmul dword [0x4534b4]
fstp dword [esi + 0x104]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x88]
mov dword [edi + 8], edx
mov edx, dword [esp + 0x8c]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x90]
mov dword [edi + 0x10], ecx
mov ecx, dword [esp + 0x94]
mov dword [edi + 0x14], edx
mov edx, dword [esp + 0x98]
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x9c]
mov dword [edi + 0x1c], ecx
mov ecx, dword [esp + 0xa0]
mov dword [edi + 0x20], edx
mov edx, dword [esp + 0xa4]
mov dword [edi + 0x24], eax
mov eax, dword [esp + 0xa8]
mov dword [edi + 0x28], ecx
mov ecx, dword [esp + 0xac]
mov dword [edi + 0x2c], edx
mov edx, dword [esp + 0xb0]
mov dword [edi + 0x30], eax
mov eax, dword [esp + 0xb4]
mov dword [edi + 0x34], ecx
mov ecx, dword [esp + 0xb8]
mov dword [edi + 0x38], edx
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], ecx
mov ecx, dword [0x466498]
call fcn.00406610
mov ecx, dword [0x466498]
push 1
call fcn.004076e0
mov ecx, dword [0x466498]
call fcn.00406a80
test ebx, ebx
pop edi
je 0x40af67
mov edx, dword [0x466498]
mov dword [edx + 0xa7c], ebx
xor ebx, ebx
mov eax, dword [esi + 0xe4]
mov ecx, dword [esp + 0xc8]
cmp eax, ebx
jle 0x40af8a
sub eax, ecx
mov dword [esi + 0xe4], eax
jns 0x40af8a
mov dword [esi + 0xe4], ebx
mov eax, dword [esi + 0xec]
cmp eax, ebx
jle 0x40afa4
sub eax, ecx
mov dword [esi + 0xec], eax
jns 0x40afa4
mov dword [esi + 0xec], ebx
mov eax, dword [esi + 0xe8]
cmp eax, ebx
jle 0x40afbe
sub eax, ecx
mov dword [esi + 0xe8], eax
jns 0x40afbe
mov dword [esi + 0xe8], ebx
pop esi
pop ebp
pop ebx
add esp, 0xb8
ret 4