Function at 0x4c9bd0
Capabilities:
Check for software breakpoints
Enumerate pe sections

Disassembly:
push esi
push edi
push ebx
push ebp
sub esp, 0x4c
lea eax, [esp + 0x2c]
push 0x1c
push eax
push dword [esp + 0x6c]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov esi, dword [esp + 0x60]
test eax, eax
je 0x4c9cba
mov ebp, dword [esp + 0x30]
movzx eax, word [ebp]
cmp eax, 0x5a4d
jne 0x4c9cba
mov ecx, dword [ebp + 0x3c]
add ecx, ebp
movzx ebx, word [ecx + 0x14]
movzx eax, word [ecx + 6]
lea ebx, [ecx + ebx + 0x18]
test eax, eax
jbe 0x4c9cba
xor edi, edi
mov esi, ecx
mov dword [esp], edi
mov dword [esp + 4], ebp
mov dword [esp + 0x10], edi
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov ebp, dword [esp]
jmp 0x4c9c42
mov dword [esp + 0x10], esi
mov esi, ecx
push 7
push 0x5139bc
push ebx
call fcn.004ce770
add esp, 0xc
test eax, eax
jne 0x4c9c6f
inc ebp
mov dword [esp + 0xc], ebx
add ebx, 0x28
movzx eax, word [esi + 6]
cmp ebp, eax
jae 0x4c9cf1
mov edi, 1
mov ecx, esi
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x4c9ca4
push 6
push 0x5139c4
push ebx
mov dword [esp + 0xc], ecx
call fcn.004ce770
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x4c9ca4
mov dword [esp + 8], ebx
inc ebp
mov esi, 1
add ebx, 0x28
jmp 0x4c9ca8
add ebx, 0x28
inc ebp
movzx eax, word [ecx + 6]
cmp ebp, eax
jae 0x4ca360
test edi, edi
jne 0x4c9c75
jmp 0x4c9c3c
push str.Unknown
push esi
call fcn.004e0950
push str.Unknown
lea eax, [esi + 0x104]
push eax
call fcn.004e0950
push str.Unknown
lea eax, [esi + 0x208]
push eax
call fcn.004e0950
xor eax, eax
add esp, 0x64
pop ebp
pop ebx
pop edi
pop esi
ret
mov ebp, dword [esp + 4]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 0x60]
mov ebx, dword [eax + 0xc]
mov edi, dword [eax + 8]
xor eax, eax
lea ecx, [ebp + ebx + 1]
movzx ebx, byte [ebx + ebp]
cmp ebx, 0xcc
jne 0x4c9d2a
cmp eax, edi
jae 0x4c9d36
movzx ebx, byte [ecx]
inc eax
inc ecx
cmp ebx, 0xcc
je 0x4c9d19
cmp eax, edi
jae 0x4c9d36
cmp ebx, 0xe9
je 0x4c9cba
mov eax, dword [edx + 8]
mov dword [esp], eax
cmp eax, 0x16
jb 0x4c9cba
mov eax, dword [edx + 0xc]
add ebp, eax
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x4c9d56
mov edx, dword [ecx]
jmp 0x4c9d58
xor edx, edx
add ebp, edx
xor ebx, ebx
mov dword [esp + 0x48], ebp
jmp 0x4c9d64
add ebp, edi
movzx eax, byte [ebp]
test eax, eax
jne 0x4c9d73
mov edi, 1
jmp 0x4c9dbd
cmp eax, 0xa
jne 0x4c9e5b
test edx, edx
je 0x4c9d89
cmp edx, dword [ebp + 8]
jbe 0x4c9d89
mov eax, edx
jmp 0x4c9d8b
xor eax, eax
movzx ecx, word [ebp + 1]
cmp ecx, 2
jne 0x4ca325
cmp byte [ebp + 3], 0
ja 0x4ca325
mov ecx, eax
add ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
add ecx, esi
mov edi, dword [ebp + 4]
cmp ecx, dword [esp + 0x64]
jbe 0x4c9dbd
add esi, eax
cmp esi, dword [esp + 0x64]
jbe 0x4c9dca
add ebx, edi
cmp ebx, dword [esp]
jae 0x4c9e96
jmp 0x4c9d62
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], eax
mov esi, dword [esp + 0x60]
cmp byte [ebp], 0xa
jne 0x4c9e24
movzx eax, word [ebp + 1]
cmp eax, 2
je 0x4c9ed1
push str.Unknown
push esi
call fcn.004e0950
push str.Unknown
lea eax, [esi + 0x104]
push eax
call fcn.004e0950
push str.Unknown
lea eax, [esi + 0x208]
push eax
call fcn.004e0950
xor eax, eax
add esp, 0x64
pop ebp
pop ebx
pop edi
pop esi
ret
push str.Unknown
push esi
call fcn.004e0950
push str.Unknown
lea eax, [esi + 0x104]
push eax
call fcn.004e0950
push str.Unknown
lea eax, [esi + 0x208]
push eax
call fcn.004e0950
xor eax, eax
add esp, 0x64
pop ebp
pop ebx
pop edi
pop esi
ret
mov esi, dword [esp + 0x60]
push str.Unknown
push esi
call fcn.004e0950
push str.Unknown
lea eax, [esi + 0x104]
push eax
call fcn.004e0950
push str.Unknown
lea eax, [esi + 0x208]
push eax
call fcn.004e0950
xor eax, eax
add esp, 0x64
pop ebp
pop ebx
pop edi
pop esi
ret
mov esi, dword [esp + 0x60]
push str.Unknown
push esi
call fcn.004e0950
push str.Unknown
lea eax, [esi + 0x104]
push eax
call fcn.004e0950
push str.Unknown
lea eax, [esi + 0x208]
push eax
call fcn.004e0950
xor eax, eax
add esp, 0x64
pop ebp
pop ebx
pop edi
pop esi
ret
cmp byte [ebp + 3], 0
ja 0x4c9ded
mov eax, dword [ebp + 4]
lea edx, [ebp + 0x16]
movzx ecx, word [edx]
lea edi, [ebp + 0x18]
mov dword [esp + 0xc], eax
lea eax, [ebp + 0xc]
mov dword [esp + 0x10], edx
lea edx, [esp + 0x24]
mov dword [edx - 0xc], ecx
mov dword [edx - 0x10], edi
push 4
push eax
push edx
call fcn.004cd870
add esp, 0xc
mov edi, dword [esp + 0x24]
test edi, edi
jbe 0x4c9f74
mov eax, dword [esp + 0x10]
mov ecx, 0x16
mov dword [esp + 8], eax
mov eax, edi
shr eax, 1
je 0x4ca27d
mov dword [esp], edi
xor edx, edx
mov dword [esp + 4], ebx
mov esi, dword [esp + 8]
movzx ebx, word [esi]
inc edx
lea esi, [esi + ebx + 2]
movzx edi, word [esi]
lea ecx, [ecx + ebx + 2]
lea ecx, [ecx + edi + 2]
lea esi, [esi + edi + 2]
cmp edx, eax
jb 0x4c9f34
mov dword [esp + 8], esi
lea eax, [edx + edx + 1]
mov edi, dword [esp]
mov ebx, dword [esp + 4]
mov esi, dword [esp + 0x60]
dec eax
cmp eax, edi
jae 0x4c9f79
mov eax, dword [esp + 8]
movzx edx, word [eax]
lea ecx, [ecx + edx + 2]
jmp 0x4c9f79
mov ecx, 0x16
imul eax, dword [esp + 0xc], 0x19
lea edx, [ecx + ebp]
add ecx, ebx
add ebp, eax
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x1c], ebx
xor ebx, ebx
mov dword [esp + 0x20], ebx
xor edi, edi
mov ebx, dword [esp + 0x1c]
cmp ecx, ebp
je 0x4ca2ea
movzx esi, byte [edx]
mov eax, esi
and eax, 0xc0
cmp eax, 0x80
jne 0x4c9fd0
movzx eax, byte [edx]
inc edi
and eax, 0x3f
lea ebx, [ebx + eax + 1]
cmp ebx, dword [esp + 0x64]
jae 0x4ca0ca
inc edx
mov ecx, edx
sub ecx, dword [esp + 0x48]
jmp 0x4c9f99
cmp eax, 0xc0
jne 0x4c9ffc
movzx ecx, byte [edx]
and ecx, 0x3f
movsx eax, byte [edx + 1]
add edi, eax
lea ebx, [ebx + ecx + 1]
cmp ebx, dword [esp + 0x64]
jae 0x4ca0ca
add edx, 2
mov ecx, edx
sub ecx, dword [esp + 0x48]
jmp 0x4c9f99
cmp esi, 0xd
ja 0x4ca23b
movzx eax, word [esi*2 + 0x513970]
add eax, 0x4ca014
jmp eax
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x60]
mov ebp, 0x506d00
mov dword [esp], ebp
mov dword [esp + 4], edi
call fcn.0044f1b0
mov ecx, eax
lea eax, [esp + 4]
push eax
push 0
push ebp
push 0xffffffffffffffff
mov ebp, dword [ecx]
lea edx, [esi + 0x208]
push edx
push dword [ecx + 4]
or ebp, 1
push ebp
call fcn.004d7b10
add esp, 0x1c
test ebx, ebx
je 0x4ca287
push dword [esp + 0xc]
push ebx
push esi
call fcn.004cd870
add esp, 0xc
mov eax, dword [esp + 0xc]
mov byte [eax + esi], 0
push dword [esp + 0x18]
push dword [esp + 0x18]
lea eax, [esi + 0x104]
push eax
call fcn.004cd870
add esp, 0xc
mov eax, dword [esp + 0x18]
mov byte [eax + esi + 0x104], 0
xor eax, eax
add esp, 0x4c
pop ebp
pop ebx
pop edi
pop esi
ret
mov esi, dword [esp + 0x60]
push str.Unknown
push esi
call fcn.004e0950
push str.Unknown
lea eax, [esi + 0x104]
push eax
call fcn.004e0950
push str.Unknown
lea eax, [esi + 0x208]
push eax
call fcn.004e0950
xor eax, eax
add esp, 0x64
pop ebp
pop ebx
pop edi
pop esi
ret
mov eax, 1
jmp 0x4c9f62
push str.Unknown
call fcn.004e0690
push eax
push str.Unknown
push esi
call fcn.004cd870
add esp, 0x10
jmp 0x4ca125
mov esi, dword [esp + 0x60]
push str.Unknown
push esi
call fcn.004e0950
push str.Unknown
lea eax, [esi + 0x104]
push eax
call fcn.004e0950
push str.Unknown
lea eax, [esi + 0x208]
push eax
call fcn.004e0950
xor eax, eax
add esp, 0x64
pop ebp
pop ebx
pop edi
pop esi
ret
mov esi, dword [esp + 0x60]
push str.Unknown
push esi
call fcn.004e0950
push str.Unknown
lea eax, [esi + 0x104]
push eax
call fcn.004e0950
push str.Unknown
lea eax, [esi + 0x208]
push eax
call fcn.004e0950
xor eax, eax
add esp, 0x64
pop ebp
pop ebx
pop edi
pop esi
ret
mov ebp, dword [esp + 4]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 0x60]
test edi, edi
jne 0x4c9d01
jmp 0x4c9cba