Function at 0x4016e8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb90
mov eax, dword [0x40c86c]
mov dword [ebp - 0xc], eax
xor edx, edx
mov dword [ebp - 0x14], edx
push 0x7f02
push 0
call sub.USER32.DLL_LoadCursorA
push eax
call sub.USER32.DLL_SetCursor
mov dword [ebp - 0x20], eax
call fcn.00401a68
sub eax, 6
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x1c]
push ecx
lea eax, [ebp - 0x470]
push eax
lea edx, [ebp - 0x36c]
push edx
push 0
call fcn.00401530
add esp, 0x10
test eax, eax
je 0x401a4f
push 4
push 0x1000
push dword [ebp - 0x1c]
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [ebp - 0x10], eax
push dword [ebp - 0x1c]
push dword [0x40a16c]
push dword [ebp - 0x10]
call fcn.004035fc
add esp, 0xc
cmp dword [0x40ce4c], 0
je 0x401785
push 0x8000
push 0
push dword [0x40a16c]
call sub.KERNEL32.DLL_VirtualFree
lea ecx, [ebp - 0x470]
push ecx
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 8]
push edx
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.00401aec
add esp, 0x18
test eax, eax
jne 0x4017bf
push 0x8000
push 0
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_VirtualFree
xor eax, eax
jmp 0x401a64
push 0x8000
push 0
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_VirtualFree
call sub.KERNEL32.DLL_GetCurrentProcess
mov dword [ebp - 0x28], eax
mov edx, 0x40a16c
mov dword [ebp - 0x2c], edx
call fcn.004016c4
mov dword [0x40cb08], eax
mov ecx, 0x40cb08
mov dword [ebp - 0x30], ecx
lea eax, [ebp - 4]
push eax
push 0x40
push dword [ebp - 8]
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_VirtualProtect
test eax, eax
jne 0x40180c
xor eax, eax
jmp 0x401a64
push 0x40
push 0x1000
push 0x64
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [0x40ce34], eax
push dword [ebp - 0x20]
call sub.USER32.DLL_SetCursor
xor edx, edx
mov dword [ebp - 0x34], edx
mov ecx, dword [0x40ce34]
mov eax, dword [ebp - 0x34]
mov byte [ecx + eax], 0x6a
inc dword [ebp - 0x34]
mov edx, dword [0x40ce34]
mov ecx, dword [ebp - 0x34]
mov byte [edx + ecx], 0
inc dword [ebp - 0x34]
mov eax, dword [0x40ce34]
mov edx, dword [ebp - 0x34]
mov byte [eax + edx], 0x68
inc dword [ebp - 0x34]
push 4
lea ecx, [ebp - 8]
push ecx
mov eax, dword [0x40ce34]
add eax, dword [ebp - 0x34]
push eax
call fcn.004035fc
add esp, 0xc
add dword [ebp - 0x34], 4
mov edx, dword [0x40ce34]
mov ecx, dword [ebp - 0x34]
mov byte [edx + ecx], 0x68
inc dword [ebp - 0x34]
push 4
push 0x40cb00
mov eax, dword [0x40ce34]
add eax, dword [ebp - 0x34]
push eax
call fcn.004035fc
add esp, 0xc
add dword [ebp - 0x34], 4
mov edx, dword [0x40ce34]
mov ecx, dword [ebp - 0x34]
mov byte [edx + ecx], 0x68
inc dword [ebp - 0x34]
push 4
lea eax, [ebp - 0xc]
push eax
mov edx, dword [0x40ce34]
add edx, dword [ebp - 0x34]
push edx
call fcn.004035fc
add esp, 0xc
add dword [ebp - 0x34], 4
mov ecx, dword [0x40ce34]
mov eax, dword [ebp - 0x34]
mov byte [ecx + eax], 0x68
inc dword [ebp - 0x34]
push 4
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [0x40ce34]
add ecx, dword [ebp - 0x34]
push ecx
call fcn.004035fc
add esp, 0xc
add dword [ebp - 0x34], 4
mov eax, dword [0x40ce34]
mov edx, dword [ebp - 0x34]
mov byte [eax + edx], 0xff
inc dword [ebp - 0x34]
mov ecx, dword [0x40ce34]
mov eax, dword [ebp - 0x34]
mov byte [ecx + eax], 0x15
inc dword [ebp - 0x34]
push 4
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [0x40ce34]
add ecx, dword [ebp - 0x34]
push ecx
call fcn.004035fc
add esp, 0xc
add dword [ebp - 0x34], 4
mov eax, dword [0x40ce34]
mov edx, dword [ebp - 0x34]
mov byte [eax + edx], 0x8b
inc dword [ebp - 0x34]
mov ecx, dword [0x40ce34]
mov eax, dword [ebp - 0x34]
mov byte [ecx + eax], 0xe5
inc dword [ebp - 0x34]
mov edx, dword [0x40ce34]
mov ecx, dword [ebp - 0x34]
mov byte [edx + ecx], 0x5d
inc dword [ebp - 0x34]
mov eax, dword [0x40ce34]
mov edx, dword [ebp - 0x34]
mov byte [eax + edx], 0x8b
inc dword [ebp - 0x34]
mov ecx, dword [0x40ce34]
mov eax, dword [ebp - 0x34]
mov byte [ecx + eax], 0xe5
inc dword [ebp - 0x34]
mov edx, dword [0x40ce34]
mov ecx, dword [ebp - 0x34]
mov byte [edx + ecx], 0x5d
inc dword [ebp - 0x34]
mov eax, dword [0x40ce34]
mov edx, dword [ebp - 0x34]
mov byte [eax + edx], 0x83
inc dword [ebp - 0x34]
mov ecx, dword [0x40ce34]
mov eax, dword [ebp - 0x34]
mov byte [ecx + eax], 0xc4
inc dword [ebp - 0x34]
mov edx, dword [0x40ce34]
mov ecx, dword [ebp - 0x34]
mov byte [edx + ecx], 8
inc dword [ebp - 0x34]
mov eax, dword [0x40ce34]
mov edx, dword [ebp - 0x34]
mov byte [eax + edx], 0xe9
inc dword [ebp - 0x34]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x38], ecx
mov eax, dword [0x40ce34]
sub eax, dword [ebp - 0x38]
sub eax, 5
mov dword [0x40cb0c], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], edx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
sub eax, dword [0x40ce34]
mov edx, dword [ebp - 0x34]
add edx, 4
sub eax, edx
mov dword [ebp - 0x40], eax
push 4
lea ecx, [ebp - 0x40]
push ecx
mov eax, dword [0x40ce34]
add eax, dword [ebp - 0x34]
push eax
call fcn.004035fc
add esp, 0xc
mov byte [ebp - 0x48], 0xe9
push 4
push 0x40cb0c
lea edx, [ebp - 0x47]
push edx
call fcn.004035fc
add esp, 0xc
push 0
push 5
lea ecx, [ebp - 0x48]
push ecx
push dword [ebp - 0x3c]
push dword [ebp - 0x28]
call sub.KERNEL32.DLL_WriteProcessMemory
mov dword [ebp - 0x4c], eax
jmp 0x401a62
push 0x10
push 0x40a1f3
push str.Cant___from_Res_
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
mov esp, ebp
pop ebp
ret