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

Disassembly:
sub esp, 0x9c
push esi
mov esi, ecx
mov ecx, dword [esi + 0x30]
mov eax, dword [ecx + 0x164]
test eax, eax
jne 0x475f62
add ecx, 0x108
mov eax, dword [ecx]
mov dword [esp + 0x2c], eax
mov edx, dword [ecx + 4]
mov dword [esp + 0x30], edx
mov eax, dword [ecx + 8]
mov dword [esp + 0x34], eax
jmp 0x475f6c
lea edx, [esp + 0x2c]
push edx
call fcn.004d2520
mov ecx, dword [0x6800fc]
lea eax, [esp + 0x2c]
push eax
call fcn.004bbe20
test eax, eax
jne 0x475f8a
pop esi
add esp, 0x9c
ret 4
fld dword [esp + 0x2c]
fsub dword [esi + 0xf28]
fstp dword [esp + 4]
fld dword [esp + 0x30]
fsub dword [esi + 0xf2c]
fstp dword [esp + 8]
fld dword [esp + 0x34]
fsub dword [esi + 0xf30]
fstp dword [esp + 0xc]
fld dword [esp + 4]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x44
jp 0x476001
fld dword [esp + 8]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x44
jp 0x476001
fld dword [esp + 0xc]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x44
jp 0x476001
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
jmp 0x476045
fld dword [esp + 0xc]
fmul dword [esp + 0xc]
fld dword [esp + 8]
fmul dword [esp + 8]
faddp st(1)
fld dword [esp + 4]
fmul dword [esp + 4]
faddp st(1)
fsqrt
fdivr dword [0x5f53f4]
fld dword [esp + 4]
fmul st(1)
fstp dword [esp + 0x20]
fld dword [esp + 8]
fmul st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0xc]
fmul st(1)
fstp dword [esp + 0x28]
fstp st(0)
lea ecx, [esp + 0x94]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.004bf190
fld dword [esp + 0xc]
fld dword [esp + 0x14]
add esp, 8
fpatan
fst dword [esp + 0x1c]
fcomp dword [0x60477c]
fnstsw ax
test ah, 5
jp 0x476083
fld dword [esp + 0x1c]
fadd dword [0x5da6c4]
fstp dword [esp + 0x1c]
push ebx
push ebp
mov dword [esp + 0x6c], 0
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x68], 0
mov ebx, dword [esp + 0x68]
push edi
mov dword [esp + 0x5c], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 8
mov edi, edi
mov edi, dword [esp + 0x28]
push edi
call fcn.004beac0
fstp dword [esp + 0x8c]
push edi
call fcn.004beaf0
fld dword [esp + 0x90]
fmul dword [0x5ded14]
add esp, 8
fxch st(1)
lea eax, [esp + 0x38]
fmul dword [0x5ded14]
push eax
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [0x6800fc]
fstp dword [esp + 0xa4]
fadd dword [esi + 0xf28]
fstp dword [esp + 0x58]
fld dword [esi + 0xf2c]
fstp dword [esp + 0x5c]
fld dword [esp + 0xa4]
fadd dword [esi + 0xf30]
fstp dword [esp + 0x60]
call fcn.004bc960
mov edi, 1
cmp eax, edi
jne 0x476264
fld dword [esp + 0x38]
fsub dword [esp + 0x50]
fstp dword [esp + 0x1c]
fld dword [esp + 0x3c]
fsub dword [esp + 0x54]
fstp dword [esp + 0x20]
fld dword [esp + 0x40]
fsub dword [esp + 0x58]
fstp dword [esp + 0x24]
fld dword [esp + 0x1c]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x44
jp 0x4761a2
fld dword [esp + 0x20]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x44
jp 0x4761a2
fld dword [esp + 0x24]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x44
jp 0x4761a2
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
jmp 0x4761f2
fld dword [esp + 0x24]
fmul dword [esp + 0x24]
fld dword [esp + 0x20]
fmul dword [esp + 0x20]
faddp st(1)
fld dword [esp + 0x1c]
fmul dword [esp + 0x1c]
faddp st(1)
fsqrt
fdivr dword [0x5f53f4]
fld dword [esp + 0x1c]
fmul st(1)
fstp dword [esp + 0x44]
mov ecx, dword [esp + 0x44]
fld dword [esp + 0x20]
fmul st(1)
fstp dword [esp + 0x48]
fld dword [esp + 0x24]
mov eax, dword [esp + 0x48]
fmul st(1)
fstp dword [esp + 0x4c]
mov edx, dword [esp + 0x4c]
fstp st(0)
mov dword [esp + 0x24], edx
lea edx, [esp + 0x7c]
mov dword [esp + 0x20], eax
push edx
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], ecx
call fcn.004bf190
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x88]
push ecx
push edx
call fcn.004bd6d0
fstp dword [esp + 0x88]
mov eax, dword [esp + 0x88]
and eax, 0x7fffffff
mov dword [esp + 0x78], eax
fld dword [esp + 0x78]
add esp, 0x10
fcomp dword [esp + 0x60]
fnstsw ax
test ah, 0x41
jne 0x476264
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x50]
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], ecx
mov dword [esp + 0x74], edx
fld dword [esp + 0x28]
mov eax, dword [esp + 0x64]
fadd dword [0x5dfbd0]
dec eax
mov dword [esp + 0x64], eax
fstp dword [esp + 0x28]
jne 0x4760c0
cmp dword [esp + 0x5c], edi
jne 0x4762a9
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0x74]
mov dword [eax], ebx
mov dword [eax + 4], ebp
mov dword [eax + 8], ecx
mov eax, edi
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x9c
ret 4
fld dword [esp + 0x10]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x44
jp 0x4762fa
fld dword [esp + 0x14]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x44
jp 0x4762fa
fld dword [esp + 0x18]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x44
jp 0x4762fa
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], ecx
fld dword [esp + 0x34]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
jmp 0x476336
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [esp + 0x10]
faddp st(1)
fsqrt
fdivr dword [0x5f53f4]
fld dword [esp + 0x10]
fmul st(1)
fstp dword [esp + 0x2c]
fld dword [esp + 0x14]
fmul st(1)
fstp dword [esp + 0x30]
fmul dword [esp + 0x18]
fld dword [esp + 0x2c]
mov edx, dword [esp + 0xb0]
fmul dword [0x5e0504]
pop edi
fld dword [esp + 0x2c]
pop ebp
fmul dword [0x5e0504]
pop ebx
fxch st(2)
fmul dword [0x5e0504]
fstp dword [esp + 0x78]
fadd dword [esi + 0xf28]
fstp dword [esp + 0x38]
mov eax, dword [esp + 0x38]
fadd dword [esi + 0xf2c]
fstp dword [esp + 0x3c]
fld dword [esp + 0x78]
mov ecx, dword [esp + 0x3c]
fadd dword [esi + 0xf30]
mov dword [edx], eax
mov dword [edx + 4], ecx
pop esi
fstp dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
mov dword [edx + 8], eax
xor eax, eax
add esp, 0x9c
ret 4