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

Disassembly:
sub esp, 0x350
fldz
push ebp
xor ebp, ebp
mov dword [esp + 0x1c], ebp
fst qword [esp + 0x4c]
fstp qword [esp + 0x40]
xor eax, eax
fldz
mov word [esp + 0xc], ax
fst dword [esp + 8]
xor ecx, ecx
fst dword [esp + 0x3c]
push esi
mov esi, dword [esp + 0x368]
mov dword [esp + 0x1c], ebp
mov word [esp + 8], cx
fstp dword [esp + 0x24]
fld dword [esp + 0xc]
push ebp
fadd qword [0x41f8e0]
push esi
fsub qword [0x41f8d8]
fstp dword [0x425bc8]
fld dword [esp + 0x14]
fsub qword [0x41f348]
fstp dword [esp + 0x14]
call fcn.00403f30
add esp, 8
test eax, eax
jl 0x407b12
mov edx, dword [esi + 8]
test byte [edx], 1
je 0x407b12
lea eax, [esp + 0x18]
push esi
push eax
call fcn.00401180
fld dword [esp + 0x14]
fld qword [esp + 0x4c]
push ebp
fadd qword [0x41f8d0]
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x38]
fsubp st(1)
push edx
fstp dword [esp + 0x20]
call fcn.004015a0
push 0x300
lea eax, [esp + 0x70]
push ebp
push eax
call fcn.0040b220
mov ecx, dword [esp + 0x384]
push ecx
call fcn.00402e70
add esp, 0x24
cmp eax, 0x29f
jle 0x407391
mov dword [esp + 0x14], 6
jmp 0x4073c1
cmp eax, 0xef
jle 0x4073a2
mov dword [esp + 0x14], 5
jmp 0x4073c1
cmp eax, 0x4f
jle 0x4073b1
mov dword [esp + 0x14], 4
jmp 0x4073c1
xor edx, edx
cmp eax, 0x17
setg dl
lea edx, [edx + edx + 1]
mov dword [esp + 0x14], edx
push ebx
mov ebx, dword [esp + 0x360]
push edi
mov edi, dword [esi + 4]
inc edi
push edi
push ebx
call fcn.00401e50
add esp, 8
mov dword [esp + 0x10], eax
cmp eax, ebp
jne 0x407a7f
lea eax, [esp + 0x6c]
push edi
push eax
call fcn.00401e50
add esp, 8
mov dword [esp + 0x10], eax
cmp eax, ebp
jne 0x407a7f
mov cx, word [esp + 0x18]
movsx edx, cx
mov ecx, dword [esp + 0x24]
mov eax, 0x990a3698
sub eax, edx
cmp eax, ecx
jl 0x407427
mov edx, dword [0x425bbc]
imul edx, edx, 0x3498236a
mov dword [0x425bbc], edx
lea eax, [edi + edi]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.00401e50
add esp, 8
mov dword [esp + 0x10], eax
cmp eax, ebp
jne 0x407a7f
fld qword [esp + 0x4c]
fsubr qword [0x41f8c8]
fadd dword [0x4248fc]
fld qword [0x425c60]
fsub dword [0x423a20]
mov dx, word [esp + 0x18]
dec dword [esp + 0x18]
movsx eax, dx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
faddp st(1)
fcompp
fnstsw ax
fld dword [0x4248fc]
fld1
fadd st(1), st(0)
fxch st(1)
fstp dword [0x4248fc]
fld qword [esp + 0x4c]
fadd st(1)
fstp qword [esp + 0x4c]
test ah, 1
jne 0x4074c3
fld dword [0x42491c]
fld dword [0x423434]
fsub qword [0x41f8c0]
fsubp st(1)
fstp dword [0x42491c]
fsubr dword [0x423434]
fstp dword [0x423434]
jmp 0x4074c5
fstp st(0)
mov ebp, dword [esp + 0x374]
test ebp, ebp
je 0x4074f0
cmp dword [ebp + 8], 0
je 0x4074f0
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
mov eax, dword [ebp + 8]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
jmp 0x40760f
xor ecx, ecx
lea edx, [esp + 0x30]
push 1
mov word [esp + 0x14], cx
push edx
mov dword [esp + 0x5c], ecx
call fcn.00401e50
mov edi, eax
add esp, 8
test edi, edi
jne 0x40753c
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
lea ecx, [eax*4]
push ecx
push edi
push edx
call fcn.0040b220
mov eax, dword [esp + 0x44]
mov dword [eax], 1
add esp, 0xc
mov dword [esp + 0x30], 1
mov dword [esp + 0x10], edi
test edi, edi
jne 0x407a86
fld dword [esp + 0x14]
lea edx, [esp + 0x30]
fsub dword [0x423a24]
mov ecx, dword [esi + 4]
shl ecx, 6
push ecx
push edx
fstp dword [esp + 0x1c]
call fcn.00403920
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x407a86
fld dword [0x42562c]
fsub qword [0x41f8b8]
fld dword [0x423aa8]
fsub dword [0x425bd8]
fcompp
fnstsw ax
test ah, 0x41
jp 0x4075c3
fld dword [0x4248ec]
fadd qword [0x41f348]
fstp dword [0x4248ec]
fld qword [0x423970]
fld dword [0x4248ec]
fadd qword [0x41f8b0]
fsubp st(1)
fstp qword [0x423970]
lea eax, [esp + 0x30]
push esi
push eax
mov ecx, eax
push ecx
call fcn.00406cd0
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x407a86
test ebp, ebp
je 0x4075f9
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [ebp], edx
mov dword [ebp + 4], eax
mov dword [ebp + 8], ecx
fld dword [0x425cb8]
fsubr qword [0x41f8a8]
call fcn.0040b450
mov word [esp + 0x10], ax
mov dx, word [esp + 0x18]
mov edi, dword [esp + 0x368]
movsx eax, dx
add eax, dword [esp + 0x24]
push esi
mov dword [esp + 0x28], eax
dec dword [esp + 0x1c]
push edi
call fcn.00402800
add esp, 8
test eax, eax
jl 0x407649
push esi
lea ecx, [esp + 0x70]
push edi
push ecx
call fcn.00406cd0
add esp, 0xc
jmp 0x407657
lea edx, [esp + 0x6c]
push edi
push edx
call fcn.00401f10
add esp, 8
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x3c]
push eax
push edi
push esi
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x7c]
push edx
call fcn.00403550
lea eax, [esp + 0x44]
push eax
push ebx
call fcn.00401f10
add esp, 0x1c
mov dword [esp + 0x10], eax
test eax, eax
jne 0x407a86
lea ecx, [esp + 0x3c]
push ecx
push edi
push esi
push ebx
call fcn.00404cf0
mov ebx, dword [esp + 0x2c]
add esp, 0x10
cmp ebx, 1
jle 0x4077a6
fld qword [0x423b00]
dec ebx
fsub qword [0x41f8a0]
mov ecx, ebx
mov ebp, 1
shl ebp, cl
fstp qword [0x423b00]
mov edx, dword [esi + 4]
inc edx
push edx
lea edi, [ebp + ebp*2]
lea edi, [esp + edi*4 + 0x64]
push edi
call fcn.00401e50
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x407a7f
mov eax, dword [0x423968]
mov ecx, dword [esp + 0x28]
lea edx, [ecx + eax - 0x64de382c]
lea eax, [esp + 0x6c]
push eax
mov dword [esp + 0x2c], edx
dec dword [0x423968]
push edi
call fcn.00401f10
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x407a7f
test ebx, ebx
jle 0x40773a
mov edi, edi
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x3c]
push ecx
push edx
push esi
push edi
push edi
call fcn.00403550
add esp, 0x14
sub ebx, 1
jne 0x407720
mov ecx, dword [esp + 0x1c]
mov ebx, 1
shl ebx, cl
inc ebp
cmp ebp, ebx
jge 0x4077a6
lea edi, [ebp + ebp*2]
lea edi, [esp + edi*4 + 0x60]
mov eax, dword [esi + 4]
inc eax
push eax
push edi
call fcn.00401e50
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x407a7f
lea ecx, [edi - 0xc]
push ecx
push edi
call fcn.00401f10
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x407a7f
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x3c]
push edx
push eax
push esi
lea ecx, [esp + 0x78]
push ecx
push edi
call fcn.00403550
inc ebp
add esp, 0x14
add edi, 0xc
cmp ebp, ebx
jl 0x407752
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x36c]
mov eax, 0x3eba6a9e
sub eax, edx
mov dword [0x425c10], eax
fld dword [0x423988]
fld qword [esp + 0x4c]
mov edx, dword [ecx + 4]
fsub qword [0x4239a8]
xor ebx, ebx
xor ebp, ebp
xor edi, edi
fsub qword [0x41f898]
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], ebx
fucompp
fnstsw ax
fld qword [0x4239a8]
fld1
fsub st(1), st(0)
fxch st(1)
fstp qword [0x4239a8]
test ah, 0x44
jp 0x40786b
fld qword [0x423d08]
mov eax, dword [0x42577c]
fsub qword [0x41f890]
mov ecx, dword [0x425638]
sub ecx, eax
mov dword [esp + 0x54], ecx
fsub qword [0x41f888]
fild dword [esp + 0x54]
fadd dword [esp + 0x48]
inc dword [0x42577c]
fucompp
fnstsw ax
fld qword [0x423d08]
fadd st(1)
fstp qword [0x423d08]
test ah, 0x44
jp 0x40786b
fld qword [esp + 0x58]
fsub st(1)
fstp qword [esp + 0x58]
fld dword [esp + 0x14]
fsubr qword [0x41f880]
fsub qword [esp + 0x58]
fmul dword [0x4239b0]
fstp dword [0x4239b0]
cmp dword [esp + 0x18], 0
jne 0x40788d
mov eax, dword [esp + 0x28]
mov edx, eax
dec eax
mov dword [esp + 0x28], eax
test edx, edx
je 0x4079f9
mov dword [esp + 0x18], 0x20
mov eax, dword [esp + 0x36c]
fld dword [0x4256a8]
mov edx, dword [eax + 8]
fsub qword [0x41f878]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
mov eax, dword [edx + eax*4]
fstp dword [0x4256a8]
dec ecx
shr eax, cl
mov dword [esp + 0x18], ecx
and eax, 1
jne 0x4078c4
test ebx, ebx
je 0x40786b
fld dword [esp + 0x14]
mov ecx, dword [0x423bbc]
fstp st(0)
fld qword [0x423438]
fstp st(0)
fld dword [esp + 0x14]
fadd st(1)
fstp dword [esp + 0x14]
test eax, eax
jne 0x407910
cmp ebx, 1
jne 0x407910
mov eax, dword [esp + 0x20]
fstp st(0)
lea edx, [esp + 0x3c]
push edx
push eax
mov eax, dword [esp + 0x36c]
push esi
push eax
push eax
call fcn.00403550
fld1
add esp, 0x14
jmp 0x40786b
fld qword [0x423978]
mov edx, dword [esp + 0x1c]
fsub st(1)
inc ebp
mov ecx, edx
sub ecx, ebp
fstp qword [0x423978]
shl eax, cl
fld dword [esp + 0x14]
mov ebx, 2
fsub qword [0x423978]
or edi, eax
fstp dword [esp + 0x14]
cmp ebp, edx
jne 0x4079d8
mov ebp, dword [esp + 0x20]
fstp st(0)
test edx, edx
jle 0x40796f
mov ebx, edx
mov eax, dword [esp + 0x364]
lea ecx, [esp + 0x3c]
push ecx
push ebp
push esi
push eax
push eax
call fcn.00403550
add esp, 0x14
sub ebx, 1
jne 0x407952
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x368]
push ebp
lea eax, [edi + edi*2]
push esi
lea ecx, [esp + eax*4 + 0x6c]
push ecx
push edx
call fcn.00403550
fld dword [0x423440]
mov eax, dword [esp + 0x38]
mov ecx, 0xdede61a5
sub ecx, eax
mov dword [esp + 0x5c], ecx
fisub dword [esp + 0x5c]
mov eax, 0xd0ee2f55
add esp, 0x14
xor ebp, ebp
xor edi, edi
mov ebx, 1
fstp dword [0x423440]
mov dx, word [0x4256b0]
fld1
movsx ecx, dx
mov edx, dword [0x4233f8]
sub eax, ecx
imul edx, eax
mov dword [0x4233f8], edx
fld dword [0x425bb8]
fmul dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fld dword [0x425bb8]
fsub st(1)
fstp dword [0x425bb8]
jmp 0x40786b
mov ecx, dword [esp + 0x1c]
fstp st(0)
fld qword [0x423b10]
mov ebx, 1
fmul qword [0x41f870]
rol ebx, cl
fstp qword [0x423b10]
test ebp, ebp
jle 0x407a64
mov dword [esp + 0x2c], ebp
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x364]
lea eax, [esp + 0x3c]
push eax
push ecx
push esi
push ebp
push ebp
call fcn.00403550
add edi, edi
add esp, 0x14
test edi, ebx
je 0x407a5b
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x3c]
push edx
push eax
push esi
lea ecx, [esp + 0x78]
push ecx
push ebp
call fcn.00403550
add esp, 0x14
sub dword [esp + 0x2c], 1
jne 0x407a20
jmp 0x407a6b
mov ebp, dword [esp + 0x364]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x3c]
push edx
push eax
push esi
push ebp
call fcn.00404cf0
add esp, 0x10
mov ebp, dword [esp + 0x374]
mov esi, dword [esp + 0x1c]
lea ecx, [esi - 1]
mov eax, 1
shl eax, cl
mov edx, 1
mov ecx, esi
shl edx, cl
cmp eax, edx
jge 0x407ac3
lea esi, [eax + eax*2]
sub edx, eax
lea esi, [esp + esi*4 + 0x60]
mov edi, edx
lea esp, [esp]
push 0
push esi
call fcn.00401d20
add esp, 8
add esi, 0xc
sub edi, 1
jne 0x407ab0
pop edi
pop ebx
push 0
lea ecx, [esp + 0x38]
lea edx, [esp + 0x68]
test ebp, ebp
je 0x407adf
push ecx
push edx
call fcn.00401d20
add esp, 0xc
jmp 0x407aee
lea eax, [esp + 0x2c]
push eax
push ecx
push edx
call fcn.00401d20
add esp, 0x10
dec word [0x425bc0]
mov ax, word [0x425bc0]
cwde
add eax, 0x90c31152
add dword [esp + 0x1c], eax
mov eax, dword [esp + 8]
pop esi
pop ebp
add esp, 0x350
ret
pop esi
mov eax, 0xfffffffc
pop ebp
add esp, 0x350
ret