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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x504434
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x5450d0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x1c], ebx
lea eax, [ebx + 0xd]
mov dword [esp + 0x18], eax
mov al, byte [eax]
test al, al
je 0x4cafef
cmp al, 3
jne 0x4cb34f
lea edi, [ebx + 0x440]
lea esi, [esp + 0x24]
call fcn.0046d64c
xor esi, esi
mov dword [esp + 0x80], esi
cmp dword [ebx + 0x34], esi
jne 0x4cb076
test byte [ebx + 0x57a], 8
jne 0x4cb076
cmp dword [esp + 0x24], esi
je 0x4cb076
test byte [ebx + 0x579], 0x80
lea eax, [ebx + 0x20]
jne 0x4cb04e
push eax
lea esi, [esp + 0x28]
call fcn.0046d3db
add eax, 0xa8
push eax
mov eax, dword [ebx + 0x2b8]
add eax, 0x4b8
push eax
mov ecx, ebx
call fcn.004cad66
xor esi, esi
jmp 0x4cb063
push esi
push eax
mov eax, dword [ebx + 0x2b8]
add eax, 0x4d8
push eax
mov ecx, ebx
call fcn.004cad66
or dword [esp + 0x80], 0xffffffff
mov ecx, dword [esp + 0x28]
cmp ecx, esi
jmp 0x4cb348
push dword [esp + 0x18]
mov ecx, ebx
call fcn.004cb9f8
test al, al
je 0x4cb063
mov edx, dword [ebx + 0x52c]
mov ecx, dword [ebx + 0x534]
mov edi, edx
lea eax, [ebx + 0x530]
sub edi, ecx
cmp ecx, dword [eax]
jl 0x4cb0a1
mov dword [eax], esi
mov eax, dword [eax]
cmp eax, esi
je 0x4cb0af
sub eax, ecx
cmp edi, eax
jle 0x4cb0af
mov edi, eax
mov eax, dword [ebx + 0x34]
cmp edi, eax
jle 0x4cb0b8
mov edi, eax
cmp edi, esi
je 0x4cb063
sub edx, dword [ebx + 0x538]
lea esi, [ebx + 0x360]
mov eax, dword [esi + 4]
sub eax, dword [esi]
mov dword [esp + 0x14], edx
cmp eax, edx
jge 0x4cb0e0
mov ebx, edx
call fcn.004b1757
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x370]
neg eax
sbb eax, eax
test eax, 0x45a42f
je 0x4cb292
mov ecx, dword [ebx + 0x534]
lea eax, [ecx + edi]
cmp dword [esp + 0x14], eax
jge 0x4cb292
cmp ecx, dword [esp + 0x14]
jl 0x4cb1b4
xor ecx, ecx
push ecx
mov eax, 0x48cd70
push eax
movzx eax, byte [0x552043]
push eax
movzx eax, byte [0x552057]
push eax
push ecx
lea ecx, [ebx + 8]
mov eax, esp
mov dword [esp + 0x30], esp
call fcn.004cc741
lea eax, [esp + 0x48]
push eax
call fcn.004cd40f
add esp, 0x18
mov ecx, eax
lea edx, [esp + 0x44]
mov eax, ebx
call fcn.004cd515
mov byte [esp + 0x80], 4
mov ecx, dword [ebx + 0x370]
sub ecx, dword [esp + 0x14]
push eax
add ecx, dword [ebx + 0x534]
lea esi, [ebx + 0x3b8]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edi
call fcn.0046d3db
mov ecx, eax
lea eax, [esp + 0x20]
call fcn.004cd527
mov byte [esp + 0x80], 3
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4cb1a3
add eax, 8
call fcn.0046dd18
mov byte [esp + 0x80], 0
mov eax, dword [esp + 0x3c]
jmp 0x4cb327
xor edx, edx
lea eax, [esp + 0x34]
inc edx
and dword [eax], 0
and dword [eax + 4], 0
add eax, 8
dec edx
jns 0x4cb1bb
mov eax, dword [esi]
mov edx, dword [esp + 0x14]
add eax, ecx
sub edx, ecx
sub ecx, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x370]
add ecx, edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
xor ecx, ecx
push ecx
mov eax, 0x48cd70
push eax
movzx eax, byte [0x552043]
push eax
movzx eax, byte [0x552057]
push eax
push ecx
lea ecx, [ebx + 8]
mov eax, esp
mov dword [esp + 0x4c], edx
mov dword [esp + 0x30], esp
call fcn.004cc741
lea eax, [esp + 0x58]
push eax
call fcn.004cd40f
add esp, 0x18
mov ecx, eax
lea edx, [esp + 0x5c]
mov eax, ebx
call fcn.004cd515
mov edi, eax
lea esi, [ebx + 0x3b8]
mov byte [esp + 0x80], 6
call fcn.0046d3db
mov ecx, eax
lea eax, [esp + 0x34]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x30], edi
test eax, eax
jge 0x4cb269
or edx, 0xffffffff
sub edx, eax
jmp 0x4cb26b
mov edx, eax
xor eax, eax
lea edi, [esp + 0x1c]
stosb byte es:[edi], al
push dword [esp + 0x1c]
lea eax, [ecx + 8]
push dword [esp + 0x20]
lea ecx, [esp + 0x1c]
call fcn.004ce507
pop ecx
pop ecx
mov byte [esp + 0x80], 5
jmp 0x4cb30b
xor ecx, ecx
push ecx
mov eax, 0x48cd70
push eax
movzx eax, byte [0x552043]
push eax
movzx eax, byte [0x552057]
push eax
push ecx
lea ecx, [ebx + 8]
mov eax, esp
mov dword [esp + 0x30], esp
call fcn.004cc741
lea eax, [esp + 0x58]
push eax
call fcn.004cd40f
add esp, 0x18
mov ecx, eax
lea edx, [esp + 0x5c]
mov eax, ebx
call fcn.004cd515
mov byte [esp + 0x80], 2
mov ecx, dword [esi]
add ecx, dword [ebx + 0x534]
push eax
lea esi, [ebx + 0x3b8]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edi
call fcn.0046d3db
mov ecx, eax
lea eax, [esp + 0x30]
call fcn.004cd527
mov byte [esp + 0x80], 1
mov eax, dword [esp + 0x64]
test eax, eax
je 0x4cb31b
add eax, 8
call fcn.0046dd18
mov byte [esp + 0x80], 0
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4cb333
add eax, 8
call fcn.0046dd18
or dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov byte [eax], 2
test ecx, ecx
je 0x4cb34f
call fcn.0044644b
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret