Function at 0x417210
Capabilities:
Create process on windows
Create process suspended
Inject apc
Query environment variable
Resume thread
Self delete
Terminate process
Use process replacement

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x4b13a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
xor ebx, ebx
push str._SystemRoot_System32_rundll32.exe
mov dword [ebp - 0x220], ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x417434
cmp eax, 0x104
jae 0x417434
push edi
push 0x40
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x270], 0x44
push ebx
push eax
call fcn.0047cd50
add esp, 0xc
mov dword [ebp - 0x21c], ebx
xor eax, eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x270]
push eax
push ebx
push ebx
push 4
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
mov dword [ebp - 0x220], edi
test edi, edi
je 0x41741c
mov ecx, dword [esi + 0x10]
push 4
push 0x1000
lea ecx, [ecx*2 + 2]
push ecx
push ebx
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ecx, eax
mov dword [ebp - 0x228], ecx
test ecx, ecx
je 0x4173ac
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x22c], ebx
jb 0x417304
mov esi, dword [esi]
lea edx, [ebp - 0x22c]
push edx
lea eax, [eax*2 + 2]
push eax
push esi
push ecx
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push 0x49d63c
push edi
call esi
push 0x49d644
push edi
mov dword [ebp - 0x224], eax
call esi
push 0x49d650
push edi
mov ebx, eax
call esi
mov edi, eax
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x4173a8
test ebx, ebx
je 0x4173a8
test edi, edi
je 0x4173a8
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push dword [ebp - 0x218]
push eax
call esi
push dword [ebp - 0x228]
push dword [ebp - 0x218]
push ebx
call esi
push 0
push dword [ebp - 0x218]
push edi
call esi
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [ebp - 0x220]
jmp 0x417406
xor edi, edi
jmp 0x417406
call fcn.00447db0
cmp eax, 2
jg 0x4173e8
mov ebx, 2
call sub.KERNEL32.dll_GetLastError
push eax
push ebx
push 0x165
push str.c:_b_build_slavewin_build_srcchromeinstaller_setup_setup_util.cc
lea ecx, [ebp - 0x328]
call fcn.004474e0
add eax, 0x10
push 0x49d65c
push eax
call fcn.00404cd0
add esp, 8
test bl, 2
je 0x4173f8
lea ecx, [ebp - 0x328]
call fcn.00447780
push 0xffffffffffffffff
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x218]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x21c]
call esi
xor eax, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047cd41
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop esi
xor ecx, ebp
pop ebx
call fcn.0047cd41
mov esp, ebp
pop ebp
ret