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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x338
push ebx
push ebp
push esi
mov ebx, ecx
mov esi, dword [ebx + 8]
mov eax, dword [esi + 0x13958]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
mov ecx, dword [esi + 0x1395c]
push edi
fdiv qword [0x6a1590]
sub esp, 0xc
lea edx, [esp + 0x164]
mov dword [esp + 0x30], ecx
fstp dword [esp + 0x28]
fld1
fstp dword [esp + 8]
fld dword [esp + 0x28]
fst dword [esp + 4]
fstp dword [esp]
push edx
call fcn.00474095
fldz
fst dword [esp + 0x9c]
mov esi, dword [esi + 0xdf480]
fst dword [esp + 0x98]
add esp, 0x10
fst dword [esp + 0x84]
fst dword [esp + 0x80]
fst dword [esp + 0x7c]
fst dword [esp + 0x78]
fst dword [esp + 0x74]
fst dword [esp + 0x70]
fst dword [esp + 0x6c]
fst dword [esp + 0x68]
fst dword [esp + 0x64]
fst dword [esp + 0x60]
fst dword [esp + 0x5c]
fst dword [esp + 0x58]
fst dword [esp + 0x54]
fst dword [esp + 0x50]
fst dword [esp + 0x10c]
fst dword [esp + 0x108]
fst dword [esp + 0x104]
fst dword [esp + 0x100]
fst dword [esp + 0xfc]
fst dword [esp + 0xf8]
fst dword [esp + 0xf4]
fst dword [esp + 0xf0]
fst dword [esp + 0xec]
fst dword [esp + 0xe8]
fst dword [esp + 0xe4]
fst dword [esp + 0xe0]
fst dword [esp + 0xdc]
fst dword [esp + 0xd8]
fst dword [esp + 0xd4]
fst dword [esp + 0xd0]
fst dword [esp + 0x264]
fst dword [esp + 0x260]
fst dword [esp + 0x25c]
fst dword [esp + 0x258]
fst dword [esp + 0x254]
fst dword [esp + 0x250]
fst dword [esp + 0x24c]
fst dword [esp + 0x248]
fst dword [esp + 0x244]
fst dword [esp + 0x240]
fst dword [esp + 0x23c]
fst dword [esp + 0x238]
fst dword [esp + 0x234]
fst dword [esp + 0x230]
fst dword [esp + 0x22c]
fstp dword [esp + 0x228]
test esi, esi
je 0x407958
mov ecx, dword [esi + 0xc]
jmp 0x40795a
xor ecx, ecx
push 2
push 2
xor edi, edi
call fcn.00470a87
fldz
mov eax, dword [ebx + 0x155c]
mov eax, dword [eax + 0x5c]
push 0xffffffffffffffff
sub esp, 8
lea ecx, [ebx + 0x155c]
fst dword [esp + 4]
lea edx, [esp + 0x164]
fstp dword [esp]
push edx
call eax
fldz
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x28]
lea ecx, [esp + 0x314]
fld qword [0x6a1728]
fmul st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp + 4]
fmul qword [0x6a14f8]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp]
push ecx
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.00404580
fldz
mov edi, dword [ebx + 0x15f0]
push 0xffffffffffffffff
sub esp, 8
fst dword [esp + 4]
lea edx, [esp + 0x5c]
fstp dword [esp]
push edx
lea esi, [ebx + 0x15f0]
lea eax, [esp + 0x318]
lea edx, [esp + 0x168]
call fcn.004044d0
push eax
mov eax, dword [edi + 0x5c]
mov ecx, esi
call eax
lea edi, [ebx + 0x33e0]
lea esi, [esp + 0x198]
call fcn.004503c0
mov edx, dword [edi + 0x2c]
mov eax, dword [edx + 4]
lea ecx, [edi + 0x2c]
call eax
fldz
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x28]
mov esi, eax
fld qword [0x6a1618]
lea ecx, [esp + 0x314]
fmul st(1)
shl esi, 0x18
or esi, 0xffffff
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp + 4]
fmul qword [0x6a1480]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp]
push ecx
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.00404580
mov eax, 2
xor ecx, ecx
fldz
push ecx
push eax
push esi
sub esp, 8
fst dword [esp + 4]
lea edx, [esp + 0x64]
fstp dword [esp]
push edx
lea eax, [esp + 0x1b0]
push eax
lea eax, [esp + 0x324]
lea edx, [esp + 0x174]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x1f8]
call fcn.004044d0
push eax
lea eax, [ebx + 0x17ac]
call fcn.0046d870
fld dword [0x6a2248]
fst dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
fld dword [0x6a16a0]
mov dword [esp + 0x90], ecx
fst dword [esp + 0x24]
mov edx, dword [esp + 0x24]
fldz
mov dword [esp + 0x94], edx
fst dword [esp + 0x20]
sub esp, 0xc
mov eax, dword [esp + 0x2c]
fxch st(1)
fst dword [esp + 0x30]
mov dword [esp + 0xa4], eax
mov ecx, dword [esp + 0x30]
fxch st(2)
fst dword [esp + 0x2c]
mov dword [esp + 0xa8], ecx
mov edx, dword [esp + 0x2c]
fxch st(2)
fst dword [esp + 0x30]
mov dword [esp + 0xac], edx
mov eax, dword [esp + 0x30]
fxch st(2)
fstp dword [esp + 0x2c]
mov dword [esp + 0xb0], eax
mov ecx, dword [esp + 0x2c]
fxch st(1)
fst dword [esp + 0x30]
mov dword [esp + 0xb4], ecx
mov edx, dword [esp + 0x30]
fxch st(1)
fst dword [esp + 0x2c]
mov dword [esp + 0xb8], edx
mov eax, dword [esp + 0x2c]
fxch st(1)
fstp dword [esp + 0x30]
mov dword [esp + 0xbc], eax
mov eax, dword [ebx + 0x30c4]
mov ecx, dword [esp + 0x30]
fstp dword [esp + 8]
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0xc0], ecx
fld dword [esp + eax + 0xa0]
fld dword [esp + 0x28]
lea edx, [esp + 0x1ec]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp + 4]
fmul dword [esp + eax + 0x9c]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp]
push edx
call fcn.0047402e
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
add esp, 0x10
call edx
test al, al
jne 0x407bfe
mov edx, dword [ebx + 8]
mov eax, dword [edx + 0x20ec]
sub eax, 0
je 0x407c40
sub eax, 1
je 0x407c20
sub eax, 1
jne 0x407c5a
fldz
fstp dword [esp + 0x20]
fld dword [0x6a168c]
mov eax, dword [esp + 0x20]
fstp dword [esp + 0x24]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x44], ecx
jmp 0x407c5a
fld dword [0x6a168c]
fst dword [esp + 0x20]
mov edx, dword [esp + 0x20]
fstp dword [esp + 0x24]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
jmp 0x407c5a
fldz
fst dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
fstp dword [esp + 0x24]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
fldz
sub esp, 0xc
fstp dword [esp + 8]
lea eax, [esp + 0x314]
fld dword [esp + 0x50]
fstp dword [esp + 4]
fld dword [esp + 0x4c]
fstp dword [esp]
push eax
call fcn.0047402e
add esp, 0x10
cmp byte [ebx + 0x3170], 0
jne 0x4085f3
fldz
sub esp, 0xc
fstp dword [esp + 8]
lea ecx, [esp + 0x1a4]
fld dword [esp + 0x28]
fld qword [0x6a2240]
fmul st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp + 4]
fmul qword [0x6a2238]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp]
push ecx
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.00404580
fldz
mov edi, dword [ebx + 0x1684]
push 0xffffffffffffffff
sub esp, 8
fst dword [esp + 4]
lea edx, [esp + 0x5c]
fstp dword [esp]
push edx
lea esi, [ebx + 0x1684]
lea eax, [esp + 0x1a8]
lea edx, [esp + 0x168]
call fcn.004044d0
push eax
mov eax, dword [edi + 0x5c]
mov ecx, esi
call eax
fld qword [0x6a2230]
cmp dword [ebx + 0x30c4], 3
jne 0x407e55
fld dword [esp + 0x1c]
sub esp, 0xc
fld st(0)
lea ecx, [esp + 0x1a4]
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x44]
fldz
fstp dword [esp + 8]
fld dword [esp + 0x44]
fstp dword [esp + 4]
fmul qword [0x6a1758]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp]
push ecx
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.00404580
fldz
mov edi, dword [ebx + 0x2cd8]
push 0xffffffffffffffff
sub esp, 8
fst dword [esp + 4]
lea edx, [esp + 0x1ec]
fstp dword [esp]
push edx
lea eax, [esp + 0x60]
push eax
lea esi, [ebx + 0x2cd8]
lea eax, [esp + 0x1ac]
lea edx, [esp + 0x16c]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0xe0]
call fcn.004044d0
mov edx, dword [edi + 0x5c]
push eax
mov ecx, esi
call edx
fldz
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x44]
lea eax, [esp + 0x1a4]
fstp dword [esp + 4]
fld dword [esp + 0x28]
fmul qword [0x6a2228]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp]
push eax
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.00404580
fldz
mov edi, dword [ebx + 0x2d6c]
push 0xffffffffffffffff
sub esp, 8
fst dword [esp + 4]
lea ecx, [esp + 0x1ec]
fstp dword [esp]
push ecx
lea edx, [esp + 0x60]
push edx
lea esi, [ebx + 0x2d6c]
lea eax, [esp + 0x1ac]
lea edx, [esp + 0x16c]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0xe0]
call fcn.004044d0
push eax
mov eax, dword [edi + 0x5c]
mov ecx, esi
call eax
fld qword [0x6a2230]
fldz
sub esp, 0xc
cmp dword [ebx + 0x30c4], 4
fstp dword [esp + 8]
fld dword [esp + 0x28]
lea ecx, [esp + 0x1a4]
fld st(0)
fmulp st(2)
fxch st(1)
jne 0x407f45
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp + 4]
fmul qword [0x6a2220]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp]
push ecx
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.00404580
fld1
sub esp, 0xc
fstp dword [esp + 8]
fld dword [0x6a1a30]
lea edx, [esp + 0x1a4]
fst dword [esp + 4]
fstp dword [esp]
push edx
call fcn.00474095
add esp, 0x10
lea ecx, [esp + 0x228]
call fcn.00404580
fldz
mov edi, dword [ebx + 0x2bbc]
push 0xffffffffffffffff
sub esp, 8
fst dword [esp + 4]
lea eax, [esp + 0x1ec]
fstp dword [esp]
push eax
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x23c]
push edx
lea esi, [ebx + 0x2bbc]
lea eax, [esp + 0x1b0]
lea edx, [esp + 0x170]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x23c]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0xe0]
call fcn.004044d0
push eax
mov eax, dword [edi + 0x5c]
mov ecx, esi
call eax
jmp 0x407fc4
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp + 4]
fmul qword [0x6a2220]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp]
push ecx
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.00404580
fldz
mov edi, dword [ebx + 0x2bbc]
push 0xffffffffffffffff
sub esp, 8
fst dword [esp + 4]
lea edx, [esp + 0x1ec]
fstp dword [esp]
push edx
lea eax, [esp + 0x60]
push eax
lea esi, [ebx + 0x2bbc]
lea eax, [esp + 0x1ac]
lea edx, [esp + 0x16c]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x238]
call fcn.004044d0
mov edx, dword [edi + 0x5c]
push eax
mov ecx, esi
call edx
push 0xffffffffffffffff
lea eax, [esp + 0x15c]
push eax
lea ecx, [ebx + 0x25bc]
push ecx
call fcn.00443990
lea edx, [ebx + 0x30a0]
lea eax, [ebx + 0x2184]
lea esi, [ebx + 0x25f4]
xor edi, edi
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x4c], esi
cmp byte [ebx + edi + 0x3070], 0
je 0x4080cb
fldz
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
sub esp, 0xc
mov dword [esp + 0x44], edx
lea ecx, [edx + edx*2]
fstp dword [esp + 8]
mov edx, edi
fild dword [esp + 0x44]
sub edx, ecx
lea eax, [esp + 0x1ec]
fmul qword [0x6a1ae8]
fadd qword [0x6a2218]
fld dword [esp + 0x28]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
mov dword [esp + 0x20], edx
fstp dword [esp + 4]
fild dword [esp + 0x20]
fmul qword [0x6a1f18]
fadd qword [0x6a2210]
fmulp st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp]
push eax
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.00404580
fldz
mov ebp, dword [esi]
push 0xffffffffffffffff
sub esp, 8
fst dword [esp + 4]
lea ecx, [esp + 0x314]
fstp dword [esp]
push ecx
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x1f4]
lea edx, [esp + 0x16c]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x1a8]
call fcn.004044d0
push eax
mov eax, dword [ebp + 0x5c]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x30]
lea eax, [esp + 0x1d8]
push eax
call edx
cmp dword [eax + 4], 0xffffd8f1
je 0x4082be
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
mov dword [esp + 0x38], edx
lea eax, [edx + edx*2]
mov ecx, edi
fild dword [esp + 0x38]
sub ecx, eax
mov dword [esp + 0x14], ecx
sub esp, 0xc
fmul qword [0x6a1ae8]
lea edx, [esp + 0x1ec]
fadd qword [0x6a21c0]
fld dword [esp + 0x28]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x40]
fild dword [esp + 0x20]
fmul qword [0x6a1f18]
fst qword [esp + 0x4c]
fldz
fstp dword [esp + 8]
fld dword [esp + 0x40]
fstp dword [esp + 4]
fadd qword [0x6a2208]
fmulp st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp]
push edx
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.00404580
fldz
mov ebp, dword [ebx + 0x2e00]
push 0xffffffffffffffff
sub esp, 8
fst dword [esp + 4]
lea eax, [esp + 0x5c]
fstp dword [esp]
push eax
lea esi, [ebx + 0x2e00]
lea eax, [esp + 0x1f0]
lea edx, [esp + 0x168]
call fcn.004044d0
mov edx, dword [ebp + 0x5c]
push eax
mov ecx, esi
call edx
fldz
mov esi, dword [ebx + 0x30c8]
sub esp, 0xc
fstp dword [esp + 8]
lea ecx, [esp + 0x1ec]
fld dword [esp + 0x40]
lea eax, [edi + esi*8]
fstp dword [esp + 4]
lea esi, [esi + eax + 1]
fld qword [esp + 0x4c]
fadd qword [0x6a2200]
fmul dword [esp + 0x28]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp]
push ecx
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.00404580
mov eax, 0x66666667
imul esi
sar edx, 2
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
xor eax, eax
push eax
push ebp
push 0xffffffffffffffff
fldz
sub esp, 8
fst dword [esp + 4]
lea edx, [esp + 0x64]
fstp dword [esp]
lea eax, [esp + 0x1f4]
push edx
lea edx, [esp + 0x170]
call fcn.004044d0
push eax
lea eax, [ebx + 0x2fcc]
call fcn.0046d870
fldz
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x40]
lea eax, [esp + 0x1ec]
fstp dword [esp + 4]
fld qword [esp + 0x4c]
fadd qword [0x6a1dd8]
fmul dword [esp + 0x28]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp]
push eax
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.00404580
fldz
lea ecx, [ebp + ebp*4]
xor eax, eax
push eax
add ecx, ecx
sub esi, ecx
push esi
push 0xffffffffffffffff
sub esp, 8
fst dword [esp + 4]
lea edx, [esp + 0x64]
fstp dword [esp]
push edx
lea eax, [esp + 0x1f8]
lea edx, [esp + 0x170]
call fcn.004044d0
push eax
lea eax, [ebx + 0x2fcc]
call fcn.0046d870
cmp byte [ebx + edi + 0x3070], 0
je 0x4085cc
mov eax, dword [esp + 0x30]
mov ebp, dword [eax - 0x24]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
mov dword [esp + 0x38], edx
lea ecx, [edx + edx*2]
mov edx, edi
fild dword [esp + 0x38]
sub edx, ecx
mov dword [esp + 0x14], edx
sub esp, 0xc
fmul qword [0x6a1ae8]
lea eax, [esp + 0x1ec]
fst qword [esp + 0x11c]
fadd qword [0x6a1c28]
fld dword [esp + 0x28]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x40]
fild dword [esp + 0x20]
fmul qword [0x6a1f18]
fst qword [esp + 0x4c]
fldz
fstp dword [esp + 8]
fld dword [esp + 0x40]
fstp dword [esp + 4]
fadd qword [0x6a1d00]
fmulp st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp]
push eax
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.00404580
fldz
mov eax, 0x66666667
imul ebp
sar edx, 2
mov esi, edx
xor eax, eax
push eax
shr esi, 0x1f
add esi, edx
push esi
push 0xffffffffffffffff
sub esp, 8
lea ecx, [esp + 0x64]
lea eax, [esp + 0x1f4]
fst dword [esp + 4]
lea edx, [esp + 0x16c]
fstp dword [esp]
push ecx
call fcn.004044d0
push eax
lea eax, [ebx + 0x2fcc]
call fcn.0046d870
fldz
sub esp, 0xc
fstp dword [esp + 8]
lea edx, [esp + 0x1ec]
fld dword [esp + 0x40]
fstp dword [esp + 4]
fld qword [esp + 0x4c]
fadd qword [0x6a2398]
fmul dword [esp + 0x28]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp]
push edx
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.00404580
lea eax, [esi + esi*4]
add eax, eax
fldz
sub ebp, eax
xor eax, eax
push eax
push ebp
push 0xffffffffffffffff
sub esp, 8
fst dword [esp + 4]
lea ecx, [esp + 0x64]
fstp dword [esp]
push ecx
lea eax, [esp + 0x1f8]
lea edx, [esp + 0x170]
call fcn.004044d0
push eax
lea eax, [ebx + 0x2fcc]
call fcn.0046d870
fldz
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x40]
lea edx, [esp + 0x1ec]
fstp dword [esp + 4]
fld qword [esp + 0x4c]
fadd qword [0x6a2390]
fmul dword [esp + 0x28]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp]
push edx
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.00404580
fldz
mov ebp, dword [ebx + 0x2fdc]
push 0xffffffffffffffff
sub esp, 8
fst dword [esp + 4]
lea eax, [esp + 0x5c]
fstp dword [esp]
push eax
lea esi, [ebx + 0x2fdc]
lea eax, [esp + 0x1f0]
lea edx, [esp + 0x168]
call fcn.004044d0
mov edx, dword [ebp + 0x5c]
push eax
mov ecx, esi
call edx
fld qword [esp + 0x110]
fadd qword [0x6a1e40]
sub esp, 0xc
fld dword [esp + 0x28]
lea eax, [esp + 0x1ec]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x54]
fldz
fstp dword [esp + 8]
fld dword [esp + 0x54]
fstp dword [esp + 4]
fld qword [esp + 0x4c]
fadd qword [0x6a1a00]
fmulp st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp]
push eax
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.00404580
mov ebp, dword [esp + 0x18]
mov eax, 0x66666667
imul ebp
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
fldz
xor eax, eax
push eax
push esi
push 0xffffffffffffffff
sub esp, 8
fst dword [esp + 4]
lea ecx, [esp + 0x64]
fstp dword [esp]
push ecx
lea eax, [esp + 0x1f8]
lea edx, [esp + 0x170]
call fcn.004044d0
push eax
lea eax, [ebx + 0x2f28]
call fcn.0046d870
fldz
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x54]
lea edx, [esp + 0x1ec]
fstp dword [esp + 4]
fld qword [esp + 0x4c]
fadd qword [0x6a1d30]
fmul dword [esp + 0x28]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp]
push edx
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.00404580
fldz
lea eax, [esi + esi*4]
add eax, eax
sub ebp, eax
xor eax, eax
push eax
push ebp
push 0xffffffffffffffff
sub esp, 8
fst dword [esp + 4]
lea ecx, [esp + 0x64]
fstp dword [esp]
push ecx
lea eax, [esp + 0x1f8]
lea edx, [esp + 0x170]
call fcn.004044d0
push eax
lea eax, [ebx + 0x2f28]
call fcn.0046d870
mov esi, dword [esp + 0x4c]
add dword [esp + 0x30], 4
add dword [esp + 0x2c], 0x78
inc edi
add esi, 0x94
mov dword [esp + 0x4c], esi
cmp edi, 9
jb 0x407ffa
jmp 0x40974a
mov edx, dword [ebx + 0x2c78]
mov eax, dword [edx + 4]
lea ecx, [ebx + 0x2c78]
call eax
mov edx, dword [ebx + 0x2ca0]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
mov eax, dword [edx + 4]
lea ecx, [ebx + 0x2ca0]
fstp dword [esp + 0x14]
call eax
mov edx, dword [ebx + 0x2cb8]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
mov eax, dword [edx + 4]
lea ecx, [ebx + 0x2cb8]
fstp dword [esp + 0x4c]
call eax
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
sub esp, 0xc
lea ecx, [esp + 0x9c]
fstp dword [esp + 0x3c]
fld dword [esp + 0x20]
fld dword [esp + 0x28]
fld st(0)
fmulp st(2)
fxch st(1)
fst qword [esp + 0x2c]
fadd st(0), st(0)
fstp dword [esp + 0x54]
fldz
fstp dword [esp + 8]
fld qword [0x6a2240]
fmul st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp + 4]
fmul qword [0x6a2238]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp]
push ecx
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.00404580
cmp dword [ebx + 0x3180], 0
jne 0x408700
fldz
sub esp, 0xc
fst dword [esp + 8]
lea edx, [esp + 0x9c]
fstp dword [esp + 4]
fld dword [esp + 0x54]
fstp dword [esp]
push edx
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0xd0]
call fcn.00404580
mov eax, dword [ebx + 0x2c50]
mov edx, dword [eax + 4]
lea ecx, [ebx + 0x2c50]
call edx
shl eax, 0x18
or eax, 0xffffff
jmp 0x40878a
fld1
lea eax, [esp + 0x90]
fst dword [esp + 0x90]
lea ecx, [esp + 0xd0]
fldz
fst dword [esp + 0x94]
fst dword [esp + 0x98]
fst dword [esp + 0x9c]
fst dword [esp + 0xa0]
fst dword [esp + 0xa8]
fst dword [esp + 0xac]
fst dword [esp + 0xb0]
fst dword [esp + 0xb4]
fst dword [esp + 0xbc]
fst dword [esp + 0xc0]
fst dword [esp + 0xc4]
fstp dword [esp + 0xc8]
fst dword [esp + 0xa4]
fst dword [esp + 0xb8]
fstp dword [esp + 0xcc]
call fcn.00404580
or eax, 0xffffffff
fldz
mov edi, dword [ebx + 0x1684]
push eax
sub esp, 8
fst dword [esp + 4]
lea eax, [esp + 0xdc]
fstp dword [esp]
push eax
lea ecx, [esp + 0x60]
lea esi, [ebx + 0x1684]
push ecx
lea eax, [esp + 0xa4]
lea edx, [esp + 0x16c]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x278]
call fcn.004044d0
mov edx, dword [edi + 0x5c]
push eax
mov ecx, esi
call edx
fld dword [esp + 0x1c]
fld qword [0x6a2230]
sub esp, 0xc
fmul st(1)
lea eax, [esp + 0x274]
fstp dword [esp + 0x44]
fmul qword [0x6a2220]
fstp dword [esp + 0x38]
fldz
fstp dword [esp + 8]
fld dword [esp + 0x44]
fstp dword [esp + 4]
fld dword [esp + 0x38]
fstp dword [esp]
push eax
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.00404580
cmp dword [ebx + 0x3180], 0
jne 0x408886
fldz
sub esp, 0xc
fst dword [esp + 8]
lea ecx, [esp + 0x274]
fstp dword [esp + 4]
fld qword [esp + 0x2c]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp]
push ecx
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0xd0]
call fcn.00404580
mov edx, dword [ebx + 0x2c50]
mov eax, dword [edx + 4]
lea ecx, [ebx + 0x2c50]
call eax
mov esi, eax
shl esi, 0x18
or esi, 0xffffff
jmp 0x408910
fld1
lea eax, [esp + 0x90]
fst dword [esp + 0x90]
lea ecx, [esp + 0xd0]
fldz
fst dword [esp + 0x94]
fst dword [esp + 0x98]
fst dword [esp + 0x9c]
fst dword [esp + 0xa0]
fst dword [esp + 0xa8]
fst dword [esp + 0xac]
fst dword [esp + 0xb0]
fst dword [esp + 0xb4]
fst dword [esp + 0xbc]
fst dword [esp + 0xc0]
fst dword [esp + 0xc4]
fstp dword [esp + 0xc8]
fst dword [esp + 0xa4]
fst dword [esp + 0xb8]
fstp dword [esp + 0xcc]
call fcn.00404580
or esi, 0xffffffff
cmp dword [ebx + 0x30c4], 3
jne 0x408a65
fldz
sub esp, 0xc
fstp dword [esp + 8]
lea ecx, [esp + 0x274]
fld dword [esp + 0x44]
fstp dword [esp + 4]
fld dword [esp + 0x28]
fmul qword [0x6a1758]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp]
push ecx
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.00404580
fldz
mov ebp, dword [ebx + 0x2cd8]
push esi
sub esp, 8
fst dword [esp + 4]
lea edx, [esp + 0x1ec]
fstp dword [esp]
push edx
lea eax, [esp + 0xe0]
push eax
lea ecx, [esp + 0x64]
lea edi, [ebx + 0x2cd8]
push ecx
lea eax, [esp + 0x280]
lea edx, [esp + 0x170]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0xa4]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x2b8]
call fcn.004044d0
mov edx, dword [ebp + 0x5c]
push eax
mov ecx, edi
call edx
fldz
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x44]
lea eax, [esp + 0x2b4]
fstp dword [esp + 4]
fld dword [esp + 0x28]
fmul qword [0x6a2228]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp]
push eax
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.00404580
fldz
mov ebp, dword [ebx + 0x2d6c]
push esi
sub esp, 8
fst dword [esp + 4]
lea ecx, [esp + 0x1ec]
fstp dword [esp]
push ecx
lea edx, [esp + 0xe0]
push edx
lea eax, [esp + 0x64]
push eax
lea edi, [ebx + 0x2d6c]
lea eax, [esp + 0x2c0]
lea edx, [esp + 0x170]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x27c]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x128]
call fcn.004044d0
push eax
mov edx, dword [ebp + 0x5c]
mov ecx, edi
call edx
fldz
sub esp, 0xc
cmp dword [ebx + 0x30c4], 4
fstp dword [esp + 8]
fld dword [esp + 0x44]
fstp dword [esp + 4]
fld dword [esp + 0x38]
fstp dword [esp]
jne 0x408b52
lea eax, [esp + 0x124]
push eax
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.00404580
fld1
sub esp, 0xc
fstp dword [esp + 8]
fld dword [0x6a1a30]
lea ecx, [esp + 0x124]
fst dword [esp + 4]
fstp dword [esp]
push ecx
call fcn.00474095
add esp, 0x10
lea ecx, [esp + 0x228]
call fcn.00404580
fldz
mov ebp, dword [ebx + 0x2bbc]
push esi
sub esp, 8
fst dword [esp + 4]
lea edx, [esp + 0x1ec]
fstp dword [esp]
push edx
lea eax, [esp + 0xe0]
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x240]
push edx
lea edi, [ebx + 0x2bbc]
lea eax, [esp + 0x134]
lea edx, [esp + 0x174]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x2c0]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x27c]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0xa0]
call fcn.004044d0
push eax
mov eax, dword [ebp + 0x5c]
mov ecx, edi
call eax
jmp 0x408bd0
lea ecx, [esp + 0x124]
push ecx
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.00404580
fldz
mov ebp, dword [ebx + 0x2bbc]
push esi
sub esp, 8
fst dword [esp + 4]
lea edx, [esp + 0x1ec]
fstp dword [esp]
push edx
lea eax, [esp + 0xe0]
push eax
lea ecx, [esp + 0x64]
lea edi, [ebx + 0x2bbc]
push ecx
lea eax, [esp + 0x130]
lea edx, [esp + 0x170]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x2bc]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x278]
call fcn.004044d0
mov edx, dword [ebp + 0x5c]
push eax
mov ecx, edi
call edx
fld dword [esp + 0x30]
call fcn.00631650
and eax, 0x1ff
fild dword [eax*4 + 0x6f03e0]
mov eax, dword [ebx + 0x3180]
fld qword [0x6a15d8]
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x30]
cmp eax, 1
jne 0x408cb2
fldz
push ecx
fstp dword [esp]
fld dword [esp + 0x50]
call fcn.00631650
and eax, 0x1ff
fimul dword [eax*4 + 0x6f03e0]
sub esp, 8
lea eax, [esp + 0x124]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fld dword [esp + 0x28]
fld qword [0x6a1520]
fmul st(1)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x24]
fmul dword [esp + 0x24]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp + 4]
fld qword [esp + 0x2c]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp]
push eax
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0xd0]
call fcn.00404580
fld dword [esp + 0x30]
mov ecx, dword [ebx + 0x2cd4]
mov edx, dword [ebx + 0x2cd0]
push ecx
push edx
sub esp, 0xc
fstp dword [esp + 8]
lea eax, [esp + 0x12c]
fldz
fst dword [esp + 4]
fstp dword [esp]
push eax
call fcn.004741ff
add esp, 0x18
lea ecx, [esp + 0x198]
jmp 0x408d1a
test eax, eax
fstp st(0)
lea eax, [esp + 0x118]
jne 0x408cf6
call fcn.00473ffa
lea ecx, [esp + 0x198]
call fcn.00404580
fldz
sub esp, 0xc
fst dword [esp + 8]
fstp dword [esp + 4]
lea ecx, [esp + 0x124]
fld dword [esp + 0x54]
fstp dword [esp]
push ecx
call fcn.0047402e
add esp, 0x10
jmp 0x408d13
call fcn.00473ffa
lea ecx, [esp + 0x198]
call fcn.00404580
lea eax, [esp + 0x118]
call fcn.00473ffa
lea ecx, [esp + 0xd0]
call fcn.00404580
mov edx, dword [ebx + 0x2c50]
mov eax, dword [edx + 4]
lea ecx, [ebx + 0x2c50]
call eax
mov edi, eax
shl edi, 0x18
or edi, 0xffffff
push edi
lea ecx, [esp + 0xd4]
push ecx
lea edx, [esp + 0x1a0]
push edx
lea eax, [esp + 0x124]
lea edx, [esp + 0x164]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x2b0]
call fcn.004044d0
push eax
lea eax, [ebx + 0x25bc]
push eax
call fcn.00443990
xor esi, esi
lea ecx, [ebx + 0x30a0]
lea edx, [ebx + 0x2184]
lea ebp, [ebx + 0x25f4]
mov dword [esp + 0x14], esi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ebp
mov edi, edi
cmp byte [esi + ebx + 0x3070], 0
je 0x408ed2
mov eax, dword [ebp]
mov edx, dword [eax + 0x1c]
lea ecx, [esp + 0x2e8]
push ecx
mov ecx, ebp
call edx
fld dword [esp + 0x30]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
sub esp, 0xc
fstp dword [esp + 8]
lea eax, [esp + 0x12c]
fldz
fst dword [esp + 4]
fstp dword [esp]
push eax
call fcn.004741ff
add esp, 0x18
lea ecx, [esp + 0x198]
call fcn.00404580
fldz
mov eax, 0xaaaaaaab
mul esi
shr edx, 1
sub esp, 0xc
mov dword [esp + 0x44], edx
lea ecx, [edx + edx*2]
fstp dword [esp + 8]
mov edx, esi
fild dword [esp + 0x44]
sub edx, ecx
lea eax, [esp + 0x124]
fmul qword [0x6a1ae8]
fadd qword [0x6a2218]
fld dword [esp + 0x28]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
mov dword [esp + 0x24], edx
fstp dword [esp + 4]
fild dword [esp + 0x24]
fmul qword [0x6a1f18]
fadd qword [0x6a2210]
fmulp st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp]
push eax
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.00404580
fldz
mov ebp, dword [ebp]
push edi
sub esp, 8
fst dword [esp + 4]
lea ecx, [esp + 0x314]
fstp dword [esp]
push ecx
lea edx, [esp + 0xe0]
push edx
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x130]
lea edx, [esp + 0x170]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x2bc]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x278]
call fcn.004044d0
mov ecx, dword [esp + 0x58]
mov edx, dword [ebp + 0x5c]
push eax
call edx
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
lea edx, [esp + 0x300]
push edx
call eax
cmp dword [eax + 4], 0xffffd8f1
je 0x409211
mov edx, dword [ebx + 0x2e00]
mov edx, dword [edx + 0x1c]
lea ebp, [ebx + 0x2e00]
lea eax, [esp + 0x2f0]
push eax
mov ecx, ebp
call edx
fld dword [esp + 0x30]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
sub esp, 0xc
fstp dword [esp + 8]
lea eax, [esp + 0x12c]
fldz
fst dword [esp + 4]
fstp dword [esp]
push eax
call fcn.004741ff
add esp, 0x18
lea ecx, [esp + 0x198]
call fcn.00404580
mov eax, 0xaaaaaaab
mul esi
shr edx, 1
mov dword [esp + 0x38], edx
lea ecx, [edx + edx*2]
mov edx, esi
fild dword [esp + 0x38]
sub edx, ecx
mov dword [esp + 0x18], edx
sub esp, 0xc
fmul qword [0x6a1ae8]
lea eax, [esp + 0x124]
fadd qword [0x6a21c0]
fld dword [esp + 0x28]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x38]
fild dword [esp + 0x24]
fmul qword [0x6a1f18]
fst qword [esp + 0x2c]
fldz
fstp dword [esp + 8]
fld dword [esp + 0x38]
fstp dword [esp + 4]
fadd qword [0x6a2208]
fmulp st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp]
push eax
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.00404580
fldz
mov ebp, dword [ebp]
push edi
sub esp, 8
fst dword [esp + 4]
lea ecx, [esp + 0xdc]
fstp dword [esp]
push ecx
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x1ac]
push eax
lea eax, [esp + 0x130]
lea edx, [esp + 0x170]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x2bc]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x278]
call fcn.004044d0
push eax
lea ecx, [ebx + 0x2e00]
mov edx, dword [ebp + 0x5c]
call edx
cmp dword [ebx + 0x2fd0], 0
mov eax, dword [ebx + 0x30c8]
lea ecx, [esi + eax*8]
lea ebp, [eax + ecx + 1]
mov dword [esp + 0x38], ebp
jne 0x409045
xor ecx, ecx
xor eax, eax
jmp 0x409078
mov ecx, dword [ebx + 0x2fd0]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
lea eax, [esp + 0x220]
push eax
call edx
mov eax, dword [esp + 0x220]
cdq
idiv dword [ebx + 0x2fd4]
mov ecx, eax
mov eax, dword [esp + 0x224]
cdq
idiv dword [ebx + 0x2fd8]
fld dword [esp + 0x30]
push eax
push ecx
sub esp, 0xc
fstp dword [esp + 8]
lea eax, [esp + 0x12c]
fldz
fst dword [esp + 4]
fstp dword [esp]
push eax
call fcn.004741ff
add esp, 0x18
lea ecx, [esp + 0x198]
call fcn.00404580
fldz
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x38]
lea ecx, [esp + 0x124]
fstp dword [esp + 4]
fld qword [esp + 0x2c]
fadd qword [0x6a2200]
fmul dword [esp + 0x28]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp]
push ecx
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.00404580
fldz
mov eax, 0x66666667
imul ebp
sar edx, 2
mov ebp, edx
xor eax, eax
push eax
shr ebp, 0x1f
add ebp, edx
push ebp
push edi
sub esp, 8
lea edx, [esp + 0xe4]
lea eax, [esp + 0x64]
fst dword [esp + 4]
lea ecx, [esp + 0x1ac]
fstp dword [esp]
push edx
push eax
push ecx
lea eax, [esp + 0x138]
lea edx, [esp + 0x178]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x2c4]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x280]
call fcn.004044d0
push eax
lea eax, [ebx + 0x2fcc]
call fcn.0046d870
fldz
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x38]
lea edx, [esp + 0x124]
fstp dword [esp + 4]
fld qword [esp + 0x2c]
fadd qword [0x6a1dd8]
fmul dword [esp + 0x28]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp]
push edx
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.00404580
lea eax, [ebp + ebp*4]
fldz
add eax, eax
mov ecx, eax
mov eax, dword [esp + 0x38]
sub eax, ecx
xor ecx, ecx
push ecx
push eax
push edi
sub esp, 8
fst dword [esp + 4]
lea edx, [esp + 0xe4]
fstp dword [esp]
push edx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x1b4]
push ecx
lea eax, [esp + 0x138]
lea edx, [esp + 0x178]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x2c4]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x280]
call fcn.004044d0
push eax
lea eax, [ebx + 0x2fcc]
call fcn.0046d870
cmp byte [esi + ebx + 0x3070], 0
je 0x409724
cmp dword [ebx + 0x2fd0], 0
jne 0x40922e
xor ecx, ecx
xor eax, eax
jmp 0x409261
mov ecx, dword [ebx + 0x2fd0]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
lea eax, [esp + 0x1d8]
push eax
call edx
mov eax, dword [esp + 0x1d8]
cdq
idiv dword [ebx + 0x2fd4]
mov ecx, eax
mov eax, dword [esp + 0x1dc]
cdq
idiv dword [ebx + 0x2fd8]
fld dword [esp + 0x30]
push eax
push ecx
sub esp, 0xc
fstp dword [esp + 8]
lea eax, [esp + 0x12c]
fldz
fst dword [esp + 4]
fstp dword [esp]
push eax
call fcn.004741ff
add esp, 0x18
lea ecx, [esp + 0x198]
call fcn.00404580
mov ecx, dword [esp + 0x34]
mov edx, ecx
mov eax, dword [edx]
mov ebp, dword [ecx - 0x24]
mov dword [esp + 0x40], eax
mov eax, 0xaaaaaaab
mul esi
shr edx, 1
mov dword [esp + 0x38], edx
lea ecx, [edx + edx*2]
sub esi, ecx
fild dword [esp + 0x38]
mov dword [esp + 0x18], esi
sub esp, 0xc
lea edx, [esp + 0x124]
fmul qword [0x6a1ae8]
fst qword [esp + 0x44]
fadd qword [0x6a1c28]
fld dword [esp + 0x28]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x38]
fild dword [esp + 0x24]
fmul qword [0x6a1f18]
fst qword [esp + 0x2c]
fldz
fstp dword [esp + 8]
fld dword [esp + 0x38]
fstp dword [esp + 4]
fadd qword [0x6a1d00]
fmulp st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp]
push edx
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.00404580
fldz
mov eax, 0x66666667
imul ebp
sar edx, 2
mov esi, edx
xor eax, eax
push eax
shr esi, 0x1f
add esi, edx
push esi
push edi
sub esp, 8
lea eax, [esp + 0xe4]
lea ecx, [esp + 0x64]
fst dword [esp + 4]
lea edx, [esp + 0x1ac]
fstp dword [esp]
push eax
push ecx
push edx
lea eax, [esp + 0x138]
lea edx, [esp + 0x178]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x2c4]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x280]
call fcn.004044d0
push eax
lea eax, [ebx + 0x2fcc]
call fcn.0046d870
fldz
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x38]
lea eax, [esp + 0x124]
fstp dword [esp + 4]
fld qword [esp + 0x2c]
fadd qword [0x6a2398]
fmul dword [esp + 0x28]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp]
push eax
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.00404580
fldz
xor eax, eax
push eax
lea ecx, [esi + esi*4]
add ecx, ecx
sub ebp, ecx
push ebp
push edi
sub esp, 8
fst dword [esp + 4]
lea edx, [esp + 0xe4]
fstp dword [esp]
push edx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x1b4]
push ecx
lea eax, [esp + 0x138]
lea edx, [esp + 0x178]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x2c4]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x280]
call fcn.004044d0
push eax
lea eax, [ebx + 0x2fcc]
call fcn.0046d870
mov edx, dword [ebx + 0x2fdc]
mov edx, dword [edx + 0x1c]
lea esi, [ebx + 0x2fdc]
lea eax, [esp + 0x2f8]
push eax
mov ecx, esi
call edx
fld dword [esp + 0x30]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
sub esp, 0xc
fstp dword [esp + 8]
lea eax, [esp + 0x12c]
fldz
fst dword [esp + 4]
fstp dword [esp]
push eax
call fcn.004741ff
add esp, 0x18
lea ecx, [esp + 0x198]
call fcn.00404580
fldz
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x38]
fstp dword [esp + 4]
fld qword [esp + 0x2c]
fadd qword [0x6a2390]
fmul dword [esp + 0x28]
lea ecx, [esp + 0x124]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp]
push ecx
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.00404580
fldz
mov ebp, dword [esi]
push edi
sub esp, 8
fst dword [esp + 4]
lea edx, [esp + 0xdc]
fstp dword [esp]
push edx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x1ac]
push ecx
lea eax, [esp + 0x130]
lea edx, [esp + 0x170]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x2bc]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x278]
call fcn.004044d0
mov edx, dword [ebp + 0x5c]
push eax
mov ecx, esi
call edx
cmp dword [ebx + 0x2fd0], 0
jne 0x409541
xor ecx, ecx
xor eax, eax
jmp 0x409574
mov ecx, dword [ebx + 0x2fd0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
lea edx, [esp + 0x110]
push edx
call eax
mov eax, dword [esp + 0x110]
cdq
idiv dword [ebx + 0x2fd4]
mov ecx, eax
mov eax, dword [esp + 0x114]
cdq
idiv dword [ebx + 0x2fd8]
fld dword [esp + 0x30]
push eax
push ecx
sub esp, 0xc
fstp dword [esp + 8]
lea ecx, [esp + 0x12c]
fldz
fst dword [esp + 4]
fstp dword [esp]
push ecx
call fcn.004741ff
add esp, 0x18
lea ecx, [esp + 0x198]
call fcn.00404580
fld qword [esp + 0x38]
fadd qword [0x6a1e40]
sub esp, 0xc
fld dword [esp + 0x28]
lea edx, [esp + 0x124]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x38]
fldz
fstp dword [esp + 8]
fld dword [esp + 0x38]
fstp dword [esp + 4]
fld qword [esp + 0x2c]
fadd qword [0x6a1a00]
fmulp st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp]
push edx
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.00404580
fldz
mov ebp, dword [esp + 0x40]
mov eax, 0x66666667
imul ebp
sar edx, 2
mov esi, edx
xor eax, eax
push eax
shr esi, 0x1f
add esi, edx
push esi
push edi
sub esp, 8
lea eax, [esp + 0xe4]
lea ecx, [esp + 0x64]
fst dword [esp + 4]
lea edx, [esp + 0x1ac]
fstp dword [esp]
push eax
push ecx
push edx
lea eax, [esp + 0x138]
lea edx, [esp + 0x178]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x2c4]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x280]
call fcn.004044d0
push eax
lea eax, [ebx + 0x2f28]
call fcn.0046d870
fldz
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x38]
fstp dword [esp + 4]
fld qword [esp + 0x2c]
fadd qword [0x6a1d30]
fmul dword [esp + 0x28]
fstp dword [esp + 0x4c]
fld dword [esp + 0x4c]
lea eax, [esp + 0x124]
fstp dword [esp]
push eax
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.00404580
fldz
xor eax, eax
push eax
lea ecx, [esi + esi*4]
add ecx, ecx
sub ebp, ecx
push ebp
push edi
sub esp, 8
fst dword [esp + 4]
lea edx, [esp + 0xe4]
fstp dword [esp]
push edx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x1b4]
push ecx
lea eax, [esp + 0x138]
lea edx, [esp + 0x178]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x2c4]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x280]
call fcn.004044d0
push eax
lea eax, [ebx + 0x2f28]
call fcn.0046d870
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x4c]
add dword [esp + 0x34], 4
add dword [esp + 0x48], 0x78
inc esi
add ebp, 0x94
mov dword [esp + 0x14], esi
mov dword [esp + 0x4c], ebp
cmp esi, 9
jb 0x408da0
push 0xffffffffffffffff
lea edx, [esp + 0x15c]
push edx
lea eax, [ebx + 0x1b3c]
push eax
call fcn.00443990
push 0xffffffffffffffff
lea ecx, [esp + 0x15c]
push ecx
lea edx, [ebx + 0x20b8]
push edx
call fcn.00443990
lea eax, [esp + 0x158]
push eax
lea eax, [ebx + 0x14]
call fcn.0044a880
mov eax, dword [ebx + 8]
add eax, 0xdf478
mov eax, dword [eax + 8]
test eax, eax
je 0x40979a
mov eax, dword [eax + 0xc]
jmp 0x40979c
xor eax, eax
push 2
push 2
xor edi, edi
mov ecx, eax
call fcn.00470a87
mov ecx, dword [ebx + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebx + 8]
cmp dword [ecx + 0x20e8], 1
jne 0x4098b3
fldz
sub esp, 0xc
fst dword [esp + 8]
lea edx, [esp + 0x124]
fld dword [esp + 0x28]
fmul qword [0x6a1588]
fstp dword [esp + 0x4c]
fld dword [esp + 0x4c]
fstp dword [esp + 4]
fstp dword [esp]
push edx
call fcn.0047402e
fld dword [eax]
fstp dword [esp + 0x60]
mov edi, dword [ebx + 0x17bc]
fld dword [eax + 4]
add esp, 0x10
fstp dword [esp + 0x54]
push 0xffffffffffffffff
fld dword [eax + 8]
sub esp, 8
fstp dword [esp + 0x64]
lea esi, [ebx + 0x17bc]
fld dword [eax + 0xc]
lea edx, [esp + 0x164]
fstp dword [esp + 0x68]
fld dword [eax + 0x10]
fstp dword [esp + 0x6c]
fld dword [eax + 0x14]
fstp dword [esp + 0x70]
fld dword [eax + 0x18]
fstp dword [esp + 0x74]
fld dword [eax + 0x1c]
fstp dword [esp + 0x78]
fld dword [eax + 0x20]
fstp dword [esp + 0x7c]
fld dword [eax + 0x24]
fstp dword [esp + 0x80]
fld dword [eax + 0x28]
fstp dword [esp + 0x84]
fld dword [eax + 0x2c]
fstp dword [esp + 0x88]
fld dword [eax + 0x30]
fstp dword [esp + 0x8c]
fld dword [eax + 0x34]
fstp dword [esp + 0x90]
fld dword [eax + 0x38]
fstp dword [esp + 0x94]
fld dword [eax + 0x3c]
lea eax, [esp + 0x5c]
fstp dword [esp + 0x98]
fldz
fst dword [esp + 4]
fstp dword [esp]
push eax
lea eax, [esp + 0x128]
call fcn.004044d0
mov edx, dword [edi + 0x5c]
push eax
mov ecx, esi
call edx
mov ebx, dword [ebx + 8]
add ebx, 0xdf478
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4098d9
mov ecx, dword [ebx + 0xc]
push 1
push 1
xor edi, edi
call fcn.00470a87
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 1
xor ecx, ecx
push 1
xor edi, edi
call fcn.00470a87
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret