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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f530
push 0x41055c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
or ebx, 0xffffffff
xor esi, esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x58], esi
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
mov dword [ebp - 4], esi
mov edi, dword [ebp + 8]
cmp edi, esi
jne 0x417273
cmp dword [ebp + 0xc], esi
jne 0x417273
mov ebx, reloc.OLEAUT32.dll_SysStringLen
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], 0xffffffff
jmp 0x417410
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov dword [ebp - 0x6c], eax
lea ecx, [eax + eax]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x34], edi
mov ecx, dword [edi + 0x3c]
add ecx, edi
mov dword [ebp - 0x60], ecx
mov edx, dword [ecx + 0x50]
mov dword [ebp - 0x28], edx
mov ecx, dword [ecx + 0x34]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x34], 0x4c08bc
mov ecx, dword [0x4c08f8]
lea ecx, [ecx + 0x4c08bc]
mov dword [ebp - 0x60], ecx
mov ecx, dword [ecx + 0x50]
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0x24]
add ecx, eax
add ecx, edx
mov edx, dword [ebp - 0x64]
lea eax, [ecx + edx + 4]
mov dword [ebp - 0x5c], eax
push 0x1c
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4173f5
cmp dword [ebp - 0x48], 0x10000
mov ebx, dword [ebp - 0x5c]
jne 0x41730b
cmp ebx, dword [ebp - 0x4c]
jae 0x41730b
push 0x40
push 0x1000
push ebx
mov eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
jne 0x41733b
push 0x40
push 0x1000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
jne 0x41733b
mov ebx, 0x80000046
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], 0xffffffff
jmp 0x417410
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0x4c08bc
push edi
push ebx
push esi
call fcn.004175b0
add esp, 0x1c
mov ebx, eax
mov dword [ebp - 0x3c], ebx
test ebx, ebx
jne 0x4173f5
cmp esi, dword [ebp - 0x68]
je 0x41737d
push esi
push ebx
push esi
call fcn.004179f0
add esp, 0xc
mov ebx, eax
mov dword [ebp - 0x3c], ebx
test ebx, ebx
jne 0x4173f5
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00417940
add esp, 4
mov ebx, eax
mov dword [ebp - 0x3c], ebx
test ebx, ebx
jne 0x4173f5
mov eax, dword [ebp - 0x30]
push eax
push ebx
push eax
call fcn.004179f0
add esp, 0xc
mov ebx, eax
mov dword [ebp - 0x3c], ebx
test ebx, ebx
jne 0x4173f5
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + 0x28]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
test dword [ebp + 0x10], 0x40000000
je 0x4173f2
lea ecx, [ebp - 0x2c]
push ecx
push ebx
push esi
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4173e2
mov dword [ecx], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x417410
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
jmp 0x417410
push esi
call eax
mov dword [ebp - 4], 0xffffffff
jmp 0x417410
test ebx, ebx
je 0x417428
test esi, esi
je 0x417428
push 0x10000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor esi, esi
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10