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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
call 0x4c67cc
pop eax
mov ebx, ecx
mov ebp, dword [esp + 0x74]
mov esi, dword [esp + 0x70]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], ebx
inc eax
mov dword [esp + 0x24], eax
jmp 0x4c6817
cmp byte [esp + 0xc], 0
mov ebx, dword [esp + 8]
je 0x4c75f4
cmp esi, ebp
je 0x4c6f50
mov dword [esp], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 4], ecx
mov ecx, esi
mov ebx, esi
nop
movzx eax, byte [ebx]
test al, al
js 0x4c6850
lea esi, [ebx + 1]
cmp eax, 0xd
jbe 0x4c68c0
jmp 0x4c68e0
movzx edi, byte [ebx + 1]
mov edx, eax
and edx, 0x1f
and edi, 0x3f
cmp al, 0xdf
jbe 0x4c6890
movzx esi, byte [ebx + 2]
shl edi, 6
and esi, 0x3f
or esi, edi
cmp al, 0xf0
jb 0x4c68a1
movzx eax, byte [ebx + 3]
and edx, 7
shl esi, 6
lea edi, [ebx + 4]
shl edx, 0x12
and eax, 0x3f
or eax, esi
mov esi, edi
or eax, edx
cmp eax, 0xd
jbe 0x4c68c0
jmp 0x4c68e0
shl edx, 6
lea esi, [ebx + 2]
or edx, edi
mov eax, edx
cmp eax, 0xd
jbe 0x4c68c0
jmp 0x4c68e0
shl edx, 0xc
lea edi, [ebx + 3]
or esi, edx
mov eax, esi
mov esi, edi
cmp eax, 0xd
ja 0x4c68e0
nop word cs:[eax + eax]
nop dword [eax]
mov edx, 0x2600
bt edx, eax
jae 0x4c68e0
cmp esi, ebp
mov ebx, esi
jne 0x4c6830
jmp 0x4c6f00
mov ebp, 1
cmp eax, 0x80
jb 0x4c6905
mov ebp, 2
cmp eax, 0x800
jb 0x4c6905
cmp eax, 0x10000
mov ebp, 4
sbb ebp, 0
mov edx, dword [esp + 0x74]
mov edi, dword [esp]
sub edx, ebx
cmp ebp, edx
jae 0x4c691d
cmp byte [ebx + ebp], 0xbf
jg 0x4c6923
jmp 0x4c782b
jne 0x4c782b
cmp eax, 0x3e
mov dword [esp + 0x14], esi
jg 0x4c6945
cmp eax, 0x23
je 0x4c6965
cmp eax, 0x2f
jne 0x4c6973
mov ecx, dword [esp + 8]
cmp byte [ecx + 0x20], 2
je 0x4c6973
jmp 0x4c73f2
cmp eax, 0x3f
je 0x4c6965
cmp eax, 0x5c
jne 0x4c6973
cmp byte [esp + 0x1c], 2
je 0x4c6973
mov ecx, dword [esp + 8]
cmp byte [ecx + 0x20], 2
je 0x4c6973
jmp 0x4c73d9
mov edx, dword [esp + 8]
cmp byte [edx + 0x20], 0
je 0x4c73c0
mov edx, dword [esp + 8]
mov ecx, dword [edx + 0x18]
mov edx, dword [edx + 0x1c]
push dword [esp + 0x74]
push esi
push eax
call fcn.004ca2c0
add esp, 0xc
cmp byte [esp + 0x1c], 0
jne 0x4c6bcc
cmp edi, dword [esp + 0x6c]
mov edx, edi
jbe 0x4c6a23
mov eax, dword [esp + 8]
mov ecx, edx
sub ecx, dword [esp + 0x24]
mov eax, dword [eax + 4]
jbe 0x4c69c1
mov edx, dword [esp + 0x24]
cmp byte [eax + edx], 0xbf
mov edx, edi
jle 0x4c782b
cmp ecx, 2
jne 0x4c6a23
mov edx, dword [esp + 0x24]
movzx ecx, byte [eax + edx]
and cl, 0xdf
add cl, 0xbf
cmp cl, 0x19
ja 0x4c6bcc
cmp byte [eax + edx + 1], 0x3a
mov ecx, dword [esp + 4]
jne 0x4c6ee0
mov esi, dword [esp + 8]
mov edx, edi
cmp edi, dword [esi]
jne 0x4c6a02
mov ecx, esi
call fcn.00498280
mov eax, dword [esi + 4]
mov edx, edi
mov byte [eax + edx], 0x2f
inc edx
inc dword [esp + 0x18]
mov dword [esi + 8], edx
mov esi, dword [esp + 0x14]
mov ecx, edx
mov eax, dword [esp + 8]
cmp byte [eax + 0x20], 2
je 0x4c6a35
jmp 0x4c6be0
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp byte [eax + 0x20], 2
jne 0x4c6be0
cmp byte [esp + 0x1c], 2
jne 0x4c6d49
mov eax, dword [esp + 8]
mov edi, edx
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x10], edx
mov edx, edi
mov dword [esp + 0x20], eax
jmp 0x4c6a91
lea esi, [edx + ebp]
mov eax, edx
mov ecx, ebp
mov ebp, dword [esp + 8]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x20], edx
add eax, edx
push ecx
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebp + 8], esi
mov edx, esi
mov ecx, esi
mov ebx, dword [esp + 0xc]
mov esi, dword [esp + 0x14]
mov ebp, edi
test ebp, ebp
je 0x4c6ecf
movzx eax, byte [ebx]
test al, al
js 0x4c6ab1
mov ecx, eax
shr ecx, 5
mov ecx, dword [ecx*4 + 0xfd0258]
bt ecx, eax
jae 0x4c6b20
inc ebx
dec ebp
mov dword [esp + 0xc], ebx
mov edi, ebp
lea ebx, [eax + eax*2 + 0xf919fe]
mov ebp, 3
mov eax, dword [esp + 0x10]
sub eax, edx
cmp eax, ebp
jae 0x4c6a60
mov ecx, edx
mov dword [esp], edx
mov edx, dword [esp + 0x10]
add ecx, ebp
jb 0x4c782b
lea esi, [edx + edx]
mov eax, 8
cmp esi, ecx
cmovbe esi, ecx
cmp esi, 9
cmovb esi, eax
test esi, esi
js 0x4c782b
test edx, edx
mov dword [esp + 4], ecx
je 0x4c6b74
mov eax, dword [esp + 0x20]
mov dword [esp + 0x34], eax
mov eax, 1
mov dword [esp + 0x3c], edx
jmp 0x4c6b76
mov dword [esp], edx
mov edx, 1
mov dword [esp + 0xc], 1
mov edi, ebp
sub edi, edx
je 0x4c6bc2
movsx ecx, byte [ebx + edx]
mov eax, edx
test ecx, ecx
js 0x4c6b58
mov edx, ecx
shr edx, 5
mov esi, dword [edx*4 + 0xfd0258]
lea edx, [eax + 1]
bt esi, ecx
jae 0x4c6b30
mov edx, dword [esp]
lea ecx, [eax - 1]
cmp ecx, ebp
jae 0x4c782b
lea ecx, [ebx + eax]
mov ebp, eax
mov dword [esp + 0xc], ecx
jmp 0x4c6ac5
xor eax, eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x20], ebp
lea ecx, [esp + 0x28]
mov edx, 1
push eax
push esi
call fcn.0041c420
add esp, 8
cmp dword [esp + 0x28], 1
je 0x4c782b
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 8]
mov dword [esp + 0x10], esi
mov eax, dword [esp]
mov ecx, dword [esp + 0x20]
mov dword [ebp + 4], edx
mov dword [ebp], esi
mov esi, dword [esp + 4]
jmp 0x4c6a6f
mov edx, dword [esp]
xor edi, edi
jmp 0x4c6ac5
mov ecx, dword [esp + 4]
mov edx, edi
mov eax, dword [esp + 8]
cmp byte [eax + 0x20], 2
je 0x4c6a35
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
jmp 0x4c6c1f
mov eax, dword [esp + 0xc]
mov ecx, ebp
mov ebp, dword [esp]
mov dword [esp + 0xc], eax
mov esi, ecx
add eax, ebp
push ecx
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 8]
mov ebx, dword [esp + 4]
add ebp, esi
mov edx, ebp
mov ecx, ebp
mov dword [eax + 8], ebp
mov ebp, edi
test ebp, ebp
mov dword [esp], edx
je 0x4c6d34
movzx eax, byte [ebx]
test al, al
js 0x4c6c42
mov ecx, eax
shr ecx, 5
mov ecx, dword [ecx*4 + 0xfd0278]
bt ecx, eax
jae 0x4c6ca0
inc ebx
dec ebp
mov dword [esp + 4], ebx
mov edi, ebp
lea ebx, [eax + eax*2 + 0xf919fe]
mov ebp, 3
mov ecx, dword [esp + 0x10]
mov esi, dword [esp]
mov eax, ecx
sub eax, esi
cmp eax, ebp
jae 0x4c6bf0
add esi, ebp
jb 0x4c782b
lea eax, [ecx + ecx]
cmp eax, esi
cmova esi, eax
mov eax, 8
cmp esi, 9
cmovb esi, eax
test esi, esi
js 0x4c782b
mov eax, dword [esp + 0xc]
test ecx, ecx
je 0x4c6ced
mov dword [esp + 0x34], eax
mov eax, 1
mov dword [esp + 0x3c], ecx
jmp 0x4c6cef
mov edx, 1
mov dword [esp + 4], 1
nop dword [eax]
mov edi, ebp
sub edi, edx
je 0x4c6d2d
movsx ecx, byte [ebx + edx]
mov eax, edx
test ecx, ecx
js 0x4c6cd4
mov edx, ecx
shr edx, 5
mov esi, dword [edx*4 + 0xfd0278]
lea edx, [eax + 1]
bt esi, ecx
jae 0x4c6cb0
lea ecx, [eax - 1]
cmp ecx, ebp
jae 0x4c782b
lea ecx, [ebx + eax]
mov ebp, eax
mov dword [esp + 4], ecx
jmp 0x4c6c56
xor eax, eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x34]
lea ecx, [esp + 0x28]
mov edx, 1
push eax
push esi
call fcn.0041c420
add esp, 8
cmp dword [esp + 0x28], 1
je 0x4c782b
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 8]
mov ecx, ebp
mov dword [esp + 0x10], esi
mov dword [edx + 4], eax
mov dword [edx], esi
jmp 0x4c6bf6
xor edi, edi
jmp 0x4c6c56
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x74]
cmp esi, ebp
jne 0x4c6826
jmp 0x4c6f04
mov eax, dword [esp + 8]
mov edi, edx
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0xc], edx
mov edx, edi
mov dword [esp + 0x10], eax
jmp 0x4c6d8c
mov ecx, ebp
add ebp, edx
mov eax, edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x10], edx
add eax, edx
push ecx
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 8]
mov ebx, dword [esp + 4]
mov edx, ebp
mov ecx, ebp
mov dword [eax + 8], ebp
mov ebp, edi
test ebp, ebp
je 0x4c6ecf
movzx eax, byte [ebx]
test al, al
js 0x4c6dac
mov ecx, eax
shr ecx, 5
mov ecx, dword [ecx*4 + 0xfd0268]
bt ecx, eax
jae 0x4c6e20
inc ebx
dec ebp
mov dword [esp + 4], ebx
mov edi, ebp
lea ebx, [eax + eax*2 + 0xf919fe]
mov ebp, 3
mov eax, dword [esp + 0xc]
sub eax, edx
cmp eax, ebp
jae 0x4c6d60
mov ecx, edx
mov dword [esp], edx
mov edx, dword [esp + 0xc]
add ecx, ebp
jb 0x4c782b
lea esi, [edx + edx]
mov eax, 8
cmp esi, ecx
cmovbe esi, ecx
cmp esi, 9
cmovb esi, eax
test esi, esi
js 0x4c782b
mov dword [esp + 0x20], ebp
mov ebp, ecx
test edx, edx
je 0x4c6e78
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], eax
mov eax, 1
mov dword [esp + 0x3c], edx
jmp 0x4c6e7a
mov dword [esp], edx
mov edx, 1
mov dword [esp + 4], 1
mov edi, ebp
sub edi, edx
je 0x4c6ec1
movsx ecx, byte [ebx + edx]
mov eax, edx
test ecx, ecx
js 0x4c6e58
mov edx, ecx
shr edx, 5
mov esi, dword [edx*4 + 0xfd0268]
lea edx, [eax + 1]
bt esi, ecx
jae 0x4c6e30
mov edx, dword [esp]
lea ecx, [eax - 1]
cmp ecx, ebp
jae 0x4c782b
mov esi, dword [esp + 0x14]
lea ecx, [ebx + eax]
mov ebp, eax
mov dword [esp + 4], ecx
jmp 0x4c6dc0
xor eax, eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x34]
lea ecx, [esp + 0x28]
mov edx, 1
push eax
push esi
call fcn.0041c420
add esp, 8
cmp dword [esp + 0x28], 1
je 0x4c782b
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 8]
mov dword [esp + 0xc], esi
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], edx
mov dword [eax], esi
mov esi, dword [esp + 0x14]
mov eax, dword [esp]
jmp 0x4c6d6a
mov esi, dword [esp + 0x14]
mov edx, dword [esp]
xor edi, edi
jmp 0x4c6dc0
mov dword [esp], edx
mov ebp, dword [esp + 0x74]
cmp esi, ebp
jne 0x4c6826
jmp 0x4c6f04
mov edx, edi
mov eax, dword [esp + 8]
cmp byte [eax + 0x20], 2
je 0x4c6a35
jmp 0x4c6be0
mov ecx, dword [esp + 4]
cmp dword [esp + 0x18], ecx
ja 0x4c782b
mov eax, dword [esp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 4], ecx
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4c6f3f
cmp eax, ecx
jae 0x4c6f3f
cmp byte [edx + eax], 0xbf
jle 0x4c782b
mov dword [esp + 0xc], 0
mov ebx, ecx
jmp 0x4c6f63
mov edx, dword [ebx + 4]
mov ebx, ecx
mov eax, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 4], ecx
mov edi, eax
not eax
add eax, ecx
cmp eax, 5
ja 0x4c71d6
mov eax, dword [eax*4 + 0x4c7830]
mov ecx, dword [esp + 4]
mov dword [esp], edx
add eax, dword [esp + 0x50]
jmp eax
mov ecx, dword [esp + 4]
jmp 0x4c6808
mov esi, ecx
mov ebp, dword [esp + 0x74]
mov ecx, dword [esp + 4]
cmp dword [esp + 0x18], ecx
jbe 0x4c6f0e
jmp 0x4c782b
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4c73f6
mov ecx, dword [esi + 0x1c]
push 0
push eax
call dword [ecx + 0x14]
add esp, 8
jmp 0x4c73f6
mov esi, dword [esp + 8]
cmp edi, dword [esi]
mov ebp, dword [esp + 0x74]
jne 0x4c7405
mov ecx, esi
call fcn.00498280
mov ecx, dword [esp]
mov edi, dword [esi + 4]
lea eax, [ecx + 1]
mov byte [edi + ecx], 0x2f
mov dword [esi + 8], eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp eax, ecx
ja 0x4c782b
test eax, eax
je 0x4c745a
mov ecx, dword [esp + 4]
cmp eax, ecx
jae 0x4c7451
mov ebx, ecx
cmp byte [edi + eax], 0xbf
mov ecx, dword [esp]
mov dl, 1
mov dword [esp + 0xc], edx
mov edx, edi
jg 0x4c6f63
jmp 0x4c782b
mov ecx, dword [esp]
jne 0x4c782b
mov dl, 1
test ecx, ecx
mov dword [esp + 0xc], edx
je 0x4c747c
mov ecx, dword [esp + 4]
mov edx, edi
test ecx, ecx
mov ebx, ecx
mov ecx, dword [esp]
jne 0x4c6f63
jmp 0x4c782b
xor ecx, ecx
mov ebx, 1
mov edx, edi
jmp 0x4c6f63
cmp byte [esp + 0x1c], 0
jne 0x4c77c4
mov eax, dword [esp + 0x6c]
mov ecx, dword [ebx + 4]
mov edi, dword [ebx + 8]
test eax, eax
mov dword [esp + 0xc], ecx
je 0x4c7624
cmp edi, eax
jbe 0x4c764f
mov ecx, dword [esp + 0xc]
cmp byte [ecx + eax], 0xbf
jg 0x4c7655
jmp 0x4c782b
test edi, edi
js 0x4c782b
je 0x4c77d0
movzx eax, byte [0xfd520d]
xor ecx, ecx
mov edx, edi
call fcn.00494530
test eax, eax
jne 0x4c77d5
jmp 0x4c782b
jne 0x4c782b
sub edi, eax
jb 0x4c782b
js 0x4c782b
mov edx, 1
je 0x4c7688
movzx eax, byte [0xfd520d]
xor ecx, ecx
mov edx, edi
call fcn.00494530
mov edx, eax
mov eax, dword [esp + 0x6c]
test edx, edx
je 0x4c782b
mov ecx, dword [esp + 0xc]
mov dword [ebx + 8], eax
add eax, ecx
push edi
push eax
mov dword [esp + 8], edx
push edx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x78]
add esp, 0xc
cmp eax, dword [ebx]
mov dword [esp + 4], edi
jne 0x4c76c2
mov ecx, ebx
mov edi, eax
call fcn.00498280
mov eax, edi
mov edi, dword [esp + 4]
mov ecx, dword [ebx + 4]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
xor edx, edx
mov dword [esp + 0x14], esi
mov byte [ecx + eax], 0x2f
inc eax
mov ecx, edi
mov dword [esp + 0x10], eax
mov dword [ebx + 8], eax
mov eax, dword [esp]
add eax, edi
sub ecx, eax
jmp 0x4c76f8
inc edx
add edx, ecx
cmp ebx, 0x2f
jne 0x4c7776
cmp edx, edi
je 0x4c7774
mov eax, edx
mov edx, dword [esp]
add edx, eax
movzx ebx, byte [edx]
test bl, bl
jns 0x4c76f0
movzx ebp, byte [edx + 1]
mov edi, ebx
and edi, 0x1f
and ebp, 0x3f
cmp bl, 0xdf
jbe 0x4c7745
movzx esi, byte [edx + 2]
shl ebp, 6
and esi, 0x3f
or esi, ebp
cmp bl, 0xf0
jb 0x4c7755
movzx ebx, byte [edx + 3]
and edi, 7
shl esi, 6
add edx, 4
shl edi, 0x12
and ebx, 0x3f
or ebx, esi
or ebx, edi
jmp 0x4c775f
shl edi, 6
add edx, 2
or edi, ebp
mov ebp, dword [esp + 0x74]
mov ebx, edi
jmp 0x4c7767
shl edi, 0xc
add edx, 3
or esi, edi
mov ebx, esi
mov ebp, dword [esp + 0x74]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 4]
add edx, ecx
cmp ebx, 0x2f
je 0x4c76f8
jmp 0x4c7776
mov eax, edi
mov ecx, dword [esp]
sub edi, eax
lea ebx, [ecx + eax]
mov eax, dword [esp + 8]
mov eax, dword [eax]
sub eax, dword [esp + 0x10]
cmp eax, edi
jb 0x4c7801
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
add ecx, eax
push edi
push ebx
push ecx
mov ebx, eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add ebx, edi
mov eax, dword [esp + 8]
cmp dword [esp + 4], 0
mov dword [eax + 8], ebx
je 0x4c77c4
push dword [esp]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
mov edx, ebp
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 1
mov dword [ebx + 8], 0
push edi
push dword [esp + 0x10]
mov dword [esp + 8], eax
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor eax, eax
cmp eax, dword [ebx]
mov dword [esp + 4], edi
je 0x4c76ac
jmp 0x4c76c2
mov esi, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov ecx, esi
push 1
push 1
push edi
call fcn.004ea1e0
add esp, 0xc
mov eax, dword [esi + 4]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 8]
mov esi, dword [esp + 0x14]
jmp 0x4c7790
ud2