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

Disassembly:
sub esp, 0x140
mov eax, dword [0x6e50b4]
xor eax, esp
mov dword [esp + 0x13c], eax
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x5a0]
imul eax, eax, 0xb0
push esi
push edi
push 0x11
mov ecx, 0x6fc6dc
lea esi, [eax + ebx + 0x20]
call fcn.00529040
fld qword [0x5b7d18]
test eax, eax
je 0x55a6e7
fld dword [esi + 0x30]
fmul st(1)
fstp dword [esp + 0x38]
fld dword [esi + 0x34]
fmul st(1)
fstp dword [esp + 0x3c]
fmul dword [esi + 0x38]
fstp dword [esp + 0x40]
fld dword [esi + 0x24]
fadd dword [esp + 0x38]
fstp dword [esp + 0x2c]
fld dword [esi + 0x28]
fadd dword [esp + 0x3c]
fstp dword [esp + 0x30]
fld dword [esi + 0x2c]
fadd dword [esp + 0x40]
jmp 0x55a737
push 0x1f
fstp st(0)
mov ecx, 0x6fc6dc
call fcn.00529040
test eax, eax
je 0x55a750
fld dword [esi + 0x30]
fld qword [0x5b7d18]
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x38]
fld dword [esi + 0x34]
fmul st(1)
fstp dword [esp + 0x3c]
fmul dword [esi + 0x38]
fstp dword [esp + 0x40]
fld dword [esi + 0x24]
fsub dword [esp + 0x38]
fstp dword [esp + 0x2c]
fld dword [esi + 0x28]
fsub dword [esp + 0x3c]
fstp dword [esp + 0x30]
fld dword [esi + 0x2c]
fsub dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
fstp dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], eax
push 0x10
mov ecx, 0x6fc6dc
call fcn.00529040
test eax, eax
je 0x55a76b
fld dword [esi + 0x28]
fadd qword [0x5be910]
jmp 0x55a784
push 0x12
mov ecx, 0x6fc6dc
call fcn.00529040
test eax, eax
je 0x55a787
fld dword [esi + 0x28]
fsub qword [0x5be910]
fstp dword [esi + 0x28]
push 0x1e
mov ecx, 0x6fc6dc
call fcn.00529040
test eax, eax
je 0x55a84c
mov edx, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
mov eax, dword [esi + 0x38]
mov dword [esp + 0x30], edx
fld dword [esp + 0x30]
fadd qword [0x5b1638]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x60], edx
fstp dword [esp + 0x30]
push ecx
mov edx, ecx
push edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x6c], eax
call dword [sym.imp.SS3DGFunc.dll__Normalize_8]
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.SS3DGFunc.dll__CrossProduct_12]
fld dword [esp + 0x44]
fld qword [0x5b7d18]
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x38]
fld dword [esp + 0x48]
fmul st(1)
fstp dword [esp + 0x3c]
fmul dword [esp + 0x4c]
fstp dword [esp + 0x40]
fld dword [esi + 0x24]
fsub dword [esp + 0x38]
fstp dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
fld dword [esi + 0x28]
fsub dword [esp + 0x3c]
fstp dword [esp + 0x30]
mov ecx, dword [esp + 0x30]
fld dword [esi + 0x2c]
mov dword [esi + 0x24], eax
fsub dword [esp + 0x40]
mov dword [esi + 0x28], ecx
fstp dword [esp + 0x34]
mov edx, dword [esp + 0x34]
mov dword [esi + 0x2c], edx
jmp 0x55a90c
push 0x20
mov ecx, 0x6fc6dc
call fcn.00529040
test eax, eax
je 0x55a90c
mov ecx, dword [esi + 0x34]
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x38]
mov dword [esp + 0x3c], ecx
fld dword [esp + 0x3c]
fadd qword [0x5b1638]
mov dword [esp + 0x38], eax
mov dword [esp + 0x68], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x6c], ecx
fstp dword [esp + 0x3c]
push eax
mov ecx, eax
push ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x78], edx
call dword [sym.imp.SS3DGFunc.dll__Normalize_8]
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.SS3DGFunc.dll__CrossProduct_12]
fld dword [esp + 0x50]
fld qword [0x5b7d18]
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x38]
fld dword [esp + 0x54]
fmul st(1)
fstp dword [esp + 0x3c]
fmul dword [esp + 0x58]
fstp dword [esp + 0x40]
fld dword [esi + 0x24]
fadd dword [esp + 0x38]
fstp dword [esp + 0x2c]
mov edx, dword [esp + 0x2c]
fld dword [esi + 0x28]
fadd dword [esp + 0x3c]
fstp dword [esp + 0x30]
mov eax, dword [esp + 0x30]
fld dword [esi + 0x2c]
mov dword [esi + 0x24], edx
fadd dword [esp + 0x40]
mov dword [esi + 0x28], eax
fstp dword [esp + 0x34]
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x2c], ecx
mov ecx, dword [esi + 0x98]
mov edx, dword [ecx]
mov edx, dword [edx + 0x88]
lea eax, [esp + 0x74]
push eax
call edx
fld dword [esp + 0x78]
fadd qword [0x5b6eb8]
fld dword [esi + 0x28]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x55a93c
fstp dword [esi + 0x28]
jmp 0x55a93e
fstp st(0)
mov eax, dword [0x6f48ac]
xor ecx, ecx
mov dword [esp + 0x142], ecx
fld dword [esi + 0x24]
fstp dword [esp + 0x80]
push ecx
fld dword [esi + 0x2c]
lea edx, [esp + 0x84]
fstp dword [esp + 0x8c]
mov ecx, 0x6d847c
fldz
fstp dword [esp]
push edx
push eax
call fcn.004c5b90
mov ecx, dword [0x6f5768]
sub ecx, dword [ebx + 0x668]
cmp ecx, 0x12c
jb 0x55aa21
mov eax, dword [0x6f48a0]
fld dword [esi + 0x24]
fnstcw word [esp + 0xe]
mov dword [esp + 0x17], eax
mov dword [esp + 0x1d], eax
movzx eax, word [esp + 0xe]
or eax, 0xc00
mov dword [esp + 0x10], eax
push 0x15
lea edx, [esp + 0x18]
fldcw word [esp + 0x14]
push edx
mov word [esp + 0x1d], 0xd07
fistp dword [esp + 0x18]
mov cx, word [esp + 0x18]
mov word [esp + 0x29], cx
fldcw word [esp + 0x16]
fld dword [esi + 0x2c]
fnstcw word [esp + 0x16]
movzx eax, word [esp + 0x16]
or eax, 0xc00
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp dword [esp + 0x18]
mov ax, word [esp + 0x18]
mov word [esp + 0x2d], cx
mov ecx, 0x6e25d0
fldcw word [esp + 0x16]
mov word [esp + 0x2b], ax
mov word [esp + 0x2f], ax
call fcn.0052a1c0
mov eax, dword [0x6f5768]
mov dword [ebx + 0x668], eax
mov ecx, dword [esp + 0x148]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005825b3
add esp, 0x140
ret