Function at 0x2ee21958
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffd0c
mov eax, dword [0x2ee62690]
xor edi, edi
mov esi, 0x2ee62b00
mov dword [esp + 8], eax
call fcn.2ee21be0
mov ebp, eax
lea eax, [esp + 0x10]
push eax
lea edx, [esp + 0x1f4]
push edx
lea ecx, [esp + 0x30]
push ecx
push 0
sub ebp, 6
call fcn.2ee21798
add esp, 0x10
test eax, eax
je 0x2ee21bbe
mov eax, dword [0x2ee62928]
push eax
call sub.KERNEL32.DLL_CloseHandle
push 4
push 0x1000
mov edx, dword [esp + 0x18]
push edx
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov ebx, eax
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [0x2ee5b1b4]
push edx
push ebx
call fcn.2ee4e470
add esp, 0xc
cmp dword [0x2ee62b18], 0
je 0x2ee219f1
push 0x8000
push 0
mov ecx, dword [0x2ee5b1b4]
push ecx
call sub.KERNEL32.DLL_VirtualFree
call sub.KERNEL32.DLL_GetCurrentProcess
mov dword [esp + 0x14], eax
call fcn.2ee2193c
mov dword [0x2ee6292c], eax
mov eax, 0x2ee6292c
mov dword [esp + 0x18], eax
lea edx, [esp + 0x1f0]
push edx
lea ecx, [esp + 0x10]
push ecx
lea eax, [esp + 0xc]
push eax
mov edx, dword [esp + 0x1c]
push edx
push edi
push ebx
call fcn.2ee21c68
add esp, 0x18
test eax, eax
jne 0x2ee21a46
push 0x8000
push 0
push ebx
call sub.KERNEL32.DLL_VirtualFree
xor eax, eax
jmp 0x2ee21bd3
push 0x8000
push 0
push ebx
call sub.KERNEL32.DLL_VirtualFree
push esp
push 0x40
mov edx, dword [esp + 0xc]
push edx
mov ecx, dword [esp + 0x14]
push ecx
call sub.KERNEL32.DLL_VirtualProtect
test eax, eax
jne 0x2ee21a70
xor eax, eax
jmp 0x2ee21bd3
push 0x40
push 0x1000
push 0x64
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov edi, eax
mov dword [esi], edi
xor ebx, ebx
mov byte [edi + ebx], 0x6a
inc ebx
mov byte [edi + ebx], 0
inc ebx
mov byte [edi + ebx], 0x68
inc ebx
push 4
lea eax, [esp + 8]
push eax
add edi, ebx
push edi
call fcn.2ee4e470
add esp, 0xc
add ebx, 4
mov eax, dword [esi]
mov byte [eax + ebx], 0x68
inc ebx
push 4
push 0x2ee62920
add eax, ebx
push eax
call fcn.2ee4e470
add esp, 0xc
add ebx, 4
mov eax, dword [esi]
mov byte [eax + ebx], 0x68
inc ebx
push 4
lea edx, [esp + 0xc]
push edx
add eax, ebx
push eax
call fcn.2ee4e470
add esp, 0xc
add ebx, 4
mov eax, dword [esi]
mov byte [eax + ebx], 0x68
inc ebx
push 4
lea edx, [esp + 0x18]
push edx
add eax, ebx
push eax
call fcn.2ee4e470
add esp, 0xc
add ebx, 4
mov eax, dword [esi]
mov byte [eax + ebx], 0xff
inc ebx
mov byte [eax + ebx], 0x15
inc ebx
push 4
lea edx, [esp + 0x1c]
push edx
add eax, ebx
push eax
call fcn.2ee4e470
mov eax, dword [esi]
add ebx, 4
mov ecx, ebp
add esp, 0xc
mov byte [eax + ebx], 0x8b
inc ebx
mov byte [eax + ebx], 0xe5
inc ebx
mov byte [eax + ebx], 0x5d
inc ebx
mov byte [eax + ebx], 0x8b
inc ebx
mov byte [eax + ebx], 0xe5
inc ebx
mov byte [eax + ebx], 0x5d
inc ebx
mov byte [eax + ebx], 0x83
inc ebx
mov byte [eax + ebx], 0xc4
inc ebx
mov byte [eax + ebx], 8
inc ebx
mov byte [eax + ebx], 0xe9
inc ebx
mov edx, dword [esi]
mov edi, edx
sub edi, ecx
sub edi, 5
mov dword [0x2ee62930], edi
mov edi, ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
sub ecx, edx
lea edx, [ebx + 4]
sub ecx, edx
add ebx, eax
mov dword [esp + 0x1c], ecx
push 4
lea edx, [esp + 0x20]
push edx
push ebx
call fcn.2ee4e470
add esp, 0xc
mov byte [esp + 0x20], 0xe9
push 4
push 0x2ee62930
lea eax, [esp + 0x29]
push eax
call fcn.2ee4e470
add esp, 0xc
push 0
push 5
lea ecx, [esp + 0x28]
push ecx
push edi
mov eax, dword [esp + 0x24]
push eax
call sub.KERNEL32.DLL_WriteProcessMemory
jmp 0x2ee21bd1
push 0x10
push 0x2ee5b27d
push str.Cant_load_Exe_from_Res_
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
add esp, 0x2f4
pop ebp
pop edi
pop esi
pop ebx
ret