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

Disassembly:
sub esp, 0x58
mov eax, dword [esp + 0x5c]
fld dword [eax]
push ebp
push edi
mov edi, ecx
mov ecx, dword [esp + 0x68]
fsub dword [ecx]
push ecx
lea edx, [esp + 0xc]
mov ecx, edi
fsub dword [0x740c84]
lea ebp, [edi + 0x190]
mov dword [esp + 0xc], 0
fstp dword [esp]
push edx
call fcn.00506f20
test ebp, ebp
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
je 0x5083f2
mov eax, dword [ebp + 4]
test eax, eax
jle 0x5083f2
push ebx
mov ebx, dword [esp + 0xc]
cmp ebx, eax
push esi
jge 0x5083f0
jmp 0x508210
mov eax, dword [0x7a39fc]
mov edx, dword [ebp]
mov ecx, dword [eax + 8]
mov eax, dword [edx + ebx*4]
push eax
call fcn.004ae770
mov esi, eax
inc ebx
test esi, esi
je 0x5083e7
lea ecx, [esi + 0x90]
mov edx, dword [ecx]
mov dword [esp + 0x14], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x18], eax
mov ecx, dword [ecx + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x74]
fld dword [ecx]
fadd dword [0x740c84]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
jnp 0x5083f0
mov edx, dword [esp + 0x70]
fld dword [edx + 4]
fsub dword [0x740c84]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 1
je 0x5083e7
fld dword [ecx + 4]
fadd dword [0x740c84]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 0x41
jnp 0x5083e7
mov eax, dword [esi + 0x340]
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.004be5e0
test eax, eax
jne 0x5083e7
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x508344
mov ecx, dword [0x7a39fc]
mov edx, dword [esp + 0x78]
mov ecx, dword [ecx + 8]
push edx
call fcn.004ae7c0
test eax, eax
je 0x508302
push 0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x4c]
push edx
mov ecx, eax
call fcn.00589240
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x24], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x28], eax
jmp 0x5083b2
mov ecx, dword [0x7a39fc]
mov edx, dword [esp + 0x78]
mov ecx, dword [ecx + 8]
push edx
call fcn.004ae7a0
test eax, eax
je 0x5083b2
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x54]
push edx
mov ecx, eax
call fcn.00584c20
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x24], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x28], eax
jmp 0x5083b2
mov eax, dword [esp + 0x6c]
fld dword [esp + 0x14]
fsub dword [eax]
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x60]
fstp dword [esp + 0x3c]
push edx
fld dword [esp + 0x20]
fsub dword [eax + 4]
fstp dword [esp + 0x44]
fld dword [esp + 0x24]
fsub dword [eax + 8]
fstp dword [esp + 0x48]
call fcn.004ab180
fld dword [esp + 0x1c]
fadd dword [eax]
add esp, 8
fstp dword [esp + 0x2c]
fld dword [esp + 0x18]
fadd dword [eax + 4]
fstp dword [esp + 0x30]
fld dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
fadd dword [eax + 8]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
fstp dword [esp + 0x34]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x28], edx
mov eax, dword [esi + 0x340]
lea ecx, [esp + 0x20]
push ecx
push 0
push eax
push 0x41200000
lea edx, [esp + 0x30]
push edx
mov ecx, edi
call fcn.004be860
test eax, eax
je 0x5083e7
push 0
push 1
push 1
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.004cd1a0
cmp ebx, dword [ebp + 4]
jl 0x508210
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x58
ret 0x14