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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
cmp dword [ecx + 0x484], 0
push ebx
mov ebx, dword [eax]
push esi
push edi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x5c], 0
jle 0x4082cf
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
add ecx, 0x888
sub edx, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x78], edx
mov eax, dword [ecx - 0x400]
mov edx, dword [ebp + 0x28]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
mov dword [esp + 0x58], eax
jne 0x407f89
mov eax, dword [ecx]
cmp dword [edx + eax*4], 0
je 0x4082a9
mov eax, dword [ecx - 0x400]
mov ecx, dword [ecx]
mov edx, dword [ebp + 0x18]
add eax, eax
add eax, eax
mov edi, dword [eax + edx]
add ecx, ecx
add ecx, ecx
mov esi, dword [ecx + edx]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x68], edi
lea edi, [edi + edx*4]
lea edx, [esi + edx*4]
mov dword [esp + 0x6c], edx
mov edx, dword [ebp + 0x24]
mov eax, dword [eax + edx]
mov ecx, dword [ecx + edx]
mov edx, dword [ebp + 8]
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + edx*4 + 0xfc]
fld qword [eax*8 + 0x56bc50]
mov eax, dword [ecx + edx*4 + 0x138]
fstp dword [esp + 0x70]
mov dword [esp + 0x38], edi
fld qword [eax*8 + 0x56bc50]
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + 4]
fstp dword [esp + 0x44]
cmp dword [eax + 0x1f8], 0
mov dword [esp + 0x48], esi
je 0x40800c
mov ebx, dword [eax + 0x200]
mov eax, dword [eax]
mov dword [esp + 0x18], ebx
mov ebx, eax
shl ebx, 4
sub ebx, eax
add ebx, edx
cmp dword [esp + 0x40], 0x3e8
mov eax, dword [ecx + ebx*4 + 0x84]
mov ebx, dword [ebp + 0x28]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x58]
mov dword [eax], 1
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov dword [ebx + eax*4], 1
jle 0x40805c
mov ecx, dword [ecx + edx*4 + 0x138]
fld qword [ecx*8 + 0x56bc98]
fstp dword [esp + 0x44]
mov ebx, dword [edi]
xor edx, edx
test ebx, ebx
mov dword [esp + 0x58], edx
jle 0x4082a5
xor ecx, ecx
mov dword [esp + 0x3c], ecx
cmp dword [esp + 0x18], 0
fldz
fstp dword [esp + 0x1c]
jle 0x4081c7
mov eax, dword [esp + 0x60]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x34], ecx
lea ebx, [ecx + esi]
mov ecx, dword [esp + 0x64]
sub eax, ecx
mov dword [esp + 0x7c], eax
mov eax, ecx
mov ecx, dword [esp + 0x6c]
sub eax, esi
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x68]
sub eax, esi
sub edi, esi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
sub ecx, esi
mov dword [esp + 0x4c], edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x50], eax
cmp edx, dword [ebp + 0x2c]
jge 0x408301
cmp edx, dword [esp + 0x54]
jl 0x408102
mov edx, dword [esp + 0x28]
fld dword [edx + ebx]
fabs
fld dword [esp + 0x44]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x408100
fld dword [ebx]
fabs
fcompp
fnstsw ax
test ah, 5
jnp 0x40812f
jmp 0x408102
fstp st(0)
mov eax, dword [esp + 0x28]
fld dword [eax + ebx]
fabs
fld dword [esp + 0x70]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x4082d6
fld dword [ebx]
fabs
fcompp
fnstsw ax
test ah, 5
jp 0x4082d8
mov edx, dword [esp + 0x74]
add ecx, ebx
push ecx
mov ecx, dword [esp + 0x28]
lea eax, [edx + ebx]
mov edx, dword [esp + 0x7c]
mov ecx, dword [ecx + edx]
mov edx, dword [esp + 0x38]
fld dword [ecx + edx]
add edi, ebx
push edi
mov edi, dword [eax]
push ecx
mov ecx, dword [esp + 0x88]
fstp dword [esp]
mov esi, dword [eax + ecx]
call fcn.00407640
mov edx, dword [esp + 0x38]
fld dword [edx + ebx]
lea esi, [edx + ebx]
fadd qword [0x5302a0]
add esp, 4
fstp qword [esp]
call fcn.0050ac90
fcomp qword [0x530360]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
add esp, 8
fnstsw ax
test ah, 0x44
jp 0x4081a2
fld dword [esi]
fmul st(0), st(0)
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
add dword [esp + 0x34], 4
add edx, 1
add ebx, 4
sub dword [esp + 0x50], 1
mov dword [esp + 0x4c], edx
jne 0x4080ca
mov edi, dword [ebp + 0x10]
mov ecx, dword [edi + 4]
cmp dword [ecx + 0x1f8], 0
je 0x40827f
cmp dword [esp + 0x18], 0
mov dword [esp + 0x50], 0
jle 0x40827f
mov ebx, dword [esp + 0x3c]
mov edi, edi
fld dword [esp + 0x1c]
mov edx, dword [edi + 4]
fcomp qword [edx + 0x208]
fnstsw ax
test ah, 1
jne 0x40827f
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edi, dword [ebx + ecx]
cmp edi, dword [ebp + 0x2c]
jge 0x408264
cmp edi, dword [esp + 0x54]
jl 0x408264
mov edx, dword [esp + 0x38]
fld dword [edx + edi*4]
sub esp, 8
fadd qword [0x5302a0]
fstp qword [esp]
call fcn.0050ac90
fcomp qword [0x530360]
add esp, 8
fnstsw ax
test ah, 0x44
jp 0x408264
push ecx
mov ecx, dword [esp + 0x3c]
fld dword [ecx + edi*4]
fstp dword [esp]
call fcn.004044b0
fstp dword [ecx + edi*4]
add esp, 4
fld dword [esp + 0x1c]
fsub qword [0x54c9d8]
fstp dword [esp + 0x1c]
mov eax, dword [esp + 0x50]
mov edi, dword [ebp + 0x10]
add eax, 1
add ebx, 4
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x50], eax
jl 0x4081f0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x3c]
mov ebx, dword [edi]
add edx, eax
add eax, eax
add eax, eax
add ecx, eax
cmp edx, ebx
mov dword [esp + 0x58], edx
mov dword [esp + 0x3c], ecx
jl 0x408072
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x5c]
mov edx, dword [ebp + 0x14]
add dword [esp + 0x24], 4
add eax, 1
add ecx, 4
cmp eax, dword [edx + 0x484]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x20], ecx
jl 0x407f67
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fstp st(0)
fld dword [ebx]
mov eax, dword [esp + 0x28]
sub esp, 8
fstp dword [esp + 4]
add ecx, ebx
fld dword [eax + ebx]
lea edx, [edi + ebx]
fstp dword [esp]
call fcn.00407570
mov ecx, dword [esp + 0x38]
add esp, 8
jmp 0x4081a6
fldz
fst dword [edi + ebx]
fstp dword [ecx + ebx]
jmp 0x4081a6