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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5dcee8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x62fda0]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [ebp + 0xc]
fld qword [0x5faa68]
mov esi, dword [ebp + 0x10]
fstp qword [esp + 0x2c]
dec edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], edx
test edx, edx
jle 0x503d1f
mov eax, dword [ebp + 8]
add eax, 8
mov dword [esp + 0x14], eax
mov ecx, dword [eax]
cmp ecx, dword [eax - 8]
lea ebx, [eax - 8]
jne 0x503a16
mov ecx, dword [eax + 4]
cmp ecx, dword [eax - 4]
je 0x503d07
push eax
push ebx
lea ecx, [esp + 0x78]
call fcn.004f5440
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x78]
push ecx
mov ecx, edi
mov dword [esp + 0x9c], 0
call fcn.004f5db0
test eax, eax
je 0x503bfd
fldz
fld qword [esp + 0x64]
fcom st(1)
fnstsw ax
fld qword [esp + 0x44]
test ah, 1
jne 0x503abc
fld1
fcom st(2)
fnstsw ax
test ah, 1
jne 0x503ac2
fxch st(1)
fcom st(3)
fnstsw ax
test ah, 1
jne 0x503ac6
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x503ac8
mov eax, dword [edi + 0xc]
fstp st(0)
mov edx, dword [edi + 4]
mov ecx, dword [edi + 0x10]
mov ebx, dword [edi + 8]
sub eax, edx
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
sub ecx, ebx
mov dword [esp + 0x20], ecx
fmul st(1)
fild dword [esp + 0x20]
fmulp st(2)
fcom st(2)
fnstsw ax
fld qword [0x5ecc78]
test ah, 1
jne 0x503d6b
fadd st(1), st(0)
jmp 0x503d6d
fstp st(0)
fld1
jmp 0x503ac8
fstp st(1)
jmp 0x503ac8
fstp st(0)
fxch st(1)
fcom st(2)
fnstsw ax
test ah, 5
jp 0x503b30
mov edx, dword [edi + 4]
fstp st(0)
mov eax, dword [edi + 8]
fstp st(0)
lea ecx, [esp + 0x24]
fstp st(0)
mov dword [esp + 0x34], edx
push ecx
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x78]
mov dword [esp + 0x40], eax
call fcn.005037d0
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fcom qword [esp + 0x2c]
fnstsw ax
test ah, 5
jp 0x503b8e
mov eax, dword [edi + 4]
fstp qword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esi], eax
mov eax, dword [edi + 8]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
jmp 0x503b90
fcompp
fnstsw ax
test ah, 0x41
jne 0x503b92
mov eax, dword [edi + 0xc]
fstp st(0)
mov ecx, dword [edi + 0x10]
lea edx, [esp + 0x24]
mov dword [esp + 0x3c], eax
push edx
lea eax, [esp + 0x40]
mov dword [esp + 0x44], ecx
push eax
lea ecx, [esp + 0x78]
call fcn.005037d0
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fcom qword [esp + 0x2c]
fnstsw ax
test ah, 5
jp 0x503b8e
mov ecx, dword [edi + 0xc]
fstp qword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov dword [esi], ecx
mov eax, dword [edi + 0x10]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
jmp 0x503b90
fstp st(0)
fldz
fcomp qword [esp + 0x44]
fnstsw ax
test ah, 0x41
jne 0x503ceb
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x4c], ecx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, edi
mov dword [esp + 0x58], edx
call fcn.005037d0
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fcom qword [esp + 0x2c]
fnstsw ax
test ah, 5
jp 0x503ce9
mov edx, dword [esp + 0x24]
fstp qword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x74]
mov dword [esi], edx
mov edx, dword [esp + 0x78]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
jmp 0x503ceb
lea eax, [esp + 0x24]
push eax
push ebx
mov ecx, edi
call fcn.005037d0
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fcom qword [esp + 0x2c]
fnstsw ax
test ah, 5
jp 0x503c3f
mov ecx, dword [esp + 0x24]
fstp qword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov dword [esi], ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + 4], edx
mov eax, dword [ebx]
mov dword [esi + 8], eax
mov eax, dword [ecx - 4]
mov dword [esi + 0xc], eax
jmp 0x503c41
fstp st(0)
mov edx, dword [edi + 4]
mov eax, dword [edi + 8]
lea ecx, [esp + 0x24]
mov dword [esp + 0x54], edx
push ecx
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x78]
mov dword [esp + 0x60], eax
call fcn.005037d0
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fcom qword [esp + 0x2c]
fnstsw ax
test ah, 5
jp 0x503c94
mov eax, dword [edi + 4]
fstp qword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esi], eax
mov eax, dword [edi + 8]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
jmp 0x503c96
fstp st(0)
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
lea edx, [esp + 0x24]
mov dword [esp + 0x5c], eax
push edx
lea eax, [esp + 0x60]
mov dword [esp + 0x64], ecx
push eax
lea ecx, [esp + 0x78]
call fcn.005037d0
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fcom qword [esp + 0x2c]
fnstsw ax
test ah, 5
jp 0x503ce9
mov ecx, dword [edi + 0xc]
fstp qword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov dword [esi], ecx
mov eax, dword [edi + 0x10]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
jmp 0x503ceb
fstp st(0)
lea ecx, [esp + 0x70]
mov dword [esp + 0x90], 0xffffffff
call fcn.004f54b0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc ecx
add eax, 8
cmp ecx, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
jl 0x503a00
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x24]
lea ebx, [ecx + edx*8]
push eax
push ebx
mov ecx, edi
call fcn.005037d0
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fld qword [esp + 0x2c]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x503dcf
mov ecx, dword [esp + 0x24]
fstp st(0)
mov edx, dword [esp + 0x28]
mov dword [esi], ecx
mov dword [esi + 4], edx
mov eax, dword [ebx]
mov dword [esi + 8], eax
mov ecx, dword [ebx + 4]
mov dword [esi + 0xc], ecx
jmp 0x503dd1
fsub st(1), st(0)
fxch st(1)
mov ebx, edx
call fcn.005bd3f0
fxch st(2)
fcomp st(1)
add ebx, eax
mov dword [esi], ebx
fnstsw ax
test ah, 0x41
jp 0x503d89
faddp st(1)
jmp 0x503d8b
fsubrp st(1)
mov edi, dword [edi + 8]
call fcn.005bd3f0
add eax, edi
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
mov eax, dword [esi + 4]
lea ecx, [esp + 0x70]
mov dword [esi + 0xc], eax
mov dword [esp + 0x90], 0xffffffff
call fcn.004f54b0
xor eax, eax
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
fstp st(1)
fadd qword [0x5ecc78]
call fcn.005bd3f0
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc