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

Disassembly:
push 0xffffffffffffffff
push 0x65dd53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x104
push ebx
push ebp
mov ebp, dword [esp + 0x128]
mov ebx, dword [esp + 0x11c]
push esi
mov esi, ecx
push edi
mov dword [esp + 0x28], esi
cmp dword [esi + 0x18], 1
je 0x4cad66
mov eax, dword [esp + 0x140]
test eax, eax
je 0x4cad2a
test byte [eax + 0xc], 2
jne 0x4cad66
mov edx, dword [esp + 0x13c]
mov edi, dword [esp + 0x138]
mov ecx, dword [esi + 0x2c]
push edx
mov edx, dword [esp + 0x138]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x134]
push edi
push ebp
push edx
mov edx, dword [esp + 0x13c]
push edx
push ebx
call dword [eax + 0x48]
test eax, eax
jne 0x4cb465
jmp 0x4cad6d
mov edi, dword [esp + 0x138]
mov eax, dword [0x686558]
mov dword [esp + 0x78], 0
mov ecx, eax
mov dword [esp + 0x70], eax
test edi, edi
mov dword [esp + 0x64], ecx
mov dword [esp + 0x74], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
je 0x4cadb8
mov esi, edi
mov ecx, 6
lea edi, [esp + 0x64]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x138]
mov esi, dword [esp + 0x28]
fld dword [esp + 0x134]
mov edx, dword [esp + 0x134]
push ecx
fchs
fstp dword [esp]
push edx
lea ecx, [esp + 0x6c]
call fcn.004aae90
fld dword [esp + 0x68]
fabs
fld dword [esp + 0x64]
fabs
fadd st(1)
fld dword [0x686558]
fmul dword [0x68657c]
fcompp
fnstsw ax
test ah, 1
fstp st(0)
je 0x4cae42
mov eax, dword [ebp + 0x58]
test eax, eax
jne 0x4cae0b
mov eax, dword [ebp + 0x14]
test byte [eax + 0xc], 4
je 0x4cae42
mov eax, dword [esp + 0x13c]
mov ecx, dword [esp + 0x134]
mov edx, dword [esp + 0x12c]
push 0
push 0
push eax
mov eax, dword [esp + 0x134]
push 0
push 0
push edi
push ecx
push ebp
push edx
push eax
push ebx
mov ecx, esi
call fcn.004cb590
jmp 0x4cb465
mov eax, dword [esi + 0x18]
mov dword [esp + 0x20], 2
cmp eax, 1
jne 0x4cae97
mov ecx, dword [esi + 0x10]
cmp ecx, 1
jle 0x4cae97
mov eax, dword [ebp + 0x58]
test eax, eax
jne 0x4cae6a
mov eax, dword [ebp + 0x14]
test byte [eax + 0xc], 8
je 0x4cae8f
mov eax, dword [esp + 0x140]
test eax, eax
je 0x4cae7b
test byte [eax + 0xc], 1
je 0x4cae8f
cmp ecx, 0x10
jl 0x4cae8f
mov al, byte [esi + 0x14]
mov dword [esp + 0x20], 3
test al, 0x40
je 0x4cae97
mov dword [esp + 0x20], 0
mov ecx, ebp
call fcn.004cb730
lea ecx, [ebx + ebx*4]
mov esi, eax
shl ecx, 2
push ecx
call fcn.00492910
mov edx, dword [esp + 0x138]
mov ecx, dword [esp + 0x12c]
add esp, 4
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x12c]
push edx
push esi
push ebp
push eax
push ecx
push ebx
lea ecx, [esp + 0xdc]
call fcn.004ca9d0
xor esi, esi
test ebx, ebx
jle 0x4caf82
mov edx, dword [esp + 0x24]
lea ebp, [edx + 0xc]
push esi
lea ecx, [esp + 0xc8]
call fcn.004caa60
cmp dword [esp + 0xc4], 0xffffffff
jne 0x4caf0b
mov dword [ebp - 0xc], 0
jmp 0x4caf76
test edi, edi
je 0x4caf26
lea eax, [esp + 0xcc]
lea ecx, [esp + 0xc8]
push eax
push ecx
mov ecx, edi
call fcn.004aabd0
mov edx, dword [esp + 0xc8]
push edx
call fcn.004ab180
mov dword [ebp - 8], eax
mov eax, dword [esp + 0xcc]
mov dword [ebp], eax
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.004ab180
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0xcc]
lea ecx, [esp + 0x64]
push eax
push ecx
lea ecx, [esp + 0xcc]
mov dword [ebp + 4], edx
call fcn.004cabf0
mov dword [ebp - 0xc], eax
inc esi
add ebp, 0x14
cmp esi, ebx
jl 0x4caeeb
cmp ebx, 1
jle 0x4caf97
mov ebp, dword [esp + 0x24]
push ebx
push ebp
call fcn.004cb480
add esp, 8
jmp 0x4caf9b
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
lea edx, [esp + 0x10]
push esi
push ebx
push ebp
push edx
call fcn.004c9d80
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
add esp, 0x10
cmp eax, ecx
jle 0x4cb45c
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp ecx, eax
jle 0x4cb45c
cmp esi, 2
je 0x4cb389
mov edi, dword [esp + 0x28]
cmp dword [edi + 0x10], 8
jne 0x4cafe9
mov esi, 0x108
jmp 0x4caffe
mov edx, dword [edi + 0x14]
and dl, 0x40
neg dl
sbb edx, edx
and edx, 0x208
add edx, 0x18
mov esi, edx
lea ecx, [esp + 0x7c]
call fcn.004c4430
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push 0
push 0
sub eax, edx
push esi
push eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x12c], 0
sub ecx, eax
push ecx
lea ecx, [esp + 0x90]
call fcn.004c4470
cmp esi, 0x18
jne 0x4cb059
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
lea ecx, [esp + 0x80]
push eax
push ecx
mov ecx, edi
call fcn.0049d990
jmp 0x4cb067
push 0
lea ecx, [esp + 0x80]
call fcn.004c4900
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x98]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x60], edx
lea ecx, [esp + 0x30]
cdq
and edx, 7
push ecx
add eax, edx
lea edx, [esp + 0x30]
sar eax, 3
mov dword [esp + 0x58], eax
lea eax, [esp + 0x40]
push edx
mov edx, dword [esp + 0x144]
lea ecx, [esp + 0x40]
push eax
push ecx
push edx
call fcn.004c4330
mov ecx, dword [esp + 0x50]
xor eax, eax
xor edx, edx
add esp, 0x14
mov al, byte [ecx + 0x686634]
xor ecx, ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x2c]
test ebx, ebx
mov dl, byte [eax + 0x686634]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x30]
mov cl, byte [edx + 0x686634]
mov dword [esp + 0x30], ecx
jle 0x4cb31b
mov dword [esp + 0x34], ebp
mov dword [esp + 0x4c], ebx
mov ecx, dword [ebp]
test ecx, ecx
je 0x4cb2fd
mov esi, dword [ebp + 4]
mov edx, dword [ecx + 0x28]
mov eax, dword [esp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ecx + 0x24]
add esi, edx
mov edx, dword [esp + 0x14]
sub esi, eax
mov eax, dword [esp + 0x20]
sub edi, ebx
mov ebx, dword [ecx + 8]
sub edi, edx
mov edx, dword [ecx + 4]
test eax, eax
jne 0x4cb150
mov eax, dword [esp + 0x13c]
push 0
push 0
push 0
push 0
push eax
push ecx
push ebx
push edx
push edi
push esi
lea ecx, [esp + 0xa4]
call fcn.004d5ec0
jmp 0x4cb2fd
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add edx, eax
mov ebp, edx
mov edx, dword [ecx]
mov dword [esp + 0x58], ebp
call dword [edx + 4]
mov ecx, dword [esp + 0x34]
test ebx, ebx
mov edx, dword [ecx]
mov ecx, dword [edx + 0x14]
mov dword [esp + 0x5c], ecx
jle 0x4cb2f9
imul esi, dword [esp + 0x54]
imul edi, dword [esp + 0x48]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x50], eax
add edx, esi
mov dword [esp + 0x44], ebx
lea ecx, [edi + edx + 2]
mov dword [esp + 0x40], ecx
test ebp, ebp
mov edi, eax
jle 0x4cb2ce
mov eax, dword [esp + 0x54]
lea ebx, [eax + 2]
xor edx, edx
mov eax, 0x80808081
mov dl, byte [edi]
mov esi, edx
imul esi, dword [esp + 0x38]
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
xor eax, eax
mov al, byte [ecx]
inc edi
mov esi, eax
xor eax, eax
mov al, byte [esi + 0x686634]
mov esi, eax
mov eax, 0xff
sub eax, edx
imul edx, dword [esp + 0x3c]
imul esi, eax
add esi, edx
mov eax, 0x80808081
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
dec ecx
mov dl, byte [edx + eax + 0x686734]
xor eax, eax
mov byte [ecx + 1], dl
mov al, byte [edi]
mov esi, eax
mov eax, 0x80808081
imul esi, dword [esp + 0x38]
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
xor eax, eax
mov al, byte [ecx]
inc edi
mov esi, eax
xor eax, eax
mov al, byte [esi + 0x686634]
mov esi, eax
mov eax, 0xff
sub eax, edx
imul edx, dword [esp + 0x2c]
imul esi, eax
add esi, edx
mov eax, 0x80808081
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
dec ecx
mov dl, byte [edx + eax + 0x686734]
xor eax, eax
mov byte [ecx + 1], dl
mov al, byte [edi]
mov esi, eax
mov eax, 0x80808081
imul esi, dword [esp + 0x38]
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
xor eax, eax
mov al, byte [ecx]
inc edi
mov esi, eax
xor eax, eax
mov al, byte [esi + 0x686634]
mov esi, eax
mov eax, 0xff
sub eax, edx
imul edx, dword [esp + 0x30]
imul esi, eax
add esi, edx
mov eax, 0x80808081
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
mov dl, byte [edx + eax + 0x686734]
mov byte [ecx], dl
add ecx, ebx
dec ebp
jne 0x4cb1af
mov ebp, dword [esp + 0x58]
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x5c]
mov edx, dword [esp + 0x44]
add ecx, edi
add eax, esi
dec edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x44], edx
jne 0x4cb19e
mov ebp, dword [esp + 0x34]
mov eax, dword [esp + 0x4c]
add ebp, 0x14
dec eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x4c], eax
jne 0x4cb0f5
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
cmp dword [esp + 0x8c], 1
jne 0x4cb35a
mov eax, dword [esp + 0x13c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
push ecx
lea eax, [esp + 0x84]
push edx
push eax
mov ecx, edi
call fcn.0049dc40
mov dword [esp + 0x11c], 0xffffffff
lea ecx, [esp + 0x7c]
jmp 0x4cb457
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 0
push ecx
lea eax, [esp + 0x84]
push edx
push eax
mov ecx, edi
call fcn.0049d9c0
mov dword [esp + 0x11c], 0xffffffff
lea ecx, [esp + 0x7c]
jmp 0x4cb457
lea ecx, [esp + 0xa0]
call fcn.004c4430
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
sub ecx, edx
mov edx, dword [esp + 0x18]
push 0
push 0
push 0x101
sub edx, edi
push ecx
push edx
lea ecx, [esp + 0xb4]
mov dword [esp + 0x130], 1
call fcn.004c4470
push 0
lea ecx, [esp + 0xa4]
call fcn.004c4900
test ebx, ebx
jle 0x4cb422
mov esi, ebp
mov eax, dword [esi]
test eax, eax
je 0x4cb41c
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov edi, dword [esp + 0x14]
push 0
push 0
push eax
push ecx
mov ecx, dword [esi + 8]
push edx
mov edx, dword [eax + 0x24]
sub ecx, edx
mov edx, dword [eax + 0x28]
sub ecx, edi
mov edi, dword [esp + 0x24]
push ecx
mov ecx, dword [esi + 4]
sub edx, edi
add edx, ecx
lea ecx, [esp + 0xb8]
push edx
call fcn.004c4c20
add esi, 0x14
dec ebx
jne 0x4cb3df
mov eax, dword [esp + 0x13c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
push ecx
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0xa8]
push edx
push eax
call fcn.0049dc40
mov dword [esp + 0x11c], 0xffffffff
lea ecx, [esp + 0xa0]
call fcn.004c4500
push ebp
call fcn.00492960
add esp, 4
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x110
ret 0x20