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

Disassembly:
push esi
push edi
push ebx
push ebp
sub esp, 0x4c
mov ebp, dword [esp + 0x64]
lea eax, [esp + 0x2c]
push 0x1c
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov esi, dword [esp + 0x60]
test eax, eax
je 0x4c2787
mov ebx, dword [esp + 0x30]
movzx eax, word [ebx]
cmp eax, 0x5a4d
jne 0x4c2787
mov edx, dword [ebx + 0x3c]
add edx, ebx
movzx eax, word [edx + 0x14]
movzx ecx, word [edx + 6]
test ecx, ecx
lea eax, [edx + eax + 0x18]
jbe 0x4c2787
mov dword [esp + 4], ecx
xor ecx, ecx
mov dword [esp], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 8], ecx
mov dword [esp + 0x10], ebx
mov ebx, eax
mov dword [esp + 0xc], edx
mov ebp, dword [esp + 0x14]
mov esi, dword [esp]
jmp 0x4c270f
mov dword [esp + 8], edi
mov dword [esp + 0xc], edx
mov edi, dword [esp]
push 7
push str..trace
push ebx
call fcn.0049dc30
add esp, 0xc
test eax, eax
je 0x4c2730
mov dword [esp], edi
mov edi, dword [esp + 8]
mov edx, dword [esp + 0xc]
jmp 0x4c2752
mov edi, ebx
inc esi
mov dword [esp], edi
mov ebp, 1
mov edi, dword [esp + 8]
add ebx, 0x28
mov edx, dword [esp + 0xc]
movzx ecx, word [edx + 6]
cmp esi, ecx
jae 0x4c27be
test ebp, ebp
je 0x4c2704
test edi, edi
jne 0x4c2781
push 6
push str..text
push ebx
mov dword [esp + 0x18], edx
call fcn.0049dc30
mov edx, dword [esp + 0x18]
add esp, 0xc
test eax, eax
jne 0x4c2781
mov dword [esp + 4], ebx
inc esi
mov edi, 1
add ebx, 0x28
jmp 0x4c2746
add ebx, 0x28
inc esi
jmp 0x4c2746
push str.Unknown
push esi
call fcn.004c4d00
push str.Unknown
lea eax, [esi + 0x104]
push eax
call fcn.004c4d00
push str.Unknown
lea eax, [esi + 0x208]
push eax
call fcn.004c4d00
xor eax, eax
add esp, 0x64
pop ebp
pop ebx
pop edi
pop esi
ret
mov dword [esp + 0x14], ebp
mov ebx, dword [esp + 0x10]
mov edi, dword [esp]
mov esi, dword [esp + 0x60]
mov ebp, dword [esp + 0x64]
cmp dword [esp + 0x14], 0
je 0x4c2787
mov edx, dword [esp + 4]
mov ecx, dword [edx + 0xc]
mov edx, dword [edx + 8]
lea eax, [ebx + ecx + 1]
mov dword [esp], eax
movzx eax, byte [ecx + ebx]
xor ecx, ecx
cmp eax, 0xcc
jne 0x4c2812
mov ebp, dword [esp]
cmp ecx, edx
jae 0x4c2e4d
movzx eax, byte [ebp]
inc ecx
inc ebp
cmp eax, 0xcc
je 0x4c27f9
mov ebp, dword [esp + 0x64]
cmp ecx, edx
jae 0x4c2821
cmp eax, 0xe9
je 0x4c2787
mov eax, dword [edi + 8]
cmp eax, 0x16
mov dword [esp], eax
jb 0x4c2787
add ebx, dword [edi + 0xc]
xor edi, edi
mov edx, dword [esp + 0x68]
add ebx, edx
mov dword [esp + 0x48], ebx
jmp 0x4c2843
add ebx, esi
movzx eax, byte [ebx]
test eax, eax
jne 0x4c2854
mov esi, 1
jmp 0x4c292a
cmp eax, 0xa
jne 0x4c293a
test edx, edx
je 0x4c286a
cmp edx, dword [ebx + 8]
jbe 0x4c286a
mov eax, edx
jmp 0x4c286c
xor eax, eax
movzx ecx, word [ebx + 1]
cmp ecx, 2
jne 0x4c2e12
cmp byte [ebx + 3], 0
ja 0x4c2e12
add eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 8]
add eax, ecx
mov esi, dword [ebx + 4]
cmp ebp, eax
jae 0x4c292a
cmp ebp, ecx
jb 0x4c292a
mov dword [esp + 0x28], 0
mov esi, dword [esp + 0x60]
cmp byte [ebx], 0xa
jne 0x4c28f3
movzx eax, word [ebx + 1]
cmp eax, 2
je 0x4c2975
push str.Unknown
push esi
call fcn.004c4d00
push str.Unknown
lea eax, [esi + 0x104]
push eax
call fcn.004c4d00
push str.Unknown
lea eax, [esi + 0x208]
push eax
call fcn.004c4d00
xor eax, eax
add esp, 0x64
pop ebp
pop ebx
pop edi
pop esi
ret
push str.Unknown
push esi
call fcn.004c4d00
push str.Unknown
lea eax, [esi + 0x104]
push eax
call fcn.004c4d00
push str.Unknown
lea eax, [esi + 0x208]
push eax
call fcn.004c4d00
xor eax, eax
add esp, 0x64
pop ebp
pop ebx
pop edi
pop esi
ret
add edi, esi
cmp edi, dword [esp]
jae 0x4c2dd7
jmp 0x4c2841
mov esi, dword [esp + 0x60]
push str.Unknown
push esi
call fcn.004c4d00
push str.Unknown
lea eax, [esi + 0x104]
push eax
call fcn.004c4d00
push str.Unknown
lea eax, [esi + 0x208]
push eax
call fcn.004c4d00
xor eax, eax
add esp, 0x64
pop ebp
pop ebx
pop edi
pop esi
ret
cmp byte [ebx + 3], 0
ja 0x4c28bc
mov eax, dword [ebx + 4]
lea edx, [ebx + 0x16]
movzx ecx, word [ebx + 0x16]
mov dword [esp + 0x1c], eax
lea eax, [ebx + 0x18]
mov dword [esp + 0x10], edx
lea edx, [ebx + 0xc]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], eax
push 4
push edx
push ecx
call fcn.00487c50
add esp, 0xc
mov ecx, dword [esp + 0x28]
test ecx, ecx
jbe 0x4c2a31
mov eax, dword [esp + 0x10]
mov edx, 0x16
mov dword [esp + 0xc], eax
mov eax, ecx
shr eax, 1
test eax, eax
jbe 0x4c2d23
mov dword [esp + 8], 0
mov dword [esp], ecx
mov dword [esp + 4], edi
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0xc]
movzx ebp, word [esi]
inc ecx
cmp ecx, eax
lea esi, [ebp + esi + 2]
movzx edi, word [esi]
lea edx, [edx + ebp + 2]
lea edx, [edx + edi + 2]
lea esi, [esi + edi + 2]
jb 0x4c29e7
mov dword [esp + 8], ecx
mov eax, ecx
mov dword [esp + 0xc], esi
mov ecx, dword [esp]
mov edi, dword [esp + 4]
lea eax, [eax + eax + 1]
mov esi, dword [esp + 0x60]
mov ebp, dword [esp + 0x64]
dec eax
cmp ecx, eax
jbe 0x4c2a36
mov eax, dword [esp + 0xc]
movzx ecx, word [eax]
lea edx, [edx + ecx + 2]
jmp 0x4c2a36
mov edx, 0x16
imul ecx, dword [esp + 0x1c], 0x19
lea eax, [ebx + edx]
add edx, edi
add ebx, ecx
mov dword [esp + 0x24], edi
xor edi, edi
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0x20], edi
mov ecx, eax
mov ebp, dword [esp + 0xc]
cmp edx, ebx
je 0x4c2d9c
movzx edi, byte [ebp]
mov esi, edi
and esi, 0xc0
cmp esi, 0x80
jne 0x4c2a93
movzx edx, byte [ebp]
inc eax
and edx, 0x3f
lea ecx, [edx + ecx + 1]
cmp ecx, dword [esp + 0x64]
jae 0x4c2b7d
jmp 0x4c2d2d
cmp esi, 0xc0
jne 0x4c2abb
movzx esi, byte [ebp]
and esi, 0x3f
movsx edx, byte [ebp + 1]
add eax, edx
lea ecx, [esi + ecx + 1]
cmp ecx, dword [esp + 0x64]
jae 0x4c2b7d
jmp 0x4c2be5
cmp edi, 0xd
ja case.0x4c2ac4.1
jmp dword [edi*4 + 0x4f2158]
mov esi, dword [esp + 0x60]
push str.Unknown
push esi
call fcn.004c4d00
push str.Unknown
lea eax, [esi + 0x104]
push eax
call fcn.004c4d00
push str.Unknown
lea eax, [esi + 0x208]
push eax
call fcn.004c4d00
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.004c4d00
push str.Unknown
lea eax, [esi + 0x104]
push eax
call fcn.004c4d00
push str.Unknown
lea eax, [esi + 0x208]
push eax
call fcn.004c4d00
xor eax, eax
add esp, 0x64
pop ebp
pop ebx
pop edi
pop esi
ret
mov edx, dword [ebp + 1]
lea ecx, [edx + ecx + 1]
cmp ecx, dword [esp + 0x64]
jae 0x4c2b7d
jmp 0x4c2ca4
movzx edx, word [ebp + 1]
lea ecx, [edx + ecx + 1]
cmp ecx, dword [esp + 0x64]
jae 0x4c2b7d
add ebp, 3
mov edx, ebp
sub edx, dword [esp + 0x48]
jmp 0x4c2a5c
movzx edx, byte [ebp + 1]
lea ecx, [edx + ecx + 1]
cmp ecx, dword [esp + 0x64]
jb 0x4c2be5
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x60]
push eax
push 0x4de400
lea edx, [esi + 0x208]
push edx
call fcn.0046c1f0
add esp, 0xc
test edi, edi
je 0x4c2d39
push dword [esp + 0x24]
push edi
push esi
call fcn.00487c50
add esp, 0xc
mov eax, dword [esp + 0x24]
mov byte [eax + esi], 0
push dword [esp + 0x18]
push dword [esp + 0x18]
lea eax, [esi + 0x104]
push eax
call fcn.00487c50
add esp, 0xc
mov edx, dword [esp + 0x18]
xor eax, eax
mov byte [edx + esi + 0x104], 0
add esp, 0x4c
pop ebp
pop ebx
pop edi
pop esi
ret
add ebp, 2
mov edx, ebp
sub edx, dword [esp + 0x48]
jmp 0x4c2a5c
add eax, dword [ebp + 1]
add ebp, 5
mov edx, ebp
sub edx, dword [esp + 0x48]
jmp 0x4c2a5c
movsx edx, word [ebp + 1]
add ebp, 3
add eax, edx
mov edx, ebp
sub edx, dword [esp + 0x48]
jmp 0x4c2a5c
movsx edx, byte [ebp + 1]
add ebp, 2
add eax, edx
mov edx, ebp
sub edx, dword [esp + 0x48]
jmp 0x4c2a5c
mov edi, dword [ebp + 1]
mov edx, dword [esp + 0x10]
inc edi
mov dword [esp + 4], edx
mov edx, edi
shr edx, 0x1f
add edx, edi
sar edx, 1
test edx, edx
jbe 0x4c2d57
mov dword [esp + 0xc], ebp
xor esi, esi
mov dword [esp + 8], ecx
mov dword [esp], eax
mov ebp, dword [esp + 4]
movzx eax, word [ebp]
inc esi
cmp esi, edx
lea ebp, [ebp + eax + 2]
movzx eax, word [ebp]
lea ecx, [ebp + 2]
lea ebp, [ebp + eax + 2]
jb 0x4c2c5a
mov dword [esp + 4], ebp
lea edx, [esi + esi + 1]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 8]
mov eax, dword [esp]
mov ebp, dword [esp + 0xc]
dec edx
cmp edi, edx
jbe 0x4c2ca4
mov esi, dword [esp + 4]
movzx edx, word [esi]
lea edi, [esi + 2]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edi
add ebp, 5
mov edx, ebp
sub edx, dword [esp + 0x48]
jmp 0x4c2a5c
mov ecx, dword [ebp + 4]
cmp ecx, dword [esp + 0x64]
ja 0x4c2d61
movzx esi, word [ebp + 2]
lea edx, [ebp + 8]
test esi, esi
mov dword [esp + 0x24], esi
je 0x4c2cd2
mov dword [esp + 0x20], edx
lea ebp, [ebp + esi + 8]
mov edx, ebp
sub edx, dword [esp + 0x48]
jmp 0x4c2a5c
mov esi, dword [esp + 0x60]
push str.Unknown
push esi
call fcn.004c4d00
push str.Unknown
lea eax, [esi + 0x104]
push eax
call fcn.004c4d00
push str.Unknown
lea eax, [esi + 0x208]
push eax
call fcn.004c4d00
xor eax, eax
add esp, 0x64
pop ebp
pop ebx
pop edi
pop esi
ret
inc ebp
inc edx
jmp 0x4c2a5c
mov eax, 1
jmp 0x4c2a1f
inc ebp
mov edx, ebp
sub edx, dword [esp + 0x48]
jmp 0x4c2a5c
push str.Unknown
call fcn.00483890
push eax
push str.Unknown
push esi
call fcn.00487c50
add esp, 0x10
jmp 0x4c2bb8
mov edx, 1
jmp 0x4c2c8d
mov esi, dword [esp + 0x60]
push str.Unknown
push esi
call fcn.004c4d00
push str.Unknown
lea eax, [esi + 0x104]
push eax
call fcn.004c4d00
push str.Unknown
lea eax, [esi + 0x208]
push eax
call fcn.004c4d00
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.004c4d00
push str.Unknown
lea eax, [esi + 0x104]
push eax
call fcn.004c4d00
push str.Unknown
lea eax, [esi + 0x208]
push eax
call fcn.004c4d00
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.004c4d00
push str.Unknown
lea eax, [esi + 0x104]
push eax
call fcn.004c4d00
push str.Unknown
lea eax, [esi + 0x208]
push eax
call fcn.004c4d00
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.004c4d00
push str.Unknown
lea eax, [esi + 0x104]
push eax
call fcn.004c4d00
push str.Unknown
lea eax, [esi + 0x208]
push eax
call fcn.004c4d00
xor eax, eax
add esp, 0x64
pop ebp
pop ebx
pop edi
pop esi
ret
mov ebp, dword [esp + 0x64]
jmp 0x4c2821