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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5df0d8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x632da0]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [ebp + 0xc]
fld qword [0x5fcf90]
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 0x505aef
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 0x5057e6
mov ecx, dword [eax + 4]
cmp ecx, dword [eax - 4]
je 0x505ad7
push eax
push ebx
lea ecx, [esp + 0x78]
call fcn.004f71b0
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.004f7bc0
test eax, eax
je 0x5059cd
fldz
fld qword [esp + 0x64]
fcom st(1)
fnstsw ax
fld qword [esp + 0x44]
test ah, 1
jne 0x50588c
fld1
fcom st(2)
fnstsw ax
test ah, 1
jne 0x505892
fxch st(1)
fcom st(3)
fnstsw ax
test ah, 1
jne 0x505896
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x505898
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 [0x5eede8]
test ah, 1
jne 0x505b3b
fadd st(1), st(0)
jmp 0x505b3d
fstp st(0)
fld1
jmp 0x505898
fstp st(1)
jmp 0x505898
fstp st(0)
fxch st(1)
fcom st(2)
fnstsw ax
test ah, 5
jp 0x505900
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.005055a0
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fcom qword [esp + 0x2c]
fnstsw ax
test ah, 5
jp 0x50595e
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 0x505960
fcompp
fnstsw ax
test ah, 0x41
jne 0x505962
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.005055a0
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fcom qword [esp + 0x2c]
fnstsw ax
test ah, 5
jp 0x50595e
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 0x505960
fstp st(0)
fldz
fcomp qword [esp + 0x44]
fnstsw ax
test ah, 0x41
jne 0x505abb
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.005055a0
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fcom qword [esp + 0x2c]
fnstsw ax
test ah, 5
jp 0x505ab9
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 0x505abb
lea eax, [esp + 0x24]
push eax
push ebx
mov ecx, edi
call fcn.005055a0
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fcom qword [esp + 0x2c]
fnstsw ax
test ah, 5
jp 0x505a0f
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 0x505a11
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.005055a0
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fcom qword [esp + 0x2c]
fnstsw ax
test ah, 5
jp 0x505a64
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 0x505a66
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.005055a0
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fcom qword [esp + 0x2c]
fnstsw ax
test ah, 5
jp 0x505ab9
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 0x505abb
fstp st(0)
lea ecx, [esp + 0x70]
mov dword [esp + 0x90], 0xffffffff
call fcn.004f7220
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 0x5057d0
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.005055a0
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fld qword [esp + 0x2c]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x505b9f
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 0x505ba1
fsub st(1), st(0)
fxch st(1)
mov ebx, edx
call fcn.005bf3a0
fxch st(2)
fcomp st(1)
add ebx, eax
mov dword [esi], ebx
fnstsw ax
test ah, 0x41
jp 0x505b59
faddp st(1)
jmp 0x505b5b
fsubrp st(1)
mov edi, dword [edi + 8]
call fcn.005bf3a0
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.004f7220
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 [0x5eede8]
call fcn.005bf3a0
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