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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
sub esp, 0x5c
and esp, 0xfffffff8
mov ebx, dword [ebp + 8]
fldz
fldz
mov dword [esp + 0x18], ecx
mov eax, ecx
mov esi, dword [eax + 0x80]
mov eax, dword [eax + 0x84]
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], eax
fld qword [0x4cd828]
fabs
fld qword [esp + 0x48]
lea eax, [eax]
fprem
fnstsw ax
test ax, 0x400
jne 0x47ffa0
fstp st(1)
fstp qword [esp + 0x48]
mov eax, dword [esp + 0x18]
fild dword [eax + 0x70]
fmul qword [esp + 0x48]
fmul qword [0x4cd830]
fnstcw word [esp + 0x24]
mov eax, dword [esp + 0x24]
or byte [esp + 0x25], 0xc
fldcw word [esp + 0x24]
fistp dword [esp + 0x50]
mov dword [esp + 0x24], eax
fldcw word [esp + 0x24]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], eax
cmp eax, 1
jge 0x480046
mov eax, dword [esp + 0x18]
fld qword [eax + 0x60]
fst st(2)
fabs
fstp st(2)
mov eax, dword [esp + 0x18]
fld qword [eax + 0x68]
fstp st(1)
fabs
fld st(1)
fadd st(1)
mov eax, dword [esp + 0x18]
fmul qword [eax + 0x40]
fmul qword [0x4cd820]
fnstcw word [esp + 0x24]
mov eax, dword [esp + 0x24]
or byte [esp + 0x25], 0xc
fldcw word [esp + 0x24]
fistp dword [esp + 0x50]
mov dword [esp + 0x24], eax
fldcw word [esp + 0x24]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], eax
cmp eax, 8
jge 0x480046
mov dword [esp + 0x14], 8
cmp dword [esp + 0x14], 0x400
jle 0x480058
mov dword [esp + 0x14], 0x400
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
add dword [esp + 0x1c], 2
mov eax, dword [esp + 0x1c]
cmp eax, dword [ebx + 0xc]
je 0x480258
mov eax, dword [esp + 0x14]
add eax, 2
push eax
push 0x10
push 0
push 0x47f030
shl eax, 4
add eax, 8
push eax
fcompp
call fcn.00494600
pop ecx
push eax
call fcn.00494640
add esp, 0x14
mov dword [esp + 0x20], eax
mov esi, dword [ebx + 4]
test esi, esi
je 0x48010b
mov edx, esi
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0xc], eax
cmp eax, dword [esp + 0x1c]
jb 0x4800c1
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
shl dword [esp + 0xc], 4
add dword [esp + 0xc], esi
cmp esi, dword [esp + 0xc]
jae 0x4800fa
mov ecx, edx
add edx, 0x10
mov eax, dword [esp + 0x10]
add dword [esp + 0x10], 0x10
mov edi, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [eax], edi
mov dword [eax + 4], esi
mov edi, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
mov dword [eax + 8], edi
mov dword [eax + 0xc], esi
cmp edx, dword [esp + 0xc]
jb 0x4800d0
mov eax, dword [ebx + 4]
test eax, eax
je 0x48010b
add eax, 0xfffffff8
push eax
call fcn.00494620
pop ecx
mov eax, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0xc], eax
fldz
mov eax, dword [esp + 0x18]
fld qword [eax + 0x60]
fstp st(1)
fld qword [0x4cd808]
fmul st(1)
fstp qword [esp + 0x28]
mov eax, dword [esp + 0x18]
fld qword [eax + 0x68]
fdiv st(1)
fstp qword [esp + 0x30]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x50], eax
fild dword [esp + 0x50]
fdivr qword [esp + 0x48]
fstp qword [esp + 0x40]
xor esi, esi
cmp dword [esp + 0x14], 0
jl 0x480260
mov dword [esp + 8], 0
fstp st(0)
lea eax, [eax]
mov dword [esp + 4], esi
mov eax, esi
cmp eax, dword [ebx + 8]
jb 0x48018f
inc eax
mov dword [ebx + 8], eax
mov edi, dword [ebx + 4]
add edi, dword [esp + 8]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call fcn.004a4fd0
pop ecx
pop ecx
fmul qword [esp + 0x28]
fstp qword [edi]
mov eax, dword [esp + 4]
cmp eax, dword [ebx + 8]
jb 0x4801ba
mov eax, esi
inc eax
mov dword [ebx + 8], eax
mov edi, dword [ebx + 4]
add edi, dword [esp + 8]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call fcn.004a4ff0
pop ecx
pop ecx
fmul qword [esp + 0x28]
fmul qword [esp + 0x30]
fstp qword [edi + 8]
fld qword [esp + 0x38]
fadd qword [esp + 0x40]
fstp qword [esp + 0x38]
add dword [esp + 8], 0x10
inc esi
cmp esi, dword [esp + 0x14]
jle 0x480180
mov ecx, dword [esp + 0x14]
inc ecx
cmp ecx, dword [ebx + 8]
jb 0x480204
mov eax, dword [esp + 0x1c]
mov dword [ebx + 8], eax
inc dword [esp + 0x14]
shl dword [esp + 0x14], 4
mov edx, dword [ebx + 4]
add edx, dword [esp + 0x14]
cmp ecx, dword [ebx + 8]
jb 0x480220
mov eax, dword [esp + 0x1c]
mov dword [ebx + 8], eax
mov edi, dword [ebx + 4]
mov eax, dword [esp + 0x14]
mov dword [edi + eax + 0xc], 0
mov dword [edi + eax + 8], 0
mov ecx, dword [edi + eax + 8]
mov eax, dword [edi + eax + 0xc]
mov dword [edx], ecx
mov dword [edx + 4], eax
push ebx
mov ecx, dword [esp + 0x1c]
call fcn.0047f040
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 4
fstp st(0)
jmp 0x48011b
fstp st(0)
jmp 0x4801f3