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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52ebc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x34], 0x5315e0
mov dword [esp + 0x38], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], edi
mov ecx, dword [ebp + 0x30]
mov dword [esp + 0x80], edi
call fcn.0047b3d0
mov esi, eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x18], esi
call fcn.00484410
lea ecx, [esp + 0x60]
call fcn.00484410
mov ebx, dword [ebp + 0x2c]
xor eax, eax
cmp esi, edi
mov dword [esp + 0x14], eax
jle 0x50513f
mov ecx, dword [ebp + 0x30]
push eax
call fcn.0047b3e0
mov esi, eax
mov ecx, esi
mov dword [esp + 0x1c], esi
call fcn.004834e0
cmp eax, 7
je 0x504ffe
mov ecx, esi
call fcn.004834e0
cmp eax, 8
jne 0x505128
add esi, 0x18
mov ecx, 6
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x4c]
push ecx
push edx
push eax
mov ecx, ebx
call fcn.00488c50
fcomp qword [0x534060]
fnstsw ax
test ah, 1
je 0x505089
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.00488ca0
fst qword [esp + 0xc]
fcomp qword [0x531cf0]
fnstsw ax
test ah, 1
jne 0x505089
fld qword [esp + 0xc]
fcomp qword [0x531798]
fnstsw ax
test ah, 0x41
je 0x505089
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x3c]
push edx
push eax
push ecx
lea ecx, [esp + 0x40]
call fcn.00404a50
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.004834e0
cmp eax, 8
jne 0x505128
add esi, 0x78
mov ecx, 6
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x4c]
push eax
push ecx
push edx
mov ecx, ebx
call fcn.00488c50
fcomp qword [0x534060]
fnstsw ax
test ah, 1
je 0x505128
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x4c]
push ecx
push edx
push eax
mov ecx, ebx
call fcn.00488ca0
fst qword [esp + 0x1c]
fcomp qword [0x531cf0]
fnstsw ax
test ah, 1
jne 0x505128
fld qword [esp + 0x1c]
fcomp qword [0x531798]
fnstsw ax
test ah, 0x41
je 0x505128
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
push ecx
push edx
push eax
lea ecx, [esp + 0x40]
call fcn.00404a50
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x504fd3
xor edi, edi
mov eax, dword [esp + 0x3c]
cmp eax, edi
jne 0x5051cd
fld qword [ebx + 0x18]
fadd qword [ebx]
mov esi, dword [ebp + 0x34]
push 0xffffffffffffffff
mov ecx, dword [esi + 8]
fstp qword [esp + 0x28]
fld qword [ebx + 0x20]
fadd qword [ebx + 8]
inc ecx
push ecx
mov ecx, esi
fstp qword [esp + 0x34]
call fcn.00434400
mov eax, dword [esi + 8]
fld qword [esp + 0x24]
lea edx, [eax + eax*2]
mov eax, dword [esi + 4]
fstp dword [eax + edx*4 - 8]
fld qword [esp + 0x2c]
lea eax, [eax + edx*4 - 0xc]
fstp dword [eax + 8]
mov dword [eax], 3
mov dword [esp + 0x34], 0x5315e0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x80], 1
cmp eax, edi
je 0x5053a1
push eax
call fcn.0051aee4
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x38]
lea esi, [eax - 1]
test esi, esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edi
jle 0x505294
lea eax, [esi - 1]
xor esi, esi
cmp edi, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], esi
mov edx, edi
jg 0x505236
mov eax, dword [esp + 0x18]
lea ecx, [eax + edi*8]
fld qword [ecx]
fcomp qword [ecx + 8]
fnstsw ax
test ah, 0x41
jne 0x505226
mov edi, dword [ecx + 8]
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [ecx], edi
mov edi, dword [ecx + 0xc]
mov dword [ecx + 4], edi
mov edi, dword [esp + 0x14]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], esi
mov esi, edx
mov eax, dword [esp + 0xc]
inc edx
add ecx, 8
cmp edx, eax
jle 0x5051fe
mov dword [esp + 0x1c], esi
lea eax, [edi + 1]
xor edi, edi
cmp esi, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], edi
mov edx, esi
jl 0x505288
mov ecx, dword [esp + 0x18]
lea ecx, [ecx + esi*8]
fld qword [ecx - 8]
fcomp qword [ecx]
fnstsw ax
test ah, 0x41
jne 0x505278
mov edi, dword [ecx - 8]
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [ecx], edi
mov edi, dword [ecx - 4]
mov dword [ecx + 4], edi
mov dword [ecx - 8], eax
mov dword [ecx - 4], esi
mov esi, dword [esp + 0x1c]
mov edi, edx
mov eax, dword [esp + 0xc]
dec edx
sub ecx, 8
cmp edx, eax
jge 0x505250
mov dword [esp + 0x14], edi
cmp edi, esi
jl 0x5051e4
mov eax, dword [esp + 0x3c]
fld qword [ebp + 0x14]
fdiv qword [ebx + 0x10]
mov esi, dword [ebp + 0x34]
xor edi, edi
test eax, eax
fstp qword [esp + 0x1c]
jle 0x50536e
mov edx, dword [esp + 0x38]
mov eax, dword [esi + 8]
inc eax
push 0xffffffffffffffff
fld qword [edx + edi*8]
fld st(0)
fmul qword [ebx + 0x18]
push eax
mov ecx, esi
fadd qword [ebx]
fstp qword [esp + 0x2c]
fmul qword [ebx + 0x20]
fadd qword [ebx + 8]
fstp qword [esp + 0x34]
call fcn.00434400
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
fld qword [esp + 0x24]
lea ecx, [eax + eax*2]
fstp dword [edx + ecx*4 - 8]
fld qword [esp + 0x2c]
lea eax, [edx + ecx*4 - 0xc]
fstp dword [eax + 8]
fld qword [esp + 0x1c]
mov dword [eax], 3
mov ecx, dword [esp + 0x38]
fadd qword [ecx + edi*8]
fcom qword [0x531798]
fnstsw ax
test ah, 0x41
je 0x5053b5
fld st(0)
fmul qword [ebx + 0x18]
push esi
sub esp, 0x10
fadd qword [ebx]
mov eax, esp
sub esp, 8
fstp qword [esp + 0x40]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
fmul qword [ebx + 0x20]
mov dword [eax], ecx
fadd qword [ebx + 8]
mov dword [eax + 4], edx
fstp qword [esp + 0x48]
fld qword [ebp + 0xc]
fdiv qword [ebp + 0x14]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
fstp qword [esp]
push eax
call fcn.00504c80
mov eax, dword [esp + 0x5c]
add esp, 0x20
inc edi
cmp edi, eax
jl 0x5052ab
fld qword [ebx + 0x18]
fadd qword [ebx]
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
fstp qword [esp + 0x28]
fld qword [ebx + 0x20]
fadd qword [ebx + 8]
fstp qword [esp + 0x30]
call fcn.00507340
lea ecx, [esp + 0x34]
mov dword [esp + 0x80], 0xffffffff
call fcn.00404570
mov al, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fstp st(0)
mov dword [esp + 0x34], 0x5315e0
test ecx, ecx
mov dword [esp + 0x80], 2
je 0x5053d7
push ecx
call fcn.0051aee4
add esp, 4
mov ecx, dword [esp + 0x78]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret