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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1a8
mov edi, dword [esp + 0x1bc]
call 0x4cbe86
pop ebp
mov bl, 0x10
test edi, edi
je 0x4cc354
mov bh, byte [edx]
mov al, bh
not al
test al, 0x1f
sete al
cmp edi, 1
sete ah
or ah, al
jne 0x4cc354
movsx eax, byte [edx + 1]
test eax, eax
js 0x4cc0a4
mov esi, 2
cmp bh, 0x30
jne 0x4cc354
mov dword [esp + 0xc], ebp
lea ebp, [eax + esi]
cmp ebp, edi
mov dword [esp + 0x10], ebp
ja 0x4cc354
add esi, edx
mov bh, 0x1a
test eax, eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], eax
je 0x4cc352
mov bl, byte [esi]
mov byte [esp], bl
not bl
test bl, 0x1f
je 0x4cc352
cmp eax, 1
je 0x4cc352
movsx ebx, byte [esi + 1]
test ebx, ebx
js 0x4cc1c1
mov ebp, 2
mov dword [esp + 4], ebx
mov bl, 0x10
mov bh, 0x1a
mov edi, dword [esp + 4]
mov dword [esp + 8], ebp
add edi, ebp
cmp edi, eax
ja 0x4cc352
cmp byte [esp], 0x30
mov dword [esp + 0x34], edi
jne 0x4cc352
mov dword [esp + 0x18], edx
mov dword [esp], ecx
mov dword [esp + 0xb4], edi
lea ecx, [esp + 0xc0]
lea edx, [esp + 0x2c]
push 0x30
call fcn.004cb520
add esp, 4
mov edi, dword [esp + 0xc0]
test edi, edi
je 0x4cc231
mov eax, dword [esp + 0xc4]
lea ecx, [esp + 0xc0]
lea edx, [esp + 0x2c]
mov dword [esp + 0x28], eax
call fcn.004cd020
mov edx, dword [esp + 0xc0]
test edx, edx
je 0x4cc231
mov eax, dword [esp + 0x34]
mov ecx, dword [esp]
cmp eax, dword [esp + 0x30]
mov eax, dword [esp + 0x1bc]
jne 0x4cc354
cmp dword [esp + 0x10], eax
mov bl, 2
jne 0x4cc354
mov ebx, dword [esp + 8]
mov eax, dword [esp + 0xc4]
add ebx, esi
mov dword [esp + 0x10], eax
mov ah, 0x39
mov dword [esp + 8], ebx
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 4]
test ebx, ebx
mov dword [esp + 0x20], ebx
je 0x4cc525
cmp ebx, 1
mov dword [esp + 0xb0], edx
je 0x4cc525
mov ebx, dword [esp + 8]
mov al, byte [ebx]
mov edx, eax
and dl, 0x1f
cmp dl, 0x1f
je 0x4cc525
movsx ecx, byte [ebx + 1]
mov dword [esp + 0x14], esi
test ecx, ecx
js 0x4cc36c
mov edx, 2
lea esi, [ecx + edx]
cmp esi, dword [esp + 4]
ja 0x4cc482
cmp al, 0xa0
mov dword [esp + 0x24], esi
jne 0x4cc482
mov eax, dword [esp + 8]
add eax, edx
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0xb8]
mov dword [esp + 0x34], 0
push 2
call fcn.004cb520
add esp, 4
mov ecx, dword [esp + 0xb8]
test ecx, ecx
je 0x4cc48d
mov esi, dword [esp + 0xbc]
mov al, 0x1a
test esi, esi
je 0x4cc53f
movzx edx, byte [ecx]
test dl, dl
je 0x4cc52d
js 0x4cc53f
cmp esi, 1
je 0x4cc495
jmp 0x4cc53f
movzx eax, al
add eax, 0xffffff7f
cmp eax, 3
ja 0x4cc354
mov eax, dword [eax*4 + 0x4cc81c]
add eax, ebp
jmp eax
mov edi, dword [esp + 0xc]
mov dword [esp + 0x14], esi
movzx esi, bl
mov bl, 0x10
add esi, 0xffffff7f
cmp esi, 3
ja 0x4cc368
mov esi, dword [esi*4 + 0x4cc82c]
add esi, edi
jmp esi
mov bh, byte [esp + 0xc4]
mov ecx, dword [esp]
jmp 0x4cc352
mov bl, bh
mov byte [ecx + 4], bl
mov dword [ecx], 0x80000001
add esp, 0x1a8
pop esi
pop edi
pop ebx
pop ebp
ret
mov bl, 0x1a
jmp 0x4cc354
movzx ecx, cl
add ecx, 0xffffff7f
cmp ecx, 3
ja 0x4cc482
mov edx, dword [esp + 0xc]
add edx, dword [ecx*4 + 0x4cc83c]
jmp edx
mov ecx, dword [esp]
mov byte [ecx + 4], ah
jmp 0x4cc357
movzx edx, byte [esp + 0xbc]
cmp dl, 2
mov eax, 0x46
mov esi, 0x39
cmove esi, eax
test ecx, ecx
movzx eax, dl
cmovne eax, esi
cmp al, 0x46
jne 0x4cc53f
mov eax, dword [esp + 0x34]
mov ecx, dword [esp]
cmp eax, dword [esp + 0x30]
mov ah, 0x39
jne 0x4cc525
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x1c]
push 2
call fcn.004cb520
add esp, 4
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x4cc706
mov ebp, dword [esp + 0x30]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x1c]
push 0x30
call fcn.004cb520
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4cc706
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0x30], ecx
jne 0x4cc54a
push dword [esp + 0x28]
push edi
push eax
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
mov ecx, dword [esp]
test eax, eax
mov ah, 0x35
je 0x4cc557
mov byte [ecx + 4], ah
jmp 0x4cc357
dec esi
je 0x4cc53d
movzx edx, byte [ecx + 1]
test dl, dl
jns 0x4cc53f
jmp 0x4cc096
mov al, 0x39
mov ecx, dword [esp]
mov byte [ecx + 4], al
jmp 0x4cc357
mov ecx, dword [esp]
mov ah, 0x35
mov byte [ecx + 4], ah
jmp 0x4cc357
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x1c]
push 0x30
call fcn.004cb520
add esp, 4
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x4cc706
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x1c]
mov dword [esp + 0xc], eax
push 0x30
call fcn.004cb520
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
mov dword [esp + 4], eax
je 0x4cc706
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x1c]
mov dword [esp + 8], eax
push 0x30
call fcn.004cb520
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
mov dword [esp + 0xac], eax
je 0x4cc706
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x1c]
mov dword [esp + 0xa8], eax
push 0x30
call fcn.004cb520
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4cc706
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0xb4]
cmp esi, dword [esp + 0x20]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x48], edi
lea edi, [esp + 0x34]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0xb0]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 4]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 8]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0xac]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0xa8]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1bc]
mov dword [esp + 0x78], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0x2c], 0x80000000
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
jne 0x4cc715
mov ebp, dword [esp + 0x18]
mov ebx, ebp
shr ebx, 8
push 0x74
push edi
lea eax, [esp + 0xc8]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, ebp
mov dword [esp + 0xc], 0x80000000
mov edi, esi
mov byte [esp + 0x10], al
jmp 0x4cc7a0
mov ah, byte [esp + 0x30]
mov ecx, dword [esp]
mov byte [ecx + 4], ah
jmp 0x4cc357
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x2c]
call fcn.004cc850
mov ecx, dword [esp + 0x2c]
mov ebx, eax
cmp al, 0x46
mov dword [esp + 0xc], ecx
jne 0x4cc76f
movzx eax, byte [esp + 0x30]
movzx esi, byte [esp + 0x33]
movzx ebx, word [esp + 0x31]
mov byte [esp + 0x10], al
push 0x74
push edi
lea eax, [esp + 0xc8]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp dword [esp + 0xc], 0x80000001
jne 0x4cc793
mov ecx, dword [esp]
mov ah, byte [esp + 0x10]
mov byte [ecx + 4], ah
jmp 0x4cc357
test dword [esp + 0xc], 0x7fffffff
je 0x4cc78b
push dword [esp + 0x30]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp]
jmp 0x4cc354
shl esi, 0x10
mov edi, dword [esp + 0x24]
or ebx, esi
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x134]
push 0x74
lea ecx, [esp + 0xc4]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movzx eax, byte [esp + 0x10]
shl ebx, 8
or ebx, eax
cmp edi, esi
jne 0x4cc7ea
mov eax, dword [esp]
lea esi, [esp + 0x134]
mov ecx, 0x1d
lea edi, [eax + 8]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], ebx
jmp 0x4cc35d
mov eax, dword [esp]
test dword [esp + 0xc], 0x7fffffff
mov byte [eax + 4], 4
mov dword [eax], 0x80000001
je 0x4cc35d
push ebx
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4cc35d