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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5e4728
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x638190]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [ebp + 0xc]
fld qword [0x601fa8]
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 0x5082ff
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 0x507ff6
mov ecx, dword [eax + 4]
cmp ecx, dword [eax - 4]
je 0x5082e7
push eax
push ebx
lea ecx, [esp + 0x78]
call fcn.004f8540
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.004f8e90
test eax, eax
je 0x5081dd
fldz
fld qword [esp + 0x64]
fcom st(1)
fnstsw ax
fld qword [esp + 0x44]
test ah, 1
jne 0x50809c
fld1
fcom st(2)
fnstsw ax
test ah, 1
jne 0x5080a2
fxch st(1)
fcom st(3)
fnstsw ax
test ah, 1
jne 0x5080a6
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x5080a8
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 [0x5f3df0]
test ah, 1
jne 0x50834b
fadd st(1), st(0)
jmp 0x50834d
fstp st(0)
fld1
jmp 0x5080a8
fstp st(1)
jmp 0x5080a8
fstp st(0)
fxch st(1)
fcom st(2)
fnstsw ax
test ah, 5
jp 0x508110
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.00507db0
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fcom qword [esp + 0x2c]
fnstsw ax
test ah, 5
jp 0x50816e
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 0x508170
fcompp
fnstsw ax
test ah, 0x41
jne 0x508172
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.00507db0
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fcom qword [esp + 0x2c]
fnstsw ax
test ah, 5
jp 0x50816e
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 0x508170
fstp st(0)
fldz
fcomp qword [esp + 0x44]
fnstsw ax
test ah, 0x41
jne 0x5082cb
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.00507db0
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fcom qword [esp + 0x2c]
fnstsw ax
test ah, 5
jp 0x5082c9
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 0x5082cb
lea eax, [esp + 0x24]
push eax
push ebx
mov ecx, edi
call fcn.00507db0
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fcom qword [esp + 0x2c]
fnstsw ax
test ah, 5
jp 0x50821f
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 0x508221
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.00507db0
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fcom qword [esp + 0x2c]
fnstsw ax
test ah, 5
jp 0x508274
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 0x508276
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.00507db0
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fcom qword [esp + 0x2c]
fnstsw ax
test ah, 5
jp 0x5082c9
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 0x5082cb
fstp st(0)
lea ecx, [esp + 0x70]
mov dword [esp + 0x90], 0xffffffff
call fcn.004f85b0
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 0x507fe0
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.00507db0
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fld qword [esp + 0x2c]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x5083af
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 0x5083b1
fsub st(1), st(0)
fxch st(1)
mov ebx, edx
call fcn.005c3ce0
fxch st(2)
fcomp st(1)
add ebx, eax
mov dword [esi], ebx
fnstsw ax
test ah, 0x41
jp 0x508369
faddp st(1)
jmp 0x50836b
fsubrp st(1)
mov edi, dword [edi + 8]
call fcn.005c3ce0
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.004f85b0
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 [0x5f3df0]
call fcn.005c3ce0
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