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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b4b2c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x94]
mov dword [esp + 0x4c], ebx
cmp eax, 6
jl 0x4cada6
push 0xffffff
xor esi, esi
push 1
push esi
lea ecx, [esp + 0x68]
call fcn.0058af4a
mov dword [esp + 0x108], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], 0x5d3624
push 6
mov byte [esp + 0x10c], 1
call dword [0x5c91b8]
mov esi, dword [ebp + 8]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x5c]
mov ecx, esi
push eax
call fcn.0058a4e7
fld dword [ebp + 0x14]
sub esp, 8
lea ecx, [esp + 0x94]
mov dword [esp + 0x5c], eax
fstp qword [esp]
push 0x614d90
push ecx
call fcn.0056c73e
lea edi, [esp + 0x9c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
lea eax, [esp + ecx + 0x8c]
mov cl, byte [esp + ecx + 0x8c]
cmp cl, 0x30
jne 0x4ca903
mov byte [eax], 0
lea edi, [esp + 0x8c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
lea eax, [esp + ecx + 0x8c]
mov cl, byte [esp + ecx + 0x8c]
cmp cl, 0x30
je 0x4ca8da
lea edi, [esp + 0x8c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
lea eax, [esp + ecx + 0x8c]
mov cl, byte [esp + ecx + 0x8c]
cmp cl, 0x2e
jne 0x4ca92c
mov byte [eax], 0
mov eax, dword [ebx + 0x58]
xor edi, edi
cmp eax, edi
jne 0x4ca988
push 8
call fcn.00586401
add esp, 4
cmp eax, edi
je 0x4ca94e
mov dword [eax + 4], edi
mov dword [eax], 0x5d35a8
mov edi, eax
push 0x6129a8
mov eax, dword [ebx + 0x94]
push 0x24
push 2
push 0x10
push 3
push 0
push 0
push 0
push 0
push 0x12c
push 0
neg eax
push 0
push 0
push eax
mov dword [ebx + 0x58], edi
call dword [0x5c91c8]
push eax
mov ecx, edi
call fcn.0058aedd
mov eax, dword [ebx + 0x58]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x28]
mov dword [esp + 0x50], eax
lea edi, [esp + 0x8c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0x3c]
dec ecx
push edx
push ecx
mov ecx, dword [esi + 8]
lea eax, [esp + 0x94]
push eax
push ecx
call dword [0x5c91c0]
mov eax, dword [esi + 8]
lea edx, [esp + 0xc8]
push edx
push eax
call dword [0x5c90e4]
fild dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
fmul dword [0x5cb160]
lea ecx, [eax + eax*8]
shl ecx, 1
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp + 0x10]
fstp dword [esp + 0x38]
fild dword [esp + 0x40]
mov eax, ecx
cdq
fmul dword [0x5cb160]
sub eax, edx
sar eax, 1
cmp eax, 0xa
fstp dword [esp + 0x34]
fild dword [esp + 0x20]
fst dword [esp + 0x58]
fstp dword [esp + 0x24]
jl 0x4caa1b
mov eax, 0xa
dec ecx
cmp eax, ecx
jge 0x4cad5c
mov edx, dword [ebp + 0xc]
sub ecx, eax
mov dword [esp + 0x20], ecx
lea edi, [edx + eax*8 + 0xc]
mov dword [esp + 0x30], edi
mov eax, dword [edi]
mov ecx, dword [edi - 8]
mov edx, dword [edi - 0xc]
sub eax, ecx
mov dword [esp + 0x14], eax
push ecx
fild dword [esp + 0x18]
mov ecx, dword [edi - 4]
sub ecx, edx
fstp dword [esp]
mov dword [esp + 0x18], ecx
push ecx
fild dword [esp + 0x1c]
lea ecx, [esp + 0x20]
fstp dword [esp]
call fcn.0053b610
lea ecx, [esp + 0x18]
call fcn.0041deb0
fst dword [esp + 0x10]
fadd dword [esp + 0x24]
fst dword [esp + 0x24]
fcomp dword [esp + 0x58]
fnstsw ax
test ah, 0x41
jne 0x4cad46
fld dword [esp + 0x10]
fcomp qword [0x5cb6c8]
fnstsw ax
test ah, 0x41
jne 0x4cad46
mov eax, dword [edi - 4]
mov edx, dword [edi - 0xc]
add eax, edx
mov dword [esp + 0x24], 0
cdq
sub eax, edx
mov edx, dword [edi]
mov ecx, eax
mov eax, dword [edi - 8]
add eax, edx
cdq
sub eax, edx
mov edx, dword [esi]
sar eax, 1
sar ecx, 1
push eax
mov dword [esp + 0x2c], ecx
push ecx
mov ecx, esi
mov dword [esp + 0x34], eax
call dword [edx + 0x54]
test eax, eax
je 0x4cad46
fld dword [esp + 0x18]
fcomp dword [0x5cad98]
fnstsw ax
test ah, 1
je 0x4cab0a
lea eax, [esp + 0x18]
lea ecx, [esp + 0xc0]
push eax
push ecx
call fcn.0041e030
add esp, 8
lea ecx, [esp + 0x18]
push eax
call fcn.0041df70
fld dword [esp + 0x1c]
fld dword [esp + 0x18]
fpatan
fmul qword [0x5cb218]
fadd qword [0x5cb320]
call fcn.0056b454
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x4cab36
neg eax
mov dword [esp + 0x14], eax
fld dword [esp + 0x18]
fdiv dword [esp + 0x10]
lea eax, [eax + eax*2 + 0x10e]
lea ecx, [eax + eax*4]
mov eax, 0xb60b60b7
shl ecx, 1
fld dword [esp + 0x1c]
imul ecx
fdiv dword [esp + 0x10]
add edx, ecx
sar edx, 7
mov ecx, edx
mov eax, edx
shr ecx, 0x1f
add eax, ecx
mov ecx, 0x1e
cdq
idiv ecx
fld st(1)
fmul dword [esp + 0x38]
fld st(1)
fmul dword [esp + 0x34]
fsubp st(1)
fchs
fstp dword [esp + 0x18]
fxch st(1)
fmul dword [esp + 0x34]
fxch st(1)
fmul dword [esp + 0x38]
mov edi, edx
faddp st(1)
fchs
fstp dword [esp + 0x1c]
mov eax, dword [ebx + edi*4 + 0x1c]
test eax, eax
jne 0x4cac07
push 8
call fcn.00586401
xor edx, edx
add esp, 4
cmp eax, edx
je 0x4cabc0
mov dword [eax + 4], edx
mov dword [eax], 0x5d35a8
mov dword [esp + 0x10], eax
jmp 0x4cabc4
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 0x6129a8
push 0x24
push 2
push 0x10
push 3
push edx
push edx
push edx
lea ecx, [ecx + ecx*4]
mov dword [ebx + edi*4 + 0x1c], eax
mov eax, dword [ebx + 0x94]
push edx
push 0x12c
push edx
shl ecx, 1
neg eax
push ecx
push edx
push eax
call dword [0x5c91c8]
mov ecx, dword [esp + 0x10]
push eax
call fcn.0058aedd
mov eax, dword [ebx + edi*4 + 0x1c]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x28]
fild dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0xd0]
sub ecx, edx
fmul qword [0x5cb230]
mov dword [esp + 0x10], ecx
fld st(0)
fcos
fstp qword [esp + 0x64]
fsin
fld dword [esp + 0x1c]
fadd dword [0x5cb160]
call fcn.0056b454
fld dword [esp + 0x18]
fadd dword [0x5cb160]
mov ecx, dword [esp + 0x2c]
mov edi, eax
add edi, ecx
call fcn.0056b454
fild dword [esp + 0x3c]
mov ebx, eax
mov eax, dword [esp + 0x28]
fld st(1)
fmul st(1)
add ebx, eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
call fcn.0056b454
fld qword [esp + 0x64]
mov ecx, edi
fmul st(1)
sub ecx, eax
mov dword [esp + 0x14], ecx
call fcn.0056b454
mov edx, dword [esp + 0x14]
add eax, ebx
fstp st(0)
fild dword [esp + 0x10]
fld qword [esp + 0x64]
mov dword [esp + 0x28], eax
mov dword [esp + 0x74], eax
fmul st(1)
mov dword [esp + 0x78], edx
call fcn.0056b454
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
fxch st(1)
fmul st(1)
add ecx, eax
mov dword [esp + 0x2c], ecx
call fcn.0056b454
mov edx, dword [esp + 0x28]
add ebx, eax
push 4
mov dword [esp + 0x88], ebx
lea ecx, [edx + eax]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x84], ecx
mov ecx, dword [esi + 4]
lea eax, [esp + 0x70]
add edi, edx
push eax
push ecx
fstp st(0)
mov dword [esp + 0x94], edi
call dword [0x5c919c]
push 1
mov ecx, esi
call fcn.0058a55c
mov edx, dword [esi]
or ecx, 0xffffffff
lea edi, [esp + 0x8c]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x74]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x5c]
mov ebx, dword [esp + 0x4c]
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
add edi, 8
dec eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x20], eax
jne 0x4caa35
mov eax, dword [esp + 0x50]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x28]
mov ecx, dword [esp + 0x54]
push ecx
mov ecx, esi
call fcn.0058a4e7
mov esi, 0x5ca4dc
mov dword [esp + 0x44], esi
lea ecx, [esp + 0x44]
mov byte [esp + 0x108], 2
call fcn.0058af34
mov dword [esp + 0x5c], esi
lea ecx, [esp + 0x5c]
mov dword [esp + 0x108], 3
call fcn.0058af34
mov ecx, dword [esp + 0x100]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14