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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8fc
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
push ebx
push esi
push edi
mov esi, ecx
lea ecx, [eax*4]
push ecx
push edx
xor ebx, ebx
push eax
mov eax, dword [ebp + 0x1c]
push eax
lea ecx, [esp + 0xe8]
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xec], ebx
mov dword [esp + 0xf0], ebx
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xf8], ebx
mov dword [esp + 0xfc], ebx
call fcn.00403c20
mov eax, dword [esp + 0xe0]
lea ecx, [esp + 0xd8]
mov dword [esp + 0xc4], ecx
mov ecx, dword [esp + 0xe4]
dec eax
lea edx, [esp + 0xc4]
dec ecx
mov dword [esp + 0x104], edx
mov dword [esp + 0x114], ecx
lea edx, [esp + 0x104]
lea ecx, [esp + 0x470]
mov dword [esp + 0x108], ebx
mov dword [esp + 0x10c], ebx
mov dword [esp + 0x110], eax
mov dword [esp + 0x18], edx
call fcn.00405440
mov al, byte [esi + 0xd7]
test al, al
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], 0x7ffffff0
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
je 0x408667
mov eax, dword [esi + 0xd4]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x9c]
xor edi, edi
cmp eax, ebx
jbe 0x408667
lea ecx, [esp + 0x28]
call fcn.004131a0
cmp edi, dword [esi + 0x9c]
jae 0x4085ee
mov ecx, dword [esi + 0xa4]
mov eax, dword [ecx + edi*4]
jmp 0x4085f0
xor eax, eax
fld qword [ebp + 0x14]
lea edx, [esp + 0x28]
push edx
push eax
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, esi
fld qword [ebp + 0xc]
fstp qword [esp]
call fcn.00402b10
push ebx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x478]
call fcn.00407380
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xac]
push edx
lea eax, [esp + 0x478]
push eax
call fcn.004073f0
add esp, 0xc
lea ecx, [esp + 0x470]
call fcn.004135e0
lea ecx, [esp + 0x28]
mov dword [esp + 0x8ec], ebx
call fcn.00413160
mov eax, dword [esi + 0x9c]
inc edi
cmp edi, eax
jb 0x4085d2
mov eax, dword [esi + 0xa8]
xor ecx, ecx
cmp eax, ebx
mov dword [esp + 0x10], ecx
jbe 0x408735
cmp ecx, eax
jae 0x40868a
mov edx, dword [esi + 0xb0]
mov edi, dword [edx + ecx*4]
jmp 0x40868c
xor edi, edi
mov al, byte [edi + 0xf]
test al, al
lea eax, [edi + 0xc]
jne 0x40869c
lea eax, [esi + 0xd0]
mov dl, byte [eax + 3]
test dl, dl
je 0x408722
mov eax, dword [eax]
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], eax
call fcn.004131a0
fld qword [ebp + 0x14]
lea ecx, [esp + 0x28]
push ecx
push edi
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, esi
fld qword [ebp + 0xc]
fstp qword [esp]
call fcn.00402b10
push ebx
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x478]
call fcn.00407380
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xac]
push ecx
lea edx, [esp + 0x478]
push edx
call fcn.004073f0
add esp, 0xc
lea ecx, [esp + 0x470]
call fcn.004135e0
lea ecx, [esp + 0x28]
mov dword [esp + 0x8ec], ebx
call fcn.00413160
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0xa8]
inc ecx
cmp ecx, eax
mov dword [esp + 0x10], ecx
jb 0x40867f
mov al, byte [esi + 0xe0]
test al, al
je 0x40876b
mov eax, dword [ebp + 0x20]
imul eax, dword [ebp + 0x24]
cmp eax, ebx
mov ecx, dword [ebp + 0x1c]
jle 0x40876b
mov edx, eax
nop
mov eax, dword [ecx]
cmp eax, ebx
je 0x408765
and eax, 0xfcfcfcfc
mov edi, eax
shr edi, 1
or edi, eax
shr edi, 1
mov dword [ecx], edi
add ecx, 4
dec edx
jne 0x408750
cmp dword [esi + 0xa8], ebx
mov dword [esp + 0x20], ebx
jbe 0x408a3a
jmp 0x408780
mov eax, dword [esp + 0x20]
cmp eax, dword [esi + 0xa8]
jae 0x408797
mov ecx, dword [esi + 0xb0]
mov edi, dword [ecx + eax*4]
jmp 0x408799
xor edi, edi
mov edx, dword [edi + 0x10]
test edx, edx
jl 0x408a23
mov ecx, dword [esi + 0xb4]
xor eax, eax
test ecx, ecx
jbe 0x408a23
cmp eax, ecx
jae 0x4087c3
mov ebx, dword [esi + 0xbc]
mov ebx, dword [ebx + eax*4]
jmp 0x4087c5
xor ebx, ebx
cmp dword [ebx + 0x70], edx
je 0x4087d4
inc eax
cmp eax, ecx
jb 0x4087b8
jmp 0x408a23
push 0
mov ecx, edi
call fcn.00401fc0
mov edx, dword [eax]
mov eax, dword [esi + 0x74]
imul edx, edx, 0x98
push 0
fld qword [edx + eax]
mov ecx, edi
fmul qword [esi + 0x68]
fadd qword [ebp + 0xc]
fstp qword [esp + 0x2c]
fld qword [0x41d240]
fadd qword [ebp + 0x14]
fstp qword [esp + 0x14]
call fcn.00401fc0
mov ecx, dword [eax]
mov edx, dword [esi + 0x74]
imul ecx, ecx, 0x98
push 1
fld qword [ecx + edx + 8]
mov ecx, edi
fmul qword [esi + 0x68]
fsubr qword [esp + 0x14]
fstp qword [esp + 0x34]
call fcn.00401fc0
mov eax, dword [eax]
mov ecx, dword [esi + 0x74]
imul eax, eax, 0x98
push 1
fld qword [eax + ecx]
mov ecx, edi
fmul qword [esi + 0x68]
fadd qword [ebp + 0xc]
fstp qword [esp + 0x3c]
fld qword [0x41d240]
fadd qword [ebp + 0x14]
fstp qword [esp + 0x14]
call fcn.00401fc0
mov edx, dword [eax]
mov eax, dword [esi + 0x74]
imul edx, edx, 0x98
push 2
fld qword [edx + eax + 8]
mov ecx, edi
fmul qword [esi + 0x68]
fsubr qword [esp + 0x14]
fstp qword [esp + 0x44]
call fcn.00401fc0
mov ecx, dword [eax]
mov edx, dword [esi + 0x74]
imul ecx, ecx, 0x98
push 2
fld qword [ecx + edx]
mov ecx, edi
fmul qword [esi + 0x68]
fadd qword [ebp + 0xc]
fstp qword [esp + 0x4c]
fld qword [0x41d240]
fadd qword [ebp + 0x14]
fstp qword [esp + 0x14]
call fcn.00401fc0
mov eax, dword [eax]
mov ecx, dword [esi + 0x74]
imul eax, eax, 0x98
fld qword [eax + ecx + 8]
fmul qword [esi + 0x68]
fsubr qword [esp + 0x10]
fld qword [esp + 0x28]
fstp qword [esp + 0x118]
fld qword [esp + 0x30]
fstp qword [esp + 0x120]
fld qword [esp + 0x38]
fstp qword [esp + 0x128]
fld qword [esp + 0x40]
fstp qword [esp + 0x130]
fld qword [esp + 0x38]
fsub qword [esp + 0x28]
fmul qword [0x41a2b0]
fadd qword [esp + 0x48]
fstp qword [esp + 0x138]
mov eax, dword [ebx + 0x24]
fld qword [esp + 0x40]
xor edi, edi
test eax, eax
fsub qword [esp + 0x30]
fmul qword [0x41a2b0]
fadd st(1)
fstp qword [esp + 0x140]
fld qword [esp + 0x28]
fsub qword [esp + 0x38]
fmul qword [0x41a2b0]
fadd qword [esp + 0x48]
fstp qword [esp + 0x148]
fld qword [esp + 0x30]
fsub qword [esp + 0x40]
fmul qword [0x41a2b0]
fadd st(1)
fstp qword [esp + 0x150]
fstp st(0)
jbe 0x408a23
mov edi, edi
lea edx, [esp + 0x118]
push edx
lea eax, [ebx + 0x30]
push eax
lea ecx, [esp + 0x160]
call fcn.00406780
mov al, byte [esp + 0x198]
test al, al
je 0x408a17
lea eax, [esp + 0x158]
lea ecx, [esp + 0x470]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], eax
call fcn.004135e0
mov dword [esp + 0x8ec], 0
cmp edi, dword [ebx + 0x24]
jae 0x4089ba
mov ecx, dword [ebx + 0x2c]
mov eax, dword [ecx + edi*4]
jmp 0x4089bc
xor eax, eax
mov edx, dword [eax]
push edx
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x478]
call fcn.00407490
cmp edi, dword [ebx + 0x18]
jae 0x4089dd
mov ecx, dword [ebx + 0x20]
mov eax, dword [ecx + edi*4]
jmp 0x4089df
xor eax, eax
mov eax, dword [eax]
mov ecx, eax
shr ecx, 0x18
test cl, cl
mov dword [esp + 0x10], eax
je 0x4089f2
mov dword [esp + 0x60], eax
mov edx, dword [esp + 0x60]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xac]
mov dword [esp + 0x20], edx
push ecx
lea edx, [esp + 0x478]
push edx
call fcn.004073f0
add esp, 0xc
mov eax, dword [ebx + 0x24]
inc edi
cmp edi, eax
jb 0x408960
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0xa8]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jb 0x408780
mov al, byte [esi + 0xdb]
test al, al
je 0x4091c2
mov eax, dword [esi + 0x78]
test eax, eax
mov dword [esp + 0x10], 0
jle 0x408c86
mov dword [esp + 0x20], 0
mov eax, dword [esi + 0x7c]
mov ecx, dword [esp + 0x20]
mov ebx, dword [eax + ecx]
mov edi, dword [eax + ecx + 4]
imul ebx, ebx, 0x98
add eax, ecx
imul edi, edi, 0x98
mov ecx, dword [esi + 0x74]
add ebx, ecx
add edi, ecx
lea ecx, [esp + 0x28]
call fcn.004131a0
mov eax, dword [esp + 0x2c]
fld qword [0x41d240]
fadd qword [ebp + 0x14]
fld qword [ebx + 8]
fmul qword [esi + 0x68]
fsubp st(1)
fstp qword [esp + 0x70]
fld qword [ebx]
mov ebx, dword [esp + 0x28]
fmul qword [esi + 0x68]
shr ebx, 8
cmp ebx, eax
fadd qword [ebp + 0xc]
fstp qword [esp + 0x68]
jb 0x408ac9
push ebx
lea ecx, [esp + 0x2c]
call fcn.004131c0
mov ecx, dword [esp + 0x28]
fld qword [esp + 0x68]
mov edx, dword [esp + 0x34]
and ecx, 0xff
mov eax, ecx
shl eax, 4
add eax, dword [edx + ebx*4]
mov edx, dword [esp + 0x38]
mov edx, dword [edx + ebx*4]
mov byte [ecx + edx], 1
fstp qword [eax]
fld qword [esp + 0x70]
fstp qword [eax + 8]
mov eax, dword [esp + 0x28]
fld qword [0x41d240]
inc eax
fadd qword [ebp + 0x14]
mov dword [esp + 0x28], eax
fld qword [edi + 8]
fmul qword [esi + 0x68]
fsubp st(1)
fstp qword [esp + 0x70]
fld qword [esi + 0x68]
fmul qword [edi]
mov edi, eax
mov eax, dword [esp + 0x2c]
shr edi, 8
cmp edi, eax
fadd qword [ebp + 0xc]
fstp qword [esp + 0x68]
jb 0x408b38
push edi
lea ecx, [esp + 0x2c]
call fcn.004131c0
mov ecx, dword [esp + 0x28]
fld qword [esp + 0x68]
mov edx, dword [esp + 0x34]
mov ebx, dword [edx + edi*4]
mov edx, dword [esp + 0x38]
mov edx, dword [edx + edi*4]
and ecx, 0xff
mov eax, ecx
shl eax, 4
add eax, ebx
mov byte [ecx + edx], 2
fstp qword [eax]
fld qword [esp + 0x70]
lea ecx, [esp + 0x1a8]
fstp qword [eax + 8]
mov ebx, dword [esp + 0x28]
lea eax, [esp + 0x28]
inc ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1a0], eax
call fcn.004162c0
fld qword [0x41a520]
push 0
fstp qword [esp + 0x1d4]
lea ecx, [esp + 0x1a4]
push ecx
lea ecx, [esp + 0x478]
mov dword [esp + 0x224], 0
call fcn.00407560
mov eax, dword [esp + 0x1c0]
test eax, eax
je 0x408c0c
mov edx, dword [esp + 0x1c8]
lea edi, [edx + eax*4 - 4]
lea esp, [esp]
dec eax
mov dword [esp + 0x1c0], eax
mov eax, dword [edi]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x1c4]
add esp, 4
sub edi, 4
test eax, eax
jne 0x408bd0
mov ecx, dword [esp + 0x1c8]
push ecx
mov dword [esp + 0x1c4], 0xffffffff
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x1ac]
test eax, eax
je 0x408c5e
mov edx, dword [esp + 0x1b4]
lea edi, [edx + eax*4 - 4]
dec eax
mov dword [esp + 0x1ac], eax
mov eax, dword [edi]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x1b0]
add esp, 4
sub edi, 4
test eax, eax
jne 0x408c22
mov ecx, dword [esp + 0x1b4]
push ecx
mov dword [esp + 0x1b0], 0xffffffff
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x28]
call fcn.00413160
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov ecx, dword [esi + 0x78]
inc eax
add edx, 0x28
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], edx
jl 0x408a63
mov edx, dword [esi + 0xd8]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xac]
mov dword [esp + 0x20], edx
push ecx
lea edx, [esp + 0x478]
push edx
call fcn.004073f0
add esp, 0xc
lea ecx, [esp + 0x470]
call fcn.004135e0
mov eax, dword [esi + 0xf0]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x8ec], ebx
je 0x4091c2
cmp dword [esi + 0x78], ebx
mov dword [esp + 0x10], ebx
jle 0x409188
lea ecx, [ecx]
mov eax, dword [esi + 0x7c]
fld qword [0x41a2a8]
fld qword [eax + ebx + 0x10]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x40916f
mov ecx, dword [esi + 0x7c]
mov eax, dword [ecx + ebx]
mov edx, dword [esi + 0x74]
imul eax, eax, 0x98
fld qword [eax + edx]
fstp qword [esp + 0x78]
add ecx, ebx
mov ecx, dword [ecx + 4]
imul ecx, ecx, 0x98
fld qword [ecx + edx]
fstp qword [esp + 0xd0]
fld qword [eax + edx + 8]
fstp qword [esp + 0x88]
fld qword [ecx + edx + 8]
fstp qword [esp + 0x90]
fld qword [esp + 0x78]
fsub qword [esp + 0xd0]
add eax, edx
fld qword [esp + 0x88]
add ecx, edx
fsub qword [esp + 0x90]
fld qword [0x41a518]
fdiv qword [esi + 0x68]
fld st(1)
fmul st(2)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fdivp st(1)
fxch st(2)
fmul st(2)
fstp qword [esp + 0x20]
fmulp st(1)
fld qword [esp + 0xd0]
fadd qword [esp + 0x78]
fmul qword [0x41a2b0]
fld qword [esp + 0x90]
fadd qword [esp + 0x88]
fmul qword [0x41a2b0]
fld qword [esp + 0x20]
fmul qword [0x41a2b0]
fld st(2)
fadd st(1)
fstp qword [esp + 0xa0]
fxch st(2)
fsub st(2)
fstp qword [esp + 0x98]
fstp st(1)
fld st(1)
fmul qword [0x41a2b0]
fld st(1)
fadd st(1)
fstp qword [esp + 0x60]
fsubp st(1)
fld qword [esp + 0xa0]
fld qword [esp + 0x60]
fld qword [esp + 0x98]
fstp qword [esp + 0x68]
fld st(2)
fstp qword [esp + 0x70]
fld qword [esp + 0xa0]
fsub st(4)
fstp qword [esp + 0xa0]
fld qword [esp + 0x60]
fadd qword [esp + 0x20]
fstp qword [esp + 0x60]
fxch st(1)
fadd st(3)
fstp qword [esp + 0xf0]
fsub qword [esp + 0x20]
fstp qword [esp + 0xc8]
fld qword [esp + 0x98]
fsub st(2)
fstp qword [esp + 0x98]
fadd qword [esp + 0x20]
fstp qword [esp + 0x80]
fld qword [esp + 0x68]
fadd st(1)
fstp qword [esp + 0x68]
lea ecx, [esp + 0x28]
fstp st(0)
fld qword [esp + 0x70]
fsub qword [esp + 0x20]
fstp qword [esp + 0x70]
call fcn.004131a0
fld qword [0x41d240]
mov edi, dword [esp + 0x28]
fadd qword [ebp + 0x14]
mov eax, dword [esp + 0x2c]
fld qword [esp + 0x88]
shr edi, 8
cmp edi, eax
fmul qword [esi + 0x68]
fsubp st(1)
fstp qword [esp + 0x88]
fld qword [esp + 0x78]
fmul qword [esi + 0x68]
fadd qword [ebp + 0xc]
fstp qword [esp + 0x78]
jb 0x408e9f
push edi
lea ecx, [esp + 0x2c]
call fcn.004131c0
mov ecx, dword [esp + 0x28]
fld qword [esp + 0x78]
mov edx, dword [esp + 0x34]
and ecx, 0xff
mov eax, ecx
shl eax, 4
add eax, dword [edx + edi*4]
mov edx, dword [esp + 0x38]
mov edx, dword [edx + edi*4]
mov byte [ecx + edx], 1
fstp qword [eax]
fld qword [esp + 0x88]
fstp qword [eax + 8]
mov edi, dword [esp + 0x28]
fld qword [0x41d240]
mov eax, dword [esp + 0x2c]
fadd qword [ebp + 0x14]
inc edi
fld qword [esp + 0x60]
mov dword [esp + 0x28], edi
fmul qword [esi + 0x68]
shr edi, 8
cmp edi, eax
fsubp st(1)
fstp qword [esp + 0x88]
fld qword [esp + 0xa0]
fmul qword [esi + 0x68]
fadd qword [ebp + 0xc]
fstp qword [esp + 0x78]
jb 0x408f18
push edi
lea ecx, [esp + 0x2c]
call fcn.004131c0
mov ecx, dword [esp + 0x28]
fld qword [esp + 0x78]
mov edx, dword [esp + 0x34]
and ecx, 0xff
mov eax, ecx
shl eax, 4
add eax, dword [edx + edi*4]
mov edx, dword [esp + 0x38]
mov edx, dword [edx + edi*4]
mov byte [ecx + edx], 2
fstp qword [eax]
fld qword [esp + 0x88]
fstp qword [eax + 8]
mov edi, dword [esp + 0x28]
fld qword [0x41d240]
mov eax, dword [esp + 0x2c]
fadd qword [ebp + 0x14]
inc edi
fld qword [esp + 0x80]
mov dword [esp + 0x28], edi
fmul qword [esi + 0x68]
shr edi, 8
cmp edi, eax
fsubp st(1)
fstp qword [esp + 0x78]
fld qword [esp + 0x98]
fmul qword [esi + 0x68]
fadd qword [ebp + 0xc]
fstp qword [esp + 0x80]
jb 0x408f94
push edi
lea ecx, [esp + 0x2c]
call fcn.004131c0
mov ecx, dword [esp + 0x28]
fld qword [esp + 0x80]
mov edx, dword [esp + 0x34]
and ecx, 0xff
mov eax, ecx
shl eax, 4
add eax, dword [edx + edi*4]
mov edx, dword [esp + 0x38]
mov edx, dword [edx + edi*4]
mov byte [ecx + edx], 2
fstp qword [eax]
fld qword [esp + 0x78]
fstp qword [eax + 8]
mov edi, dword [esp + 0x28]
fld qword [0x41d240]
mov eax, dword [esp + 0x2c]
fadd qword [ebp + 0x14]
inc edi
fld qword [esp + 0x90]
mov dword [esp + 0x28], edi
fmul qword [esi + 0x68]
shr edi, 8
cmp edi, eax
fsubp st(1)
fstp qword [esp + 0x90]
fld qword [esp + 0xd0]
fmul qword [esi + 0x68]
fadd qword [ebp + 0xc]
fstp qword [esp + 0x80]
jb 0x409013
push edi
lea ecx, [esp + 0x2c]
call fcn.004131c0
mov ecx, dword [esp + 0x28]
fld qword [esp + 0x80]
mov edx, dword [esp + 0x34]
and ecx, 0xff
mov eax, ecx
shl eax, 4
add eax, dword [edx + edi*4]
mov edx, dword [esp + 0x38]
mov edx, dword [edx + edi*4]
mov byte [ecx + edx], 2
fstp qword [eax]
fld qword [esp + 0x90]
fstp qword [eax + 8]
mov edi, dword [esp + 0x28]
fld qword [0x41d240]
mov eax, dword [esp + 0x2c]
fadd qword [ebp + 0x14]
inc edi
fld qword [esp + 0x70]
mov dword [esp + 0x28], edi
fmul qword [esi + 0x68]
shr edi, 8
cmp edi, eax
fsubp st(1)
fstp qword [esp + 0x70]
fld qword [esp + 0x68]
fmul qword [esi + 0x68]
fadd qword [ebp + 0xc]
fstp qword [esp + 0x80]
jb 0x40908c
push edi
lea ecx, [esp + 0x2c]
call fcn.004131c0
mov ecx, dword [esp + 0x28]
fld qword [esp + 0x80]
mov edx, dword [esp + 0x34]
and ecx, 0xff
mov eax, ecx
shl eax, 4
add eax, dword [edx + edi*4]
mov edx, dword [esp + 0x38]
mov edx, dword [edx + edi*4]
mov byte [ecx + edx], 2
fstp qword [eax]
fld qword [esp + 0x70]
fstp qword [eax + 8]
mov edi, dword [esp + 0x28]
fld qword [0x41d240]
mov eax, dword [esp + 0x2c]
fadd qword [ebp + 0x14]
inc edi
fld qword [esp + 0xc8]
mov dword [esp + 0x28], edi
fmul qword [esi + 0x68]
shr edi, 8
cmp edi, eax
fsubp st(1)
fstp qword [esp + 0xc8]
fld qword [esp + 0xf0]
fmul qword [esi + 0x68]
fadd qword [ebp + 0xc]
fstp qword [esp + 0xf0]
jb 0x40910b
push edi
lea ecx, [esp + 0x2c]
call fcn.004131c0
mov ecx, dword [esp + 0x28]
fld qword [esp + 0xf0]
mov edx, dword [esp + 0x34]
and ecx, 0xff
mov eax, ecx
shl eax, 4
add eax, dword [edx + edi*4]
mov edx, dword [esp + 0x38]
mov edx, dword [edx + edi*4]
mov byte [ecx + edx], 2
fstp qword [eax]
fld qword [esp + 0xc8]
push 0x40
fstp qword [eax + 8]
mov eax, dword [esp + 0x2c]
inc eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
call fcn.00413540
push 0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x478]
call fcn.00407380
lea ecx, [esp + 0x28]
call fcn.00413160
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x78]
inc eax
add ebx, 0x28
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x408ce0
xor ebx, ebx
mov ecx, dword [esi + 0xd8]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0xac]
mov dword [esp + 0x20], ecx
push eax
lea ecx, [esp + 0x478]
push ecx
call fcn.004073f0
add esp, 0xc
lea ecx, [esp + 0x470]
call fcn.004135e0
mov dword [esp + 0x8ec], ebx
mov al, byte [esi + 0xdf]
test al, al
je 0x4098be
mov eax, dword [esi + 0x70]
test eax, eax
mov dword [esp + 0x20], 0
jle 0x4098be
mov dword [esp + 0x10], 0
xor edi, edi
lea ecx, [ecx]
mov eax, dword [esp + 0x20]
cmp eax, dword [esi + 0x80]
jne 0x409208
cmp dword [esi + 0x84], edi
jl 0x409710
cmp eax, dword [esi + 0x84]
je 0x409710
cmp dword [esi + 0xec], edi
mov byte [esp + 0xf], 0
je 0x409773
fld qword [0x41a2a8]
mov eax, dword [esi + 0x74]
fstp qword [esp + 0x158]
mov ecx, dword [esp + 0x10]
fld qword [0x41a2a8]
add eax, ecx
fstp qword [esp + 0x160]
mov edx, 4
fld qword [0x41a2b8]
mov dword [esp + 0x180], edx
fstp qword [esp + 0x168]
mov dword [esp + 0x184], edi
fld qword [0x41a2b8]
mov byte [esp + 0x188], 0
fstp qword [esp + 0x170]
fld qword [0x41a2b8]
fstp qword [esp + 0x178]
fld qword [0x41d240]
fadd qword [ebp + 0x14]
fld qword [eax + 8]
fmul qword [esi + 0x68]
fsubr st(1)
fld qword [eax]
mov al, byte [esp + 0xf]
test al, al
fmul qword [esi + 0x68]
mov dword [esp + 0x180], 0xa
mov dword [esp + 0x184], edi
fadd qword [ebp + 0xc]
mov byte [esp + 0x188], 0
fstp qword [esp + 0x158]
fstp qword [esp + 0x160]
fld qword [0x41a510]
fstp qword [esp + 0x168]
fld qword [0x41a510]
fstp qword [esp + 0x170]
je 0x40971a
fld qword [0x41a2a8]
mov dword [esp + 0x50], edx
mov edx, dword [esi + 0x74]
fstp qword [esp + 0x28]
fld qword [0x41a2a8]
lea eax, [ecx + edx]
fstp qword [esp + 0x30]
mov dword [esp + 0x54], edi
fld qword [0x41a2b8]
mov byte [esp + 0x58], 0
fstp qword [esp + 0x38]
push edi
fld qword [0x41a2b8]
lea ecx, [esp + 0x474]
fstp qword [esp + 0x44]
fld qword [0x41a2b8]
fstp qword [esp + 0x4c]
fld qword [eax + 8]
fmul qword [esi + 0x68]
fsubp st(1)
fld qword [eax]
lea eax, [esp + 0x2c]
fmul qword [esi + 0x68]
push eax
mov dword [esp + 0x58], 0x14
mov dword [esp + 0x5c], edi
fadd qword [ebp + 0xc]
mov byte [esp + 0x60], 0
fstp qword [esp + 0x30]
fstp qword [esp + 0x38]
fld qword [0x41a508]
fstp qword [esp + 0x40]
fld qword [0x41a508]
fstp qword [esp + 0x48]
call fcn.004075d0
lea edx, [esp + 0x18]
mov byte [esp + 0x60], 8
mov byte [esp + 0x61], 8
mov byte [esp + 0x62], 8
mov byte [esp + 0x63], 8
mov ecx, dword [esp + 0x60]
push edx
lea eax, [esp + 0xac]
mov dword [esp + 0x20], ecx
push eax
lea ecx, [esp + 0x478]
push ecx
call fcn.004073f0
add esp, 0xc
lea ecx, [esp + 0x470]
call fcn.004135e0
cmp dword [esi + 0xec], edi
mov dword [esp + 0x8ec], edi
jne 0x4094cc
lea edx, [esp + 0x158]
lea ecx, [esp + 0x1a8]
mov dword [esp + 0x1a0], edx
call fcn.004162c0
fld qword [0x41a520]
push edi
fstp qword [esp + 0x1d4]
lea eax, [esp + 0x1a4]
push eax
lea ecx, [esp + 0x478]
mov dword [esp + 0x224], edi
call fcn.00407640
mov eax, dword [esp + 0x1c0]
cmp eax, edi
je 0x409472
mov ecx, dword [esp + 0x1c8]
lea ebx, [ecx + eax*4 - 4]
dec eax
mov dword [esp + 0x1c0], eax
mov edx, dword [ebx]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x1c4]
add esp, 4
sub ebx, 4
cmp eax, edi
jne 0x409436
mov eax, dword [esp + 0x1c8]
push eax
mov dword [esp + 0x1c4], 0xffffffff
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x1ac]
cmp eax, edi
je 0x4094cc
mov ecx, dword [esp + 0x1b4]
lea ebx, [ecx + eax*4 - 4]
jmp 0x409490
dec eax
mov dword [esp + 0x1ac], eax
mov edx, dword [ebx]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x1b0]
add esp, 4
sub ebx, 4
cmp eax, edi
jne 0x409490
mov eax, dword [esp + 0x1b4]
push eax
mov dword [esp + 0x1b0], 0xffffffff
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x2d0], ecx
lea ecx, [esp + 0x2d8]
call fcn.00415b70
lea edx, [esp + 0x2d0]
lea ecx, [esp + 0x240]
mov dword [esp + 0x438], edi
mov dword [esp + 0x43c], edi
mov dword [esp + 0x440], edi
mov dword [esp + 0x444], edi
mov dword [esp + 0x448], 0x40
mov dword [esp + 0x44c], edi
mov dword [esp + 0x450], edi
mov dword [esp + 0x454], edi
mov dword [esp + 0x238], edx
call fcn.004162c0
fld qword [0x41a500]
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x2e8]
fld qword [0x41a2b8]
mov dword [esp + 0x2c4], edi
fstp qword [esp]
call fcn.00415a80
fld qword [0x41a4f8]
push edi
lea eax, [esp + 0x23c]
fstp qword [esp + 0x26c]
push eax
lea ecx, [esp + 0x478]
call fcn.004076b0
mov ecx, dword [esi + 0xdc]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0xac]
mov dword [esp + 0x20], ecx
push eax
lea ecx, [esp + 0x478]
push ecx
call fcn.004073f0
add esp, 0xc
lea ecx, [esp + 0x470]
call fcn.004135e0
mov eax, dword [esp + 0x258]
cmp eax, edi
mov dword [esp + 0x8ec], edi
je 0x409610
mov edx, dword [esp + 0x260]
lea ebx, [edx + eax*4 - 4]
dec eax
mov dword [esp + 0x258], eax
mov eax, dword [ebx]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x25c]
add esp, 4
sub ebx, 4
cmp eax, edi
jne 0x4095d4
mov ecx, dword [esp + 0x260]
push ecx
mov dword [esp + 0x25c], 0xffffffff
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x244]
cmp eax, edi
je 0x409662
mov edx, dword [esp + 0x24c]
lea ebx, [edx + eax*4 - 4]
dec eax
mov dword [esp + 0x244], eax
mov eax, dword [ebx]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x248]
add esp, 4
sub ebx, 4
cmp eax, edi
jne 0x409626
mov ecx, dword [esp + 0x24c]
push ecx
mov dword [esp + 0x248], 0xffffffff
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x43c]
cmp eax, edi
je 0x4096bc
mov edx, dword [esp + 0x444]
lea ebx, [edx + eax*4 - 4]
jmp 0x409680
dec eax
mov dword [esp + 0x43c], eax
mov eax, dword [ebx]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x440]
add esp, 4
sub ebx, 4
cmp eax, edi
jne 0x409680
mov ecx, dword [esp + 0x444]
push ecx
mov dword [esp + 0x440], 0xffffffff
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x41c]
cmp eax, edi
je 0x40971c
mov edx, dword [esp + 0x424]
lea ebx, [edx + eax*4 - 4]
dec eax
mov dword [esp + 0x41c], eax
mov eax, dword [ebx]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x420]
add esp, 4
sub ebx, 4
cmp eax, edi
jne 0x4096d2
mov ecx, dword [esp + 0x424]
push ecx
mov dword [esp + 0x420], 0xffffffff
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x40971c
mov byte [esp + 0xf], 1
jmp 0x409225
fstp st(0)
cmp dword [esi + 0xec], edi
je 0x409773
push edi
lea edx, [esp + 0x15c]
push edx
lea ecx, [esp + 0x478]
call fcn.004075d0
mov eax, dword [esi + 0xdc]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xac]
mov dword [esp + 0x20], eax
push edx
lea eax, [esp + 0x478]
push eax
call fcn.004073f0
add esp, 0xc
lea ecx, [esp + 0x470]
call fcn.004135e0
mov dword [esp + 0x8ec], edi
mov al, byte [esp + 0xf]
fld qword [0x41a2b8]
test al, al
fstp qword [esp + 0x138]
je 0x409790
fld qword [0x41a330]
jmp 0x409796
fld qword [0x41a328]
mov ecx, dword [esi + 0x74]
mov ebx, dword [esp + 0x10]
fld qword [ebx + ecx]
lea eax, [ebx + ecx]
fmul qword [esi + 0x68]
push edi
lea edx, [esp + 0x11c]
push edx
fadd qword [ebp + 0xc]
lea ecx, [esp + 0x478]
mov dword [esp + 0x148], 0xa
mov dword [esp + 0x14c], edi
fstp qword [esp + 0x120]
mov byte [esp + 0x150], 0
fld qword [0x41d240]
fadd qword [ebp + 0x14]
fld qword [eax + 8]
fmul qword [esi + 0x68]
fsubp st(1)
fstp qword [esp + 0x128]
fst qword [esp + 0x130]
fstp qword [esp + 0x138]
call fcn.004075d0
mov eax, dword [esi + 0xdc]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xac]
mov dword [esp + 0x20], eax
push edx
lea eax, [esp + 0x478]
push eax
call fcn.004073f0
add esp, 0xc
lea ecx, [esp + 0x470]
call fcn.004135e0
cmp dword [esi + 0xec], edi
mov dword [esp + 0x8ec], edi
je 0x4098a0
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0xf4]
push 0x41a4f0
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
fld qword [0x41d240]
fadd qword [ebp + 0x14]
mov eax, dword [esi + 0x74]
fld qword [eax + ebx + 8]
add eax, ebx
fmul qword [esi + 0x68]
add esp, 0xc
lea ecx, [esp + 0xf0]
push ecx
fsubp st(1)
sub esp, 0x10
lea edx, [esp + 0x2c]
fstp qword [esp + 8]
fld qword [eax]
fmul qword [esi + 0x68]
fadd qword [ebp + 0xc]
fstp qword [esp]
push edx
call fcn.0040c720
add esp, 0x18
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x70]
inc eax
add ebx, 0x98
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ebx
jl 0x4091f0
mov esi, dword [esi + 0x94]
test esi, esi
je 0x409928
cmp esi, 0xa
jl 0x4098da
add esi, 0xfffffff6
mov dword [esp + 0x10], esi
fild dword [esp + 0x10]
jmp 0x4098e9
mov eax, 0xa
sub eax, esi
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [0x41a4e8]
call fcn.004022e0
mov esi, dword [ebp + 0x1c]
sar eax, 2
mov edi, eax
mov eax, dword [ebp + 0x20]
imul eax, dword [ebp + 0x24]
test eax, eax
jle 0x409928
mov ebx, eax
lea esp, [esp]
mov eax, dword [esi]
test eax, eax
je 0x409922
push edi
push eax
call fcn.00416a70
add esp, 8
mov dword [esi], eax
add esi, 4
dec ebx
jne 0x409910
mov ecx, dword [esp + 0xbc]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0xb8]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 8
lea ecx, [esp + 0x470]
call fcn.00414a50
mov eax, dword [esp + 0xdc]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20