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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov esi, esp
mov dword [esi + 0x98], ebp
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0xa0]
mov dword [ecx - 4], esp
xor eax, eax
dec eax
mov dword [ecx + 8], eax
mov dword [ecx + 4], 0x4526c0
mov edx, dword fs:[0]
mov dword [ecx], edx
mov edi, dword [ebp + 8]
mov dword fs:[0], ecx
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0xffff
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x45131f
mov ecx, dword [edi]
lea edx, [esi + 0x10]
push eax
push 3
push edx
push ecx
call fcn.00541431
lea ebx, [esi + 0x38]
mov dword [ebx + 8], eax
mov ecx, ebx
lea edx, [esi + 0x10]
mov dword [esi + 8], edx
lea edx, [esi + 0x10]
push edx
push eax
call fcn.0041028a
mov eax, dword [ebx]
mov edx, ebx
mov ecx, dword [ebx + 8]
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], 0x727124
test eax, eax
je 0x45144f
cmp eax, 1
je 0x451457
xorps xmm0, xmm0
movsd qword [esi + 0x20], xmm0
xorps xmm0, xmm0
movaps xmmword [esi + 0x10], xmm0
mov eax, dword [edi + 0x10]
cmp dword [edi + 0x14], 8
jb 0x451380
mov edi, dword [edi]
lea ebx, [esi + 0x10]
mov ecx, ebx
push eax
push edi
call fcn.00405036
mov eax, dword [ebx + 0x10]
lea ecx, [eax*2 + 2]
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x10]
mov dword [esi + 0xa8], 2
push 0x40
push 0x3000
mov dword [esi + 8], ecx
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ecx, eax
test eax, eax
je 0x4514bc
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x4513d0
mov eax, dword [esi + 0x10]
push 0
push dword [esi + 8]
push eax
push ecx
mov eax, dword [esi + 0xc]
push dword [eax + 0x10]
mov dword [esi + 8], ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edi, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx + 0x10]
test eax, eax
je 0x4514e8
xor eax, eax
mov edx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
push eax
push edi
push edx
push eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ecx, dword [esi + 8]
test eax, eax
je 0x451523
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x24]
cmp eax, 8
jb 0x451439
lea eax, [eax*2 + 2]
push eax
push dword [esi + 0x10]
call fcn.00404bbf
add esp, 8
mov eax, dword [esi + 0xa0]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
test ecx, ecx
jne 0x451561
mov ecx, edi
mov edi, edx
push edx
call fcn.0041e6dc
mov dword [esi + 0xa8], 0
push edi
push str.Failed_to_find
lea eax, [esi + 0x10]
push eax
call fcn.004496df
add esp, 0xc
cmp dword [esi + 0x24], 0x10
jb 0x451489
mov eax, dword [esi + 0x10]
mov dword [esi + 8], eax
lea edi, [esi + 0x8c]
mov ecx, edi
push dword [esi + 8]
call fcn.0040527c
mov dword [edi], vtable.std::runtime_error.0
mov dword [esi + 0xa8], 1
push 0x7d4244
push edi
call fcn.006f93cd
add esp, 8
jmp 0x451561
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esi + 0x78]
push str.Failed_to_allocate_memory
push 0x727124
push eax
call fcn.00425298
push 0x7d4044
lea eax, [esi + 0x78]
push eax
call fcn.006f93cd
add esp, 8
jmp 0x451561
push 0x8000
push 0
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esi + 0x64]
push str.Failed_to_write_memory
push 0x727124
push eax
call fcn.00425298
push 0x7d4044
lea eax, [esi + 0x64]
push eax
call fcn.006f93cd
add esp, 8
jmp 0x451561
push 0x8000
push 0
push ecx
mov eax, dword [esi + 0xc]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esi + 0x50]
push str.Failed_to_create_remote_thread
push 0x727124
push eax
call fcn.00425298
push 0x7d4044
lea eax, [esi + 0x50]
push eax
call fcn.006f93cd
add esp, 8
lea eax, [esi + 0x30]
push edi
push eax
push 0x7924a0
call fcn.004101d4
push ebp
sub esp, 0x1c
lea esi, [ebp - 0xac]
mov ebp, dword [esi + 0x98]
mov eax, dword [esi + 0x24]
cmp eax, 0x10
jb 0x451595
inc eax
push eax
push dword [esi + 0x10]
call fcn.00404bbf
add esp, 8
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0xf
mov byte [esi + 0x10], 0
add esp, 0x1c
pop ebp
ret