Function at 0x46876b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x494
push esi
push edi
mov eax, dword [0x4a0098]
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x444], 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.00468e3e
sub eax, 6
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x440]
push edx
lea eax, [ebp - 0x33c]
push eax
push 0
call fcn.00468132
add esp, 0x10
test eax, eax
je 0x468e22
mov ecx, dword [ebp - 0x33a]
and ecx, 0xff
test ecx, ecx
je 0x468807
call fcn.0046778e
test eax, eax
je 0x468807
push 0x10
push 0x45073c
push 0x450744
push 0
call fcn.00468096
add esp, 0x10
xor eax, eax
jmp 0x468e38
push 0x320
lea edx, [ebp - 0x33c]
push edx
push 0x49fad0
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov byte [ebp - 0x474], 4
mov byte [ebp - 0x473], 8
mov byte [ebp - 0x472], 0
mov byte [ebp - 0x471], 0
mov byte [ebp - 0x470], 0xc8
mov byte [ebp - 0x46f], 0
mov byte [ebp - 0x46e], 0
mov byte [ebp - 0x46d], 0
mov byte [ebp - 0x46c], 0x18
mov byte [ebp - 0x46b], 0x61
mov byte [ebp - 0x46a], 0xe
mov byte [ebp - 0x469], 0
mov byte [ebp - 0x468], 0x22
mov byte [ebp - 0x467], 0
mov byte [ebp - 0x466], 0
mov byte [ebp - 0x465], 0
mov byte [ebp - 0x464], 0x90
mov byte [ebp - 0x463], 0x66
mov byte [ebp - 0x462], 0xe
mov byte [ebp - 0x461], 0
mov byte [ebp - 0x460], 0xe8
mov byte [ebp - 0x45f], 2
mov byte [ebp - 0x45e], 0
mov byte [ebp - 0x45d], 0
mov byte [ebp - 0x45c], 0
mov byte [ebp - 0x45b], 0
mov byte [ebp - 0x45a], 0
mov byte [ebp - 0x459], 0
mov byte [ebp - 0x458], 0
mov byte [ebp - 0x457], 0
mov byte [ebp - 0x456], 0
mov byte [ebp - 0x455], 0
push 0x320
lea eax, [ebp - 0x474]
push eax
push 0x64
push 0x49fad0
call fcn.0046c984
add esp, 0x10
mov ecx, dword [ebp - 0x326]
and ecx, 0xff
test ecx, ecx
je 0x468956
mov edx, dword [ebp - 0x338]
and edx, 0xff
cmp edx, 2
je 0x468956
sub esp, 0x320
mov ecx, 0xc8
mov esi, 0x49fad0
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call dword [0x4a0020]
mov eax, dword [ebp - 4]
sub eax, 0x320
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x32c]
and ecx, 0xff
test ecx, ecx
je 0x4689c2
mov edx, dword [0x4a01a4]
push edx
call fcn.0049f1e0
add esp, 4
mov dword [ebp - 0x494], eax
push 4
push 0x1000
mov eax, dword [ebp - 0x494]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x494]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [0x4a01a4]
push ecx
call fcn.0049f160
add esp, 0x10
mov dword [ebp - 4], eax
jmp 0x4689ef
push 4
push 0x1000
mov edx, dword [ebp - 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [0x4a01a4]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp dword [0x49fab0], 0
je 0x468a0b
push 0x8000
push 0
mov eax, dword [0x4a01a4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea ecx, [ebp - 0x440]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x444]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00468ede
add esp, 0x18
test eax, eax
jne 0x468a4d
push 0x8000
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x468e38
push 0x8000
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x48c], eax
mov dword [ebp - 0x44c], 0x4a01a4
call fcn.00468746
mov dword [0x49fdf8], eax
mov dword [ebp - 0x47c], 0x49fdf8
lea eax, [ebp - 0x10]
push eax
push 0x40
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x448]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x468aaa
xor eax, eax
jmp 0x468e38
push 0x40
push 0x1000
push 0x64
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x49fac8], eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [ebp - 0x488], 0
mov ecx, dword [0x49fac8]
add ecx, dword [ebp - 0x488]
mov byte [ecx], 0x6a
mov edx, dword [ebp - 0x488]
add edx, 1
mov dword [ebp - 0x488], edx
mov eax, dword [0x49fac8]
add eax, dword [ebp - 0x488]
mov byte [eax], 0
mov ecx, dword [ebp - 0x488]
add ecx, 1
mov dword [ebp - 0x488], ecx
mov edx, dword [0x49fac8]
add edx, dword [ebp - 0x488]
mov byte [edx], 0x68
mov eax, dword [ebp - 0x488]
add eax, 1
mov dword [ebp - 0x488], eax
push 4
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [0x49fac8]
add edx, dword [ebp - 0x488]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x488]
add eax, 4
mov dword [ebp - 0x488], eax
mov ecx, dword [0x49fac8]
add ecx, dword [ebp - 0x488]
mov byte [ecx], 0x68
mov edx, dword [ebp - 0x488]
add edx, 1
mov dword [ebp - 0x488], edx
push 4
push 0x49fe00
mov eax, dword [0x49fac8]
add eax, dword [ebp - 0x488]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x488]
add ecx, 4
mov dword [ebp - 0x488], ecx
mov edx, dword [0x49fac8]
add edx, dword [ebp - 0x488]
mov byte [edx], 0x68
mov eax, dword [ebp - 0x488]
add eax, 1
mov dword [ebp - 0x488], eax
push 4
lea ecx, [ebp - 0x448]
push ecx
mov edx, dword [0x49fac8]
add edx, dword [ebp - 0x488]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x488]
add eax, 4
mov dword [ebp - 0x488], eax
mov ecx, dword [0x49fac8]
add ecx, dword [ebp - 0x488]
mov byte [ecx], 0x68
mov edx, dword [ebp - 0x488]
add edx, 1
mov dword [ebp - 0x488], edx
push 4
lea eax, [ebp - 0x48c]
push eax
mov ecx, dword [0x49fac8]
add ecx, dword [ebp - 0x488]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x488]
add edx, 4
mov dword [ebp - 0x488], edx
mov eax, dword [0x49fac8]
add eax, dword [ebp - 0x488]
mov byte [eax], 0xff
mov ecx, dword [ebp - 0x488]
add ecx, 1
mov dword [ebp - 0x488], ecx
mov edx, dword [0x49fac8]
add edx, dword [ebp - 0x488]
mov byte [edx], 0x15
mov eax, dword [ebp - 0x488]
add eax, 1
mov dword [ebp - 0x488], eax
push 4
lea ecx, [ebp - 0x47c]
push ecx
mov edx, dword [0x49fac8]
add edx, dword [ebp - 0x488]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x488]
add eax, 4
mov dword [ebp - 0x488], eax
mov ecx, dword [0x49fac8]
add ecx, dword [ebp - 0x488]
mov byte [ecx], 0x8b
mov edx, dword [ebp - 0x488]
add edx, 1
mov dword [ebp - 0x488], edx
mov eax, dword [0x49fac8]
add eax, dword [ebp - 0x488]
mov byte [eax], 0xe5
mov ecx, dword [ebp - 0x488]
add ecx, 1
mov dword [ebp - 0x488], ecx
mov edx, dword [0x49fac8]
add edx, dword [ebp - 0x488]
mov byte [edx], 0x5d
mov eax, dword [ebp - 0x488]
add eax, 1
mov dword [ebp - 0x488], eax
mov ecx, dword [0x49fac8]
add ecx, dword [ebp - 0x488]
mov byte [ecx], 0x8b
mov edx, dword [ebp - 0x488]
add edx, 1
mov dword [ebp - 0x488], edx
mov eax, dword [0x49fac8]
add eax, dword [ebp - 0x488]
mov byte [eax], 0xe5
mov ecx, dword [ebp - 0x488]
add ecx, 1
mov dword [ebp - 0x488], ecx
mov edx, dword [0x49fac8]
add edx, dword [ebp - 0x488]
mov byte [edx], 0x5d
mov eax, dword [ebp - 0x488]
add eax, 1
mov dword [ebp - 0x488], eax
mov ecx, dword [0x49fac8]
add ecx, dword [ebp - 0x488]
mov byte [ecx], 0xe9
mov edx, dword [ebp - 0x488]
add edx, 1
mov dword [ebp - 0x488], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x454], eax
mov ecx, dword [0x49fac8]
sub ecx, dword [ebp - 0x454]
sub ecx, 5
mov dword [0x49fdf4], ecx
mov edx, dword [ebp - 0x454]
mov dword [ebp - 0x490], edx
mov eax, dword [ebp - 0x334]
add eax, dword [0x4a0098]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [0x49fac8]
mov edx, dword [ebp - 0x488]
add edx, 4
sub ecx, edx
mov dword [ebp - 0x450], ecx
push 4
lea eax, [ebp - 0x450]
push eax
mov ecx, dword [0x49fac8]
add ecx, dword [ebp - 0x488]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov byte [ebp - 0x484], 0xe9
push 4
push 0x49fdf4
lea edx, [ebp - 0x483]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0
push 5
lea eax, [ebp - 0x484]
push eax
mov ecx, dword [ebp - 0x490]
push ecx
mov edx, dword [ebp - 0x48c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [ebp - 0x478], eax
jmp 0x468e36
push 0x10
push 0x450768
push 0x450770
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret