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

Disassembly:
mov eax, 0x1864
call fcn.004ecd90
push ebx
mov eax, dword [esp + 0x1870]
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x24], eax
mov ecx, dword [edi + 0x88e]
mov dword [esp + 0x30], 0
test ecx, ecx
jle 0x477165
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x58]
test ecx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
jle 0x476ed5
mov eax, dword [esp + 0x1880]
lea edx, [edi + 0x1896]
add eax, 8
mov esi, ecx
cmp dword [edx], 0
jle 0x476ecc
fild dword [esp + 0x24]
fld dword [eax - 8]
fdiv st(1)
fstp dword [esp + 0x68]
fld dword [eax - 4]
fdiv st(1)
fstp dword [esp + 0x6c]
fdivr dword [eax]
fld dword [esp + 0x68]
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x6c]
fadd dword [esp + 0x18]
fstp dword [esp + 0x18]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
add edx, 4
add eax, 0xc
dec esi
jne 0x476e8f
xor edx, edx
mov dword [esp + 0x28], 0
test ecx, ecx
jle 0x476f48
mov eax, dword [esp + 0x1880]
lea ebx, [edi + 0x2096]
lea esi, [eax + 8]
cmp dword [ebx], 0
jg 0x476f3d
fld dword [esi - 8]
fsub dword [esp + 0x14]
fld dword [esi - 4]
fsub dword [esp + 0x18]
fld dword [esi]
fsub dword [esp + 0x1c]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fld dword [esp + 0x28]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x476f3b
fstp dword [esp + 0x28]
mov dword [esp + 0x2c], edx
jmp 0x476f3d
fstp st(0)
inc edx
add ebx, 4
add esi, 0xc
cmp edx, ecx
jl 0x476ef3
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1884]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [edi + 0x86]
mov ecx, dword [ebx]
push edx
push eax
push ebx
call dword [ecx + 0xf4]
mov eax, dword [edi + 0x88e]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x10], 0
jle 0x477087
lea ecx, [edi + 0x2096]
lea edx, [esp + 0x78]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x1880]
sub ecx, edx
lea esi, [esp + 0x78]
mov dword [esp + 0x40], ecx
jmp 0x476fab
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
cmp dword [eax], 0
jg 0x477052
mov eax, dword [esp + 0x1884]
add ecx, esi
lea ebx, [esi - 4]
push ecx
mov edx, dword [eax]
push ebx
push eax
call dword [edx + 0x88]
fld dword [esi]
fcomp dword [0x4f0400]
fnstsw ax
test ah, 0x41
jne 0x477000
fld dword [edi + 0x289a]
fptan
fstp st(0)
fdivr dword [esi]
fsub dword [esi + 4]
fld dword [esp + 0x10]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x477024
fstp dword [esp + 0x10]
jmp 0x477026
fld dword [edi + 0x289e]
fptan
fstp st(0)
fdivr dword [esi]
fchs
fsub dword [esi + 4]
fld dword [esp + 0x10]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x477024
fstp dword [esp + 0x10]
jmp 0x477026
fstp st(0)
fld dword [ebx]
fabs
fld dword [edi + 0x28a2]
fptan
fstp st(0)
fxch st(1)
fxch st(1)
fdivp st(1)
fsub dword [esi + 4]
fld dword [esp + 0x10]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x477050
fstp dword [esp + 0x10]
jmp 0x477052
fstp st(0)
mov edx, dword [esp + 0x20]
mov eax, dword [edi + 0x88e]
inc ebp
add edx, 4
add esi, 0xc
cmp ebp, eax
mov dword [esp + 0x20], edx
jl 0x476fa7
fld dword [esp + 0x10]
fcomp dword [0x4f04d0]
mov ebx, dword [esp + 0x1884]
fnstsw ax
test ah, 1
je 0x47708f
mov dword [esp + 0x10], 0x41c80000
mov eax, dword [edi + 0x48]
mov esi, 1
cmp eax, esi
jne 0x4770cd
mov dword [esp + 0x5c], 0
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x60], 0x41200000
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x64], 0
mov edx, dword [esp + 0x64]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
jmp 0x47710b
fld dword [0x4f1720]
fsub dword [esp + 0x10]
mov dword [esp + 0x4c], 0xc2a00000
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x48], 0x41200000
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x34], eax
fstp dword [esp + 0x3c]
mov dword [esp + 0x38], ecx
mov eax, dword [ebx]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x14]
push ecx
push edx
push ebx
call dword [eax + 0x110]
fld dword [esp + 0x18]
fcomp dword [edi + 0x2896]
fnstsw ax
test ah, 0x41
jne 0x477165
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
dec ebx
mov dword [edi + eax*4 + 0x2096], esi
mov dword [edi + eax*4 + 0x1896], 0
mov eax, dword [esp + 0x30]
mov ecx, dword [edi + 0x88e]
inc eax
mov dword [esp + 0x24], ebx
cmp eax, ecx
mov dword [esp + 0x30], eax
jl 0x476e61
mov eax, dword [esp + 0x1878]
mov edx, dword [esp + 0x14]
mov ecx, eax
pop edi
pop esi
pop ebp
mov dword [ecx], edx
mov edx, dword [esp + 0xc]
pop ebx
mov dword [ecx + 4], edx
mov edx, dword [esp + 0xc]
mov dword [ecx + 8], edx
add esp, 0x1864
ret 0x10