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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xf4
mov eax, dword [0x9c48d0]
xor eax, esp
mov dword [esp + 0xf0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 4]
fld dword [eax + 4]
mov eax, dword [edi]
fld dword [eax + 4]
mov esi, ecx
fcompp
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], ecx
fnstsw ax
test ah, 0x41
jne 0x5080f7
mov dword [esp + 0x34], 1
mov ecx, dword [esp + 0x34]
jmp 0x508103
mov dword [esp + 0x28], 1
mov ebx, dword [esp + 0x28]
mov eax, dword [edi + 8]
fld dword [eax + 4]
mov eax, dword [edi + ecx*4]
fld dword [eax + 4]
fcompp
fnstsw ax
test ah, 0x41
jne 0x508126
mov dword [esp + 0x34], 2
mov ecx, dword [esp + 0x34]
jmp 0x508147
mov eax, dword [edi + 8]
fld dword [eax + 4]
mov eax, dword [edi + ebx*4]
fld dword [eax + 4]
fcompp
fnstsw ax
test ah, 5
jp 0x508147
mov dword [esp + 0x28], 2
mov ebx, dword [esp + 0x28]
mov eax, dword [edi + ecx*4]
fld dword [eax + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + ebx*4]
fld dword [eax + 4]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x508547
fild dword [edx + 4]
mov eax, dword [edi + ebx*4]
fstp dword [esp + 0x38]
fld dword [eax + 4]
fld dword [esp + 0x38]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
je 0x508545
lea eax, [edx + 0xc]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
fld dword [eax + 4]
mov eax, dword [esp + 0x2c]
fild dword [eax]
fcompp
fnstsw ax
test ah, 5
jnp 0x508545
mov eax, dword [edx]
xor ebx, ecx
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 8]
xor ebx, 3
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], eax
cmp eax, ecx
jg 0x5081c3
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x10]
mov edx, dword [edx + 8]
add eax, ecx
mov dword [esp + 0x38], edx
cmp edx, eax
jl 0x5081db
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x1c]
fstp dword [esp + 0x20]
fld dword [ecx + 4]
fstp dword [esp + 0x1c]
fld dword [esp + 0x20]
fld dword [esp + 0x1c]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x5081ff
fstp st(0)
jmp 0x508201
fstp st(1)
fstp dword [esp + 0x1c]
sub esp, 8
fld dword [esp + 0x24]
fstp qword [esp]
call fcn.0065e9d0
mov edx, dword [esp + 0x34]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
mov eax, dword [edi + ebx*4]
fstp dword [esp + 0x28]
add esp, 8
fild dword [edx]
fstp dword [esp + 0x1c]
fld dword [eax + 4]
fstp dword [esp + 0x24]
fld dword [esp + 0x1c]
fld dword [esp + 0x24]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x50824c
fstp st(0)
jmp 0x50824e
fstp st(1)
fstp dword [esp + 0x1c]
sub esp, 8
fld dword [esp + 0x24]
fstp qword [esp]
call fcn.0065e9d0
mov ecx, dword [esp + 0x3c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
mov eax, dword [edi + ecx*4]
fstp dword [esp + 0x24]
add esp, 4
fld dword [esp + 0x24]
lea edx, [esp + 0xa4]
fstp dword [esp]
push edx
mov edx, dword [esp + 0x30]
mov edx, dword [edi + edx*4]
sub esi, 2
mov ecx, esi
mov dword [esp + 0x2c], eax
call fcn.00507ff0
fld dword [esp + 0x24]
fld dword [esp + 0x28]
add esp, 8
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x50839b
mov edx, dword [edi + ebx*4]
push ecx
lea eax, [esp + 0x4c]
fstp dword [esp]
push eax
mov eax, dword [esp + 0x2c]
mov ecx, esi
call fcn.00507ff0
fld dword [esp + 0x28]
add esp, 8
mov eax, dword [esp + 0x38]
fld dword [esp + 0x48]
push esi
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0xb0]
push edx
push eax
push ecx
call fcn.0065d070
fld dword [esp + 0xb4]
push eax
call fcn.0065d070
mov ebx, eax
call fcn.0065d070
mov edx, dword [esp + 0x48]
push edx
mov ecx, ebx
mov edx, eax
call fcn.00507e50
fld dword [esp + 0xc0]
fadd dword [esp + 0xbc]
add esp, 0x1c
xor eax, eax
fstp dword [esp + 0xa0]
test esi, esi
jle 0x508353
jmp 0x508340
mov ecx, dword [esp + eax*4 + 0xd0]
add dword [esp + eax*4 + 0xa8], ecx
inc eax
cmp eax, esi
jl 0x508340
fld dword [esp + 0x4c]
xor eax, eax
fadd dword [esp + 0x48]
fstp dword [esp + 0x48]
test esi, esi
jle 0x508372
mov edx, dword [esp + eax*4 + 0x78]
add dword [esp + eax*4 + 0x50], edx
inc eax
cmp eax, esi
jl 0x508365
fld dword [esp + 0x20]
fadd qword [0x9ad778]
fstp dword [esp + 0x20]
fld dword [esp + 0x1c]
fld dword [esp + 0x20]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jnp 0x5082d3
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x2c]
fstp st(0)
fild dword [eax]
mov ecx, dword [esp + 0x28]
mov edx, dword [edi + ecx*4]
fstp dword [esp + 0x40]
fld dword [edx + 4]
fstp dword [esp + 0x24]
fld dword [esp + 0x40]
fld dword [esp + 0x24]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x5083ca
fstp st(0)
jmp 0x5083cc
fstp st(1)
fstp dword [esp + 0x2c]
sub esp, 8
fld dword [esp + 0x34]
fstp qword [esp]
call fcn.0065e9d0
fstp dword [esp + 0x48]
add esp, 8
fld dword [esp + 0x40]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fld dword [esp + 0x20]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x508545
mov edx, dword [esp + 0x28]
mov edx, dword [edi + edx*4]
push ecx
lea eax, [esp + 0x4c]
fstp dword [esp]
push eax
mov eax, dword [edi + ebx*4]
mov ecx, esi
call fcn.00507ff0
fld dword [esp + 0x50]
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
add esp, 8
push esi
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0xb0]
push ecx
push edi
push edx
call fcn.0065d070
fld dword [esp + 0xb4]
push eax
call fcn.0065d070
fld dword [esp + 0x38]
mov ebx, eax
call fcn.0065d070
mov ecx, dword [esp + 0x48]
push ecx
mov ecx, ebx
mov edx, eax
call fcn.00507e50
fld dword [esp + 0x3c]
fadd qword [0x9ad778]
add esp, 0x1c
fstp dword [esp + 0x20]
fld dword [esp + 0x1c]
fst qword [esp + 0x40]
fld dword [esp + 0x20]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 1
je 0x508545
fld dword [esp + 0xa4]
xor eax, eax
fadd dword [esp + 0xa0]
fstp dword [esp + 0xa0]
test esi, esi
jle 0x5084c3
mov edx, dword [esp + eax*4 + 0xd0]
add dword [esp + eax*4 + 0xa8], edx
inc eax
cmp eax, esi
jl 0x5084b0
fld dword [esp + 0x4c]
xor eax, eax
fadd dword [esp + 0x48]
fstp dword [esp + 0x48]
test esi, esi
jle 0x5084e2
mov ecx, dword [esp + eax*4 + 0x78]
add dword [esp + eax*4 + 0x50], ecx
inc eax
cmp eax, esi
jl 0x5084d5
mov ecx, dword [esp + 0x3c]
fld dword [esp + 0x48]
push esi
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0xb0]
push eax
push edi
push ecx
call fcn.0065d070
fld dword [esp + 0xb4]
push eax
call fcn.0065d070
mov ebx, eax
call fcn.0065d070
mov edx, dword [esp + 0x48]
push edx
mov ecx, ebx
mov edx, eax
call fcn.00507e50
fld dword [esp + 0x3c]
fadd qword [0x9ad778]
add esp, 0x1c
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fcom qword [esp + 0x40]
fnstsw ax
test ah, 1
jne 0x508495
fstp st(0)
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0065865c
mov esp, ebp
pop ebp
ret