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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov eax, dword [0x6ccc30]
xor esi, esi
xor eax, ebp
cmp dword [ebp + 8], 0
mov dword [esp + 0x78], eax
je 0x4cad65
cmp dword [ebp + 0x20], 0
je 0x4cad65
cmp dword [ebp + 0x24], 0
je 0x4cad65
cmp dword [ebp + 0x28], 0
je 0x4cad65
cmp dword [ebp + 0x2c], 0
je 0x4cad65
cmp dword [ebp + 0x30], 0
je 0x4cad65
mov eax, dword [ebp + 0x1c]
mov edi, 0x800
test eax, eax
je 0x4caba4
mov edx, eax
mov eax, dword [eax + 8]
mov esi, 0
test eax, eax
je 0x4caba8
mov esi, dword [eax]
mov edi, 0x800
cmp esi, 0x800
cmova edi, esi
jmp 0x4caba8
mov edx, eax
xor esi, esi
mov ecx, dword [ebp + 0x30]
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov dword [ecx], 0x80090304
mov ecx, dword [ebp + 8]
test ebx, ebx
mov dword [esp + 0x38], 8
setne al
shl eax, 3
test edx, edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ecx
je 0x4cabea
mov eax, dword [edx + 8]
mov ecx, 0
test eax, eax
je 0x4cabec
mov ecx, dword [eax + 8]
jmp 0x4cabec
xor ecx, ecx
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], 8
mov dword [esp + 0x2c], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x24], eax
nop dword [eax + eax]
call fcn.00401460
mov ebx, eax
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x64689c]
mov ecx, ebx
call esi
mov ecx, eax
call fcn.004014e0
test al, al
je 0x4cad61
call fcn.0040bd50
test eax, eax
je 0x4cad61
mov ebx, eax
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
je 0x4cad61
lea esi, [esp + 0x10]
mov ecx, esi
push ebx
call fcn.0040be00
xorps xmm0, xmm0
lea eax, [esp + 0x40]
mov dword [esp + 0x70], 0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x58]
push eax
push 0x35
push esi
call fcn.004cad80
add esp, 0x2c
test eax, eax
jne 0x4cacf0
cmp dword [esp + 0x4c], 3
jne 0x4cacf0
mov esi, dword [esp + 0x5c]
cmp esi, edi
jbe 0x4cad10
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov edi, esi
xor ecx, ecx
test al, al
je 0x4cad59
jmp 0x4cad61
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
mov cl, 1
test al, al
je 0x4cad59
jmp 0x4cad61
mov eax, dword [esp + 0x54]
mov edx, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x28]
test esi, esi
mov dword [edx], eax
mov eax, dword [esp + 0x58]
mov dword [ecx], eax
je 0x4cad3f
cmp dword [edx], 0
jne 0x4cad3f
mov ecx, dword [ebp + 0x24]
mov eax, dword [ecx + 8]
mov dword [eax], esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [ecx + 8]
mov dword [ecx + 8], eax
jmp 0x4cad49
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov cl, 1
xor eax, eax
mov dword [esp + 0xc], 1
test al, al
jne 0x4cad61
test cl, cl
je 0x4cac10
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.005ce525
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x2c