Function at 0x401388
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebx
push esi
push edi
push ebp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x401392
mov eax, dword [esp + 0x2000]
add esp, 0xfffff850
mov esi, 0x52dc08
mov eax, dword [0x52b39c]
mov dword [esp + 8], eax
xor ebx, ebx
push 0x7f02
push 0
call sub.USER32.DLL_LoadCursorA
push eax
call sub.USER32.DLL_SetCursor
mov edi, eax
call fcn.004017f8
sub eax, 6
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
lea edx, [esp + 0x2694]
push edx
lea ecx, [esp + 0x40]
push ecx
push 0
call fcn.00407fd4
add esp, 0x10
test eax, eax
je 0x4017d8
cmp byte [esp + 0x3d], 0
je 0x40142a
call fcn.004051c4
test eax, eax
je 0x40142a
push 0x10
push 0x44b252
push 0x44b231
push 0
call fcn.00406544
add esp, 0x10
xor eax, eax
jmp 0x4017ed
push 0x2658
lea edx, [esp + 0x3c]
push edx
push 0x52b5b0
call fcn.0040a4fc
add esp, 0xc
push esi
push edi
mov esi, 0x44b170
lea edi, [esp + 0x279c]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
push 0x2658
lea eax, [esp + 0x2798]
push eax
push 0x64
push 0x52b5b0
call fcn.004022e0
add esp, 0x10
cmp byte [esp + 0x66], 0
je 0x401498
cmp byte [esp + 0x3f], 2
je 0x401498
mov ecx, 0x52b5b0
mov edx, 0x995
push dword [ecx + edx*4]
dec edx
jns 0x40148c
call dword [0x52de7c]
push 0x52b5b0
call dword [0x52de80]
sub dword [esp + 0x10], 0x2658
cmp byte [esp + 0x60], 0
je 0x40150d
xor eax, eax
mov edx, dword [0x44b16c]
mov dword [esp + 0x18], eax
push 4
push edx
lea ecx, [esp + 0x20]
push ecx
call fcn.0040a4fc
add esp, 0xc
push 4
push 0x1000
mov eax, dword [esp + 0x20]
push eax
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov ebp, eax
mov eax, dword [esp + 0x10]
sub eax, 4
mov edx, dword [0x44b16c]
add edx, 4
push eax
push edx
lea ecx, [esp + 0x20]
push ecx
push ebp
call fcn.00417630
add esp, 0x10
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
jmp 0x401537
push 4
push 0x1000
mov edx, dword [esp + 0x18]
push edx
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov ebp, eax
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [0x44b16c]
push edx
push ebp
call fcn.0040a4fc
add esp, 0xc
cmp dword [0x52dc0c], 0
je 0x401553
push 0x8000
push 0
mov ecx, dword [0x44b16c]
push ecx
call sub.KERNEL32.DLL_VirtualFree
lea eax, [esp + 0x2690]
push eax
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0xc]
push ecx
mov eax, dword [esp + 0x1c]
push eax
push ebx
push ebp
call fcn.0040187c
add esp, 0x18
test eax, eax
jne 0x40158c
push 0x8000
push 0
push ebp
call sub.KERNEL32.DLL_VirtualFree
xor eax, eax
jmp 0x4017ed
push 0x8000
push 0
push ebp
call sub.KERNEL32.DLL_VirtualFree
call sub.KERNEL32.DLL_GetCurrentProcess
mov dword [esp + 0x1c], eax
mov edx, 0x52de70
mov dword [esp + 0x20], edx
push esp
push 0x40
mov ecx, dword [esp + 0xc]
push ecx
mov eax, dword [esp + 0x14]
push eax
call sub.KERNEL32.DLL_VirtualProtect
test eax, eax
jne 0x4015c8
xor eax, eax
jmp 0x4017ed
push 0x40
push 0x1000
push 0x64
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [esi], eax
push edi
call sub.USER32.DLL_SetCursor
xor ebx, ebx
mov eax, dword [esi]
mov byte [eax + ebx], 0x6a
inc ebx
mov byte [eax + ebx], 0
inc ebx
mov byte [eax + ebx], 0x68
inc ebx
push 4
lea edx, [esp + 8]
push edx
add eax, ebx
push eax
call fcn.0040a4fc
add esp, 0xc
add ebx, 4
mov eax, dword [esi]
mov byte [eax + ebx], 0x68
inc ebx
push 4
push 0x52b5a4
add eax, ebx
push eax
call fcn.0040a4fc
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.0040a4fc
add esp, 0xc
add ebx, 4
mov eax, dword [esi]
mov byte [eax + ebx], 0x68
inc ebx
push 4
lea edx, [esp + 0x20]
push edx
add eax, ebx
push eax
call fcn.0040a4fc
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 + 0x24]
push edx
add eax, ebx
push eax
call fcn.0040a4fc
add esp, 0xc
add ebx, 4
mov eax, dword [esi]
mov byte [eax + ebx], 0x68
inc ebx
mov byte [eax + ebx], 0
inc ebx
mov byte [eax + ebx], 0x80
inc ebx
mov byte [eax + ebx], 0
inc ebx
mov byte [eax + ebx], 0
inc ebx
mov byte [eax + ebx], 0x6a
inc ebx
mov byte [eax + ebx], 0
inc ebx
mov byte [eax + ebx], 0x68
inc ebx
push 4
push 0x52b5a4
add eax, ebx
push eax
call fcn.0040a4fc
add esp, 0xc
add ebx, 4
push str.Kernel32.dll
call sub.KERNEL32.DLL_LoadLibraryA
mov edi, eax
push str.VirtualFree
push edi
call sub.KERNEL32.DLL_GetProcAddress
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x28], eax
push edi
call sub.KERNEL32.DLL_FreeLibrary
mov eax, dword [esi]
mov byte [eax + ebx], 0xff
inc ebx
mov byte [eax + ebx], 0x15
inc ebx
push 4
lea edx, [esp + 0x2c]
push edx
add eax, ebx
push eax
call fcn.0040a4fc
add esp, 0xc
add ebx, 4
mov eax, dword [esi]
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 ecx, dword [esp + 0x14]
mov edx, dword [esi]
mov edi, edx
sub edi, ecx
sub edi, 5
mov dword [0x52b5ac], edi
mov edi, ecx
mov ecx, dword [esp + 0x44]
add ecx, dword [0x52b39c]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
sub ecx, edx
lea edx, [ebx + 4]
sub ecx, edx
mov dword [esp + 0x2c], ecx
push 4
lea edx, [esp + 0x30]
push edx
add ebx, eax
push ebx
call fcn.0040a4fc
add esp, 0xc
mov byte [esp + 0x30], 0xe9
push 4
push 0x52b5ac
lea eax, [esp + 0x39]
push eax
call fcn.0040a4fc
add esp, 0xc
push esp
push 0x40
push 0x32
mov ebx, edi
push ebx
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.KERNEL32.DLL_VirtualProtectEx
test eax, eax
jne 0x4017b2
xor eax, eax
jmp 0x4017ed
mov eax, ebx
mov dl, byte [esp + 0x30]
mov byte [eax], dl
inc eax
mov cl, byte [esp + 0x31]
mov byte [eax], cl
inc eax
mov dl, byte [esp + 0x32]
mov byte [eax], dl
inc eax
mov cl, byte [esp + 0x33]
mov byte [eax], cl
inc eax
mov dl, byte [esp + 0x34]
mov byte [eax], dl
jmp 0x4017eb
push 0x10
push 0x44b282
push str.Cant___from_Res_
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
add esp, 0x27b4
pop ebp
pop edi
pop esi
pop ebx
ret