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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a6570
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push esi
xor esi, esi
mov ecx, 0x7fff
mov eax, 0xffff8001
push edi
mov dword [esp + 0xc], esi
mov word [esp + 0x18], cx
mov word [esp + 0x1a], cx
mov word [esp + 0x1c], ax
mov word [esp + 0x1e], ax
mov dword [esp + 0x78], esi
mov word [esp + 0x10], cx
mov word [esp + 0x12], cx
mov word [esp + 0x14], ax
mov word [esp + 0x16], ax
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x54]
add eax, 0x5c
mov byte [esp + 0x78], 1
push eax
call fcn.00426120
fld dword [ebp + 0x10]
fmul dword [ebp + 0x10]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x38], esi
cmp eax, esi
fadd dword [0x4a8248]
fsqrt
fld dword [0x4a8248]
fdiv st(1)
fstp dword [esp + 0x20]
fld dword [ebp + 0x10]
fdiv st(1)
fchs
fstp dword [esp + 0x24]
fstp st(0)
je 0x47951b
mov dword [esp + 0x68], eax
jmp 0x479520
mov byte [esp + 0x65], 1
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov byte [esp + 0x6c], 0
mov ecx, dword [esp + 0x54]
cmp dword [ecx], esi
je 0x4796be
cmp eax, dword [esp + 0x68]
jne 0x47954b
mov cl, byte [esp + 0x6c]
test cl, cl
jne 0x4796be
lea edx, [eax + 0x70]
mov dword [esp + 0x38], edx
mov eax, dword [edx]
mov dword [esp + 0x3c], eax
mov eax, dword [edx]
cmp eax, esi
je 0x479562
mov eax, dword [eax]
jmp 0x479564
xor eax, eax
cmp eax, esi
mov dword [esp + 0x40], eax
je 0x479570
mov ecx, dword [eax]
jmp 0x479572
xor ecx, ecx
cmp eax, esi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], esi
mov byte [esp + 0x48], 0
mov byte [esp + 0x49], 0
je 0x47958e
mov dword [esp + 0x4c], eax
jmp 0x479593
mov byte [esp + 0x49], 1
mov byte [esp + 0x50], 0
cmp dword [edx], 0
je 0x4796aa
cmp eax, dword [esp + 0x4c]
jne 0x4795b3
mov cl, byte [esp + 0x50]
test cl, cl
jne 0x4796aa
mov ecx, dword [eax + 8]
sub esp, 8
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 0xc]
movsx eax, word [esp + 0x18]
movsx ecx, word [esp + 0x1a]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edx
fild dword [esp + 0x14]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebx
fmul dword [esp + 0x28]
fild dword [esp + 0x14]
fmul dword [esp + 0x2c]
fsubp st(1)
fadd qword [0x4a8220]
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_floor]
call sub.MSVCRT.dll__ftol
movsx edx, word [esp + 0x1a]
mov dword [esp + 0x14], edx
mov esi, eax
fild dword [esp + 0x14]
movsx eax, word [esp + 0x18]
fmul dword [esp + 0x30]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul dword [esp + 0x34]
faddp st(1)
fadd qword [0x4a8220]
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_floor]
add esp, 8
call sub.MSVCRT.dll__ftol
lea ecx, [esp + 0x28]
mov word [esp + 0x12], ax
push ecx
lea ecx, [esp + 0x18]
mov word [esp + 0x14], si
call fcn.004796e0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x38]
call fcn.004383d0
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov edx, dword [eax + 4]
lea ecx, [esp + 0x30]
mov dword [esp + 0x14], edx
call fcn.004331c0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.004384f0
add esp, 8
lea ecx, [esp + 0x38]
call fcn.004403e0
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
jmp 0x479598
lea ecx, [esp + 0x54]
call fcn.00440e40
mov eax, dword [esp + 0x5c]
xor esi, esi
jmp 0x47952d
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], edx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x6c]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret