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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5b4bd8
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
push esi
mov esi, dword [esp + 0x7c]
push edi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4cc5bf
push 0x5dcd80
mov ecx, esi
call fcn.0058643b
test eax, eax
mov dword [esp + 0x1c], 1
je 0x4cc5c7
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x24]
mov ecx, dword [esi + 8]
push ecx
call dword [0x5c9190]
push 2
mov ecx, esi
mov dword [esp + 0x2c], eax
call fcn.0058a55c
fld dword [esp + 0x8c]
fstp qword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
push edi
push ebx
call fcn.0056c5d5
fcomp qword [esp + 0x28]
add esp, 8
fnstsw ax
test ah, 0x40
je 0x4cc61d
push edi
push ebx
lea edx, [esp + 0x44]
push 0x614f30
push edx
jmp 0x4cc66a
fld dword [esp + 0x8c]
fst qword [esp + 0x20]
fmul qword [0x5cb340]
fstp qword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.0056c5d5
fcomp qword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
add esp, 8
push edx
fnstsw ax
test ah, 0x40
mov eax, dword [esp + 0x24]
push eax
je 0x4cc660
push 0x614d08
jmp 0x4cc665
push 0x614d90
lea ecx, [esp + 0x48]
push ecx
call fcn.0056c73e
add esp, 0x10
push 8
call fcn.00586401
add esp, 4
test eax, eax
je 0x4cc691
mov dword [eax + 4], 0
mov dword [eax], 0x5d35a8
mov ebx, eax
jmp 0x4cc693
xor ebx, ebx
push 0x6129a8
push 0x20
mov edx, dword [esp + 0x98]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
neg edx
push edx
call dword [0x5c91c8]
push eax
mov ecx, ebx
call fcn.0058aedd
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x28]
mov ebp, eax
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0x20]
dec ecx
push edx
push ecx
mov ecx, dword [esi + 8]
lea eax, [esp + 0x44]
push eax
push ecx
call dword [0x5c91c0]
fild dword [esp + 0x20]
mov edx, dword [esi]
push ebp
mov ecx, esi
fmul dword [0x5cb160]
fstp dword [esp + 0x18]
fild dword [esp + 0x28]
fmul dword [0x5cb160]
fstp dword [esp + 0x14]
call dword [edx + 0x28]
test ebx, ebx
je 0x4cc729
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 4]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x88]
lea ecx, [eax + eax*8]
mov eax, edi
cdq
shl ecx, 1
mov dword [esp + 0x8c], ecx
sub eax, edx
fild dword [esp + 0x8c]
sar eax, 1
cmp eax, 0xa
mov ecx, eax
fst qword [esp + 0x34]
jl 0x4cc75e
mov ecx, 0xa
lea eax, [edi - 1]
cmp ecx, eax
jge 0x4cc99e
mov edx, dword [esp + 0x84]
sub eax, ecx
mov dword [esp + 0x88], eax
lea ebp, [edx + ecx*8 + 0xc]
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp]
mov edi, dword [ebp - 8]
mov eax, ecx
sub eax, ebx
mov dword [esp + 0x80], eax
mov eax, edx
fild dword [esp + 0x80]
sub eax, edi
mov dword [esp + 0x80], eax
fabs
fild dword [esp + 0x80]
fabs
faddp st(1)
faddp st(1)
fcom qword [esp + 0x34]
fnstsw ax
test ah, 0x41
jne 0x4cc986
mov edi, dword [ebp - 0x10]
mov dword [esp + 0x2c], 0
sub edx, edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x80], edx
mov edx, dword [ebp - 0x14]
fstp st(0)
fild dword [esp + 0x80]
sub ecx, edx
mov dword [esp + 0x80], ecx
fild dword [esp + 0x80]
fmul qword [0x5cb218]
fpatan
call fcn.0056b454
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jge 0x4cc831
mov ecx, 0xb3
mov eax, 0x6c16c16d
sub ecx, edi
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 7
lea eax, [ecx + ecx*4]
lea ecx, [eax + eax*8]
lea edi, [edi + ecx*4]
cmp edi, 0x5a
jle 0x4cc83c
sub edi, 0xb4
mov edx, edi
neg edx
mov dword [esp + 0x80], edx
fild dword [esp + 0x80]
fmul qword [0x5cb230]
fld st(0)
fcos
fstp dword [esp + 0x80]
fsin
fld st(0)
fmul dword [esp + 0x10]
fld dword [esp + 0x80]
fmul dword [esp + 0x14]
fsubp st(1)
call fcn.0056b454
fld dword [esp + 0x80]
fmul dword [esp + 0x10]
fxch st(1)
fmul dword [esp + 0x14]
mov dword [esp + 0x84], eax
faddp st(1)
call fcn.0056b454
push 8
mov dword [esp + 0x84], eax
call fcn.00586401
add esp, 4
cmp eax, ebx
je 0x4cc8b8
mov dword [eax + 4], ebx
mov dword [eax], 0x5d35a8
mov ebx, eax
imul edi, dword [esp + 0x1c]
push 0x6129a8
push 0x20
mov ecx, dword [esp + 0x98]
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [edi + edi*4]
push 0
push 0x190
shl eax, 1
push 0
push eax
neg ecx
push 0
push ecx
call dword [0x5c91c8]
push eax
mov ecx, ebx
call fcn.0058aedd
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x28]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x90]
call fcn.005867eb
mov edx, dword [esp + 0x8c]
mov eax, dword [ebp - 8]
mov ecx, dword [esp + 0x80]
mov edi, dword [esp + 0x84]
mov edx, dword [edx - 8]
add eax, ecx
mov ecx, dword [ebp - 0xc]
push edx
mov edx, dword [esp + 0x90]
add ecx, edi
mov edi, dword [esi]
push edx
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x88], 0
call dword [edi + 0x5c]
lea ecx, [esp + 0x8c]
mov dword [esp + 0x78], 0xffffffff
call int.0058677d
mov ecx, dword [esp + 0x20]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x28]
test ebx, ebx
je 0x4cc982
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx + 4]
fld qword [esp + 0x2c]
mov eax, dword [esp + 0x88]
add ebp, 8
dec eax
mov dword [esp + 0x88], eax
jne 0x4cc77d
mov eax, dword [esp + 0x28]
mov ecx, esi
push eax
fstp st(0)
call fcn.0058a55c
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret 0x14