Function at 0x4cd1cc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x27e0
call fcn.0050db40
push esi
push edi
mov eax, dword [0x5108c8]
mov dword [ebp - 0x2788], eax
mov dword [ebp - 0x2784], 0
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [ebp - 0x18], eax
call fcn.004cdb6e
sub eax, 6
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x2780]
push edx
lea eax, [ebp - 0x267c]
push eax
push 0
call fcn.004da4e8
add esp, 0x10
test eax, eax
je 0x4cdb52
mov ecx, dword [ebp - 0x266e]
and ecx, 0xff
test ecx, ecx
je 0x4cd26c
call fcn.004d95f7
test eax, eax
je 0x4cd26c
push 0x10
push 0x4016ec
push 0x4016f4
push 0
call fcn.004db7a8
add esp, 0x10
xor eax, eax
jmp 0x4cdb68
push 0x2660
lea edx, [ebp - 0x267c]
push edx
push 0x50e058
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov byte [ebp - 0x27b8], 4
mov byte [ebp - 0x27b7], 8
mov byte [ebp - 0x27b6], 0
mov byte [ebp - 0x27b5], 0
mov byte [ebp - 0x27b4], 0xc8
mov byte [ebp - 0x27b3], 0
mov byte [ebp - 0x27b2], 0
mov byte [ebp - 0x27b1], 0
mov byte [ebp - 0x27b0], 0x18
mov byte [ebp - 0x27af], 0x61
mov byte [ebp - 0x27ae], 0xe
mov byte [ebp - 0x27ad], 0
mov byte [ebp - 0x27ac], 0x22
mov byte [ebp - 0x27ab], 0
mov byte [ebp - 0x27aa], 0
mov byte [ebp - 0x27a9], 0
mov byte [ebp - 0x27a8], 0x90
mov byte [ebp - 0x27a7], 0x66
mov byte [ebp - 0x27a6], 0xe
mov byte [ebp - 0x27a5], 0
mov byte [ebp - 0x27a4], 0xe8
mov byte [ebp - 0x27a3], 2
mov byte [ebp - 0x27a2], 0
mov byte [ebp - 0x27a1], 0
mov byte [ebp - 0x27a0], 0
mov byte [ebp - 0x279f], 0
mov byte [ebp - 0x279e], 0
mov byte [ebp - 0x279d], 0
mov byte [ebp - 0x279c], 0
mov byte [ebp - 0x279b], 0
mov byte [ebp - 0x279a], 0
mov byte [ebp - 0x2799], 0
push 0x2660
lea eax, [ebp - 0x27b8]
push eax
push 0x64
push 0x50e058
call fcn.004ce92a
add esp, 0x10
mov ecx, dword [ebp - 0x2646]
and ecx, 0xff
test ecx, ecx
je 0x4cd3bf
mov edx, dword [ebp - 0x266c]
and edx, 0xff
cmp edx, 2
je 0x4cd3bf
mov eax, 0x2660
call fcn.0050db40
mov ecx, 0x998
mov esi, 0x50e058
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call dword [0x510c78]
mov eax, dword [ebp - 4]
sub eax, 0x2660
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x264c]
and ecx, 0xff
test ecx, ecx
je 0x4cd443
mov dword [ebp - 0x27e0], 0
push 4
mov edx, dword [0x5109d4]
push edx
lea eax, [ebp - 0x27e0]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 4
push 0x1000
mov ecx, dword [ebp - 0x27e0]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
sub edx, 4
push edx
mov eax, dword [0x5109d4]
add eax, 4
push eax
lea ecx, [ebp - 0x27e0]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.004e1790
add esp, 0x10
mov eax, dword [ebp - 0x27e0]
mov dword [ebp - 4], eax
jmp 0x4cd46f
push 4
push 0x1000
mov ecx, dword [ebp - 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [0x5109d4]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp dword [0x50e050], 0
je 0x4cd48c
push 0x8000
push 0
mov edx, dword [0x5109d4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea eax, [ebp - 0x2780]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x2784]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.004cdc0e
add esp, 0x18
test eax, eax
jne 0x4cd4ce
push 0x8000
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x4cdb68
push 0x8000
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x27d8], eax
mov dword [ebp - 0x278c], 0x5109d4
mov dword [ebp - 0x27c0], 0x510c88
lea edx, [ebp - 0x10]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x2788]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4cd521
xor eax, eax
jmp 0x4cdb68
push 0x40
push 0x1000
push 0x64
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x50e054], eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [ebp - 0x27d4], 0
mov eax, dword [0x50e054]
add eax, dword [ebp - 0x27d4]
mov byte [eax], 0x6a
mov ecx, dword [ebp - 0x27d4]
add ecx, 1
mov dword [ebp - 0x27d4], ecx
mov edx, dword [0x50e054]
add edx, dword [ebp - 0x27d4]
mov byte [edx], 0
mov eax, dword [ebp - 0x27d4]
add eax, 1
mov dword [ebp - 0x27d4], eax
mov ecx, dword [0x50e054]
add ecx, dword [ebp - 0x27d4]
mov byte [ecx], 0x68
mov edx, dword [ebp - 0x27d4]
add edx, 1
mov dword [ebp - 0x27d4], edx
push 4
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [0x50e054]
add ecx, dword [ebp - 0x27d4]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x27d4]
add edx, 4
mov dword [ebp - 0x27d4], edx
mov eax, dword [0x50e054]
add eax, dword [ebp - 0x27d4]
mov byte [eax], 0x68
mov ecx, dword [ebp - 0x27d4]
add ecx, 1
mov dword [ebp - 0x27d4], ecx
push 4
push 0x5106c0
mov edx, dword [0x50e054]
add edx, dword [ebp - 0x27d4]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x27d4]
add eax, 4
mov dword [ebp - 0x27d4], eax
mov ecx, dword [0x50e054]
add ecx, dword [ebp - 0x27d4]
mov byte [ecx], 0x68
mov edx, dword [ebp - 0x27d4]
add edx, 1
mov dword [ebp - 0x27d4], edx
push 4
lea eax, [ebp - 0x2788]
push eax
mov ecx, dword [0x50e054]
add ecx, dword [ebp - 0x27d4]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x27d4]
add edx, 4
mov dword [ebp - 0x27d4], edx
mov eax, dword [0x50e054]
add eax, dword [ebp - 0x27d4]
mov byte [eax], 0x68
mov ecx, dword [ebp - 0x27d4]
add ecx, 1
mov dword [ebp - 0x27d4], ecx
push 4
lea edx, [ebp - 0x27d8]
push edx
mov eax, dword [0x50e054]
add eax, dword [ebp - 0x27d4]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x27d4]
add ecx, 4
mov dword [ebp - 0x27d4], ecx
mov edx, dword [0x50e054]
add edx, dword [ebp - 0x27d4]
mov byte [edx], 0xff
mov eax, dword [ebp - 0x27d4]
add eax, 1
mov dword [ebp - 0x27d4], eax
mov ecx, dword [0x50e054]
add ecx, dword [ebp - 0x27d4]
mov byte [ecx], 0x15
mov edx, dword [ebp - 0x27d4]
add edx, 1
mov dword [ebp - 0x27d4], edx
push 4
lea eax, [ebp - 0x27c0]
push eax
mov ecx, dword [0x50e054]
add ecx, dword [ebp - 0x27d4]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x27d4]
add edx, 4
mov dword [ebp - 0x27d4], edx
mov eax, dword [0x50e054]
add eax, dword [ebp - 0x27d4]
mov byte [eax], 0x68
mov ecx, dword [ebp - 0x27d4]
add ecx, 1
mov dword [ebp - 0x27d4], ecx
mov edx, dword [0x50e054]
add edx, dword [ebp - 0x27d4]
mov byte [edx], 0
mov eax, dword [ebp - 0x27d4]
add eax, 1
mov dword [ebp - 0x27d4], eax
mov ecx, dword [0x50e054]
add ecx, dword [ebp - 0x27d4]
mov byte [ecx], 0x80
mov edx, dword [ebp - 0x27d4]
add edx, 1
mov dword [ebp - 0x27d4], edx
mov eax, dword [0x50e054]
add eax, dword [ebp - 0x27d4]
mov byte [eax], 0
mov ecx, dword [ebp - 0x27d4]
add ecx, 1
mov dword [ebp - 0x27d4], ecx
mov edx, dword [0x50e054]
add edx, dword [ebp - 0x27d4]
mov byte [edx], 0
mov eax, dword [ebp - 0x27d4]
add eax, 1
mov dword [ebp - 0x27d4], eax
mov ecx, dword [0x50e054]
add ecx, dword [ebp - 0x27d4]
mov byte [ecx], 0x6a
mov edx, dword [ebp - 0x27d4]
add edx, 1
mov dword [ebp - 0x27d4], edx
mov eax, dword [0x50e054]
add eax, dword [ebp - 0x27d4]
mov byte [eax], 0
mov ecx, dword [ebp - 0x27d4]
add ecx, 1
mov dword [ebp - 0x27d4], ecx
mov edx, dword [0x50e054]
add edx, dword [ebp - 0x27d4]
mov byte [edx], 0x68
mov eax, dword [ebp - 0x27d4]
add eax, 1
mov dword [ebp - 0x27d4], eax
push 4
push 0x5106c0
mov ecx, dword [0x50e054]
add ecx, dword [ebp - 0x27d4]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x27d4]
add edx, 4
mov dword [ebp - 0x27d4], edx
push 0x401718
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x27c8], eax
push 0x401728
mov eax, dword [ebp - 0x27c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x27c4], eax
lea ecx, [ebp - 0x27c4]
mov dword [ebp - 0x2798], ecx
mov edx, dword [ebp - 0x27c8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x50e054]
add eax, dword [ebp - 0x27d4]
mov byte [eax], 0xff
mov ecx, dword [ebp - 0x27d4]
add ecx, 1
mov dword [ebp - 0x27d4], ecx
mov edx, dword [0x50e054]
add edx, dword [ebp - 0x27d4]
mov byte [edx], 0x15
mov eax, dword [ebp - 0x27d4]
add eax, 1
mov dword [ebp - 0x27d4], eax
push 4
lea ecx, [ebp - 0x2798]
push ecx
mov edx, dword [0x50e054]
add edx, dword [ebp - 0x27d4]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x27d4]
add eax, 4
mov dword [ebp - 0x27d4], eax
mov ecx, dword [0x50e054]
add ecx, dword [ebp - 0x27d4]
mov byte [ecx], 0x8b
mov edx, dword [ebp - 0x27d4]
add edx, 1
mov dword [ebp - 0x27d4], edx
mov eax, dword [0x50e054]
add eax, dword [ebp - 0x27d4]
mov byte [eax], 0xe5
mov ecx, dword [ebp - 0x27d4]
add ecx, 1
mov dword [ebp - 0x27d4], ecx
mov edx, dword [0x50e054]
add edx, dword [ebp - 0x27d4]
mov byte [edx], 0x5d
mov eax, dword [ebp - 0x27d4]
add eax, 1
mov dword [ebp - 0x27d4], eax
mov ecx, dword [0x50e054]
add ecx, dword [ebp - 0x27d4]
mov byte [ecx], 0x8b
mov edx, dword [ebp - 0x27d4]
add edx, 1
mov dword [ebp - 0x27d4], edx
mov eax, dword [0x50e054]
add eax, dword [ebp - 0x27d4]
mov byte [eax], 0xe5
mov ecx, dword [ebp - 0x27d4]
add ecx, 1
mov dword [ebp - 0x27d4], ecx
mov edx, dword [0x50e054]
add edx, dword [ebp - 0x27d4]
mov byte [edx], 0x5d
mov eax, dword [ebp - 0x27d4]
add eax, 1
mov dword [ebp - 0x27d4], eax
mov ecx, dword [0x50e054]
add ecx, dword [ebp - 0x27d4]
mov byte [ecx], 0x83
mov edx, dword [ebp - 0x27d4]
add edx, 1
mov dword [ebp - 0x27d4], edx
mov eax, dword [0x50e054]
add eax, dword [ebp - 0x27d4]
mov byte [eax], 0xc4
mov ecx, dword [ebp - 0x27d4]
add ecx, 1
mov dword [ebp - 0x27d4], ecx
mov edx, dword [0x50e054]
add edx, dword [ebp - 0x27d4]
mov byte [edx], 8
mov eax, dword [ebp - 0x27d4]
add eax, 1
mov dword [ebp - 0x27d4], eax
mov ecx, dword [0x50e054]
add ecx, dword [ebp - 0x27d4]
mov byte [ecx], 0xe9
mov edx, dword [ebp - 0x27d4]
add edx, 1
mov dword [ebp - 0x27d4], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2794], eax
mov ecx, dword [0x50e054]
sub ecx, dword [ebp - 0x2794]
sub ecx, 5
mov dword [0x5106b8], ecx
mov edx, dword [ebp - 0x2794]
mov dword [ebp - 0x27dc], edx
mov eax, dword [ebp - 0x2668]
add eax, dword [0x5108c8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [0x50e054]
mov edx, dword [ebp - 0x27d4]
add edx, 4
sub ecx, edx
mov dword [ebp - 0x2790], ecx
push 4
lea eax, [ebp - 0x2790]
push eax
mov ecx, dword [0x50e054]
add ecx, dword [ebp - 0x27d4]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov byte [ebp - 0x27d0], 0xe9
push 4
push 0x5106b8
lea edx, [ebp - 0x27cf]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push 0x40
push 0x32
mov ecx, dword [ebp - 0x27dc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x4cdab3
xor eax, eax
jmp 0x4cdb68
mov edx, dword [ebp - 0x27dc]
mov dword [ebp - 0x27bc], edx
mov eax, dword [ebp - 0x27bc]
mov cl, byte [ebp - 0x27d0]
mov byte [eax], cl
mov edx, dword [ebp - 0x27bc]
add edx, 1
mov dword [ebp - 0x27bc], edx
mov eax, dword [ebp - 0x27bc]
mov cl, byte [ebp - 0x27cf]
mov byte [eax], cl
mov edx, dword [ebp - 0x27bc]
add edx, 1
mov dword [ebp - 0x27bc], edx
mov eax, dword [ebp - 0x27bc]
mov cl, byte [ebp - 0x27ce]
mov byte [eax], cl
mov edx, dword [ebp - 0x27bc]
add edx, 1
mov dword [ebp - 0x27bc], edx
mov eax, dword [ebp - 0x27bc]
mov cl, byte [ebp - 0x27cd]
mov byte [eax], cl
mov edx, dword [ebp - 0x27bc]
add edx, 1
mov dword [ebp - 0x27bc], edx
mov eax, dword [ebp - 0x27bc]
mov cl, byte [ebp - 0x27cc]
mov byte [eax], cl
mov edx, dword [ebp - 0x27bc]
add edx, 1
mov dword [ebp - 0x27bc], edx
jmp 0x4cdb66
push 0x10
push 0x401734
push 0x40173c
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret