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

Disassembly:
sub esp, 0x6c
push ebx
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xec]
test eax, eax
je 0x407f85
lea edi, [esi + 0x3c]
mov ebx, 0x10
mov eax, dword [edi]
sub eax, ebp
mov dword [edi], eax
jns 0x407f7f
call fcn.0046544a
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
mov eax, 0x80010003
shl ecx, 2
imul ecx
add edx, ecx
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 0x14]
mov dword [edi], ecx
add edi, 4
dec ebx
jne 0x407f4f
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x4080ea
mov ecx, esi
call fcn.00408e10
mov edi, dword [esi + 0xa0]
mov ecx, dword [esi + 0xd0]
add edi, ebp
mov dword [esi + 0xa0], edi
mov eax, edi
xor edi, edi
cmp ecx, edi
je 0x407fc7
cdq
idiv dword [esi + 0xa4]
cmp ecx, edi
mov dword [esi + 0xa0], edx
jne 0x408026
mov edx, dword [esi + 0xa0]
mov eax, dword [esi + 0xa4]
add edx, ebp
cmp edx, eax
jl 0x408026
mov eax, dword [esi + 0x98]
mov ecx, dword [esi + 0x9c]
mov edx, dword [esi + 0xb8]
mov dword [esi + 0x88], eax
mov eax, dword [esi + 0xbc]
mov dword [esi + 0x8c], ecx
mov ecx, dword [esi + 0xc8]
mov dword [esi + 0xa8], edx
mov dword [esi + 0xac], eax
mov dword [esi + 0xc0], ecx
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa0], edi
jmp 0x4080e3
mov ebx, dword [esi + 0xa4]
mov edi, dword [esi + 0xa0]
mov eax, dword [esi + 0x90]
mov edx, dword [esi + 0x98]
mov ecx, ebx
imul edx, edi
sub ecx, edi
mov dword [esp + 0x24], edi
imul eax, ecx
add eax, edx
mov dword [esp + 0x80], ecx
cdq
fild dword [esp + 0x80]
idiv ebx
fild dword [esp + 0x24]
mov edx, dword [esi + 0x9c]
mov dword [esp + 0x20], ebx
imul edx, edi
fild dword [esp + 0x20]
fld st(1)
fmul dword [esi + 0xb8]
fld st(3)
fmul dword [esi + 0xb0]
faddp st(1)
fdiv st(1)
mov dword [esi + 0x88], eax
mov eax, dword [esi + 0x94]
imul eax, ecx
fstp dword [esi + 0xa8]
fxch st(1)
fmul dword [esi + 0xbc]
fxch st(2)
fmul dword [esi + 0xb4]
faddp st(2)
fxch st(1)
fdiv st(1)
add eax, edx
cdq
idiv ebx
fstp dword [esi + 0xac]
fstp st(0)
mov dword [esi + 0x8c], eax
mov eax, dword [esi + 0xc4]
imul eax, ecx
mov ecx, dword [esi + 0xc8]
imul ecx, edi
add eax, ecx
cdq
idiv ebx
mov dword [esi + 0xc0], eax
mov ecx, esi
call fcn.00408e10
mov edx, dword [esi + 0xe8]
mov ecx, dword [esi + 0xec]
add edx, ebp
test ecx, ecx
mov dword [esi + 0xe8], edx
mov eax, edx
je 0x408420
sub eax, ebp
mov ecx, esi
push eax
call fcn.00408430
mov edx, dword [esi + 0xe8]
mov ecx, esi
push edx
mov dword [esp + 0x40], eax
call fcn.00408430
fild dword [esi + 0x34]
mov dword [esp + 0x40], eax
fmul dword [esi + 0xa8]
fmul dword [0x4996ec]
call fcn.00464e6c
fild dword [esi + 0x38]
mov ecx, dword [esi + 0x88]
sub ecx, eax
fmul dword [esi + 0xac]
mov dword [esp + 0x34], ecx
fmul dword [0x4996ec]
call fcn.00464e6c
mov ecx, dword [esi + 0x8c]
mov dword [esp + 0x24], 2
sub ecx, eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x20], eax
mov ecx, dword [ecx]
mov dword [esp + 0x30], ecx
mov edx, dword [ecx + 0xc]
test edx, edx
jle 0x408406
mov edx, dword [ecx + 8]
mov ebx, dword [edx + eax*4]
mov dword [esp + 0x1c], ebx
mov eax, dword [ebx + 0x24]
test eax, eax
jne 0x4081b4
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
cmp ecx, eax
je 0x4083ee
mov ecx, dword [esi + 0xcc]
mov eax, dword [ebx]
and ecx, 1
je 0x4081c8
mov edx, dword [esi + 0x34]
sub edx, eax
jmp 0x4081cd
mov edx, dword [ebx + 0x10]
add edx, eax
test ecx, ecx
mov dword [esp + 0x10], edx
je 0x4081e5
mov ecx, dword [esi + 0x34]
mov edi, dword [ebx + 0x10]
sub ecx, edi
sub ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x4081e9
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul dword [esi + 0xa8]
fadd dword [0x4996ec]
call fcn.00464e6c
mov edx, dword [ebx + 4]
mov edi, eax
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fmul dword [esi + 0xac]
fadd dword [0x4996ec]
call fcn.00464e6c
fild dword [esp + 0x10]
mov ebp, eax
fmul dword [esi + 0xa8]
fadd dword [0x4996ec]
call fcn.00464e6c
mov edx, dword [esp + 0x14]
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x14]
add ecx, edx
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
fmul dword [esi + 0xac]
fadd dword [0x4996ec]
call fcn.00464e6c
mov cl, byte [esi + 0xcc]
mov dword [esp + 0x78], eax
test cl, 2
je 0x4083a1
fild dword [esi + 0x34]
fmul dword [esi + 0xa8]
fstp dword [esp + 0x1c]
fild dword [esi + 0x38]
fmul dword [esi + 0xac]
fstp dword [esp + 0x14]
fild dword [esp + 0x38]
fld dword [esp + 0x14]
call fcn.0046547a
fsub dword [esp + 0x14]
fst dword [esp + 0x10]
fild dword [0x4aa0d4]
fxch st(1)
fcompp
fnstsw ax
test ah, 1
je 0x4083ee
fld dword [esp + 0x1c]
fstp qword [esp + 0x28]
fild dword [esp + 0x34]
fld qword [esp + 0x28]
call fcn.0046547a
fsub qword [esp + 0x28]
fstp dword [esp + 0x28]
mov edx, dword [esp + 0x28]
fild dword [0x4aa0d0]
mov dword [esp + 0x80], edx
fcomp dword [esp + 0x80]
fnstsw ax
test ah, 0x41
jne 0x40837e
fld dword [esp + 0x10]
call fcn.00464e6c
mov dword [esp + 0x48], eax
fld dword [esp + 0x80]
call fcn.00464e6c
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x78]
push edx
push eax
lea eax, [esp + 0x54]
mov dword [esp + 0x54], edi
push eax
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ecx
call dword [0x4994c4]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x64]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x68]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0x7c]
call fcn.00402ee0
fld dword [esp + 0x80]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x80]
fild dword [0x4aa0d0]
fcomp dword [esp + 0x80]
fnstsw ax
test ah, 0x41
je 0x4082ff
fld dword [esp + 0x10]
fadd dword [esp + 0x14]
fstp dword [esp + 0x10]
fild dword [0x4aa0d4]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 0x41
je 0x4082cf
jmp 0x4083ee
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x68], eax
push ecx
lea eax, [esp + 0x60]
push edx
push eax
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebx
call dword [0x4994c4]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x74]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x78]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0x7c]
call fcn.00402ee0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
inc eax
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x20], eax
cmp eax, edx
jl 0x408193
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
add ecx, 4
dec eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], eax
jne 0x408178
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 4