Function at 0x47d508
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x4f9b3c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
push edi
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], ecx
cmp eax, esi
je 0x47d73c
cmp word [eax], si
je 0x47d73c
push ebx
push eax
push str.CmdLine:__s.
push str.kupdate::KProcessUtils::RunAsUser
push 0x242
push str.S:_func_improvement_20150701_branchCoding_supportwpsupdateUpdateClientupdateutilKProcessUtils.cpp
push 7
call fcn.0042f683
push 0x40
lea eax, [ebp - 0x274]
push esi
push eax
mov dword [ebp - 0x278], 0x44
call fcn.00492b40
mov dword [ebp - 0x234], esi
xor eax, eax
lea edi, [ebp - 0x230]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x24
stosd dword es:[edi], eax
push str.userenv.dll
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x210], esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
je 0x47d60a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateEnvironmentBlock
push ebx
call edi
push str.DestroyEnvironmentBlock
push ebx
mov dword [ebp - 0x21c], eax
call edi
mov edi, eax
cmp dword [ebp - 0x21c], esi
je 0x47d60a
cmp edi, esi
je 0x47d60a
cmp dword [ebp - 0x214], esi
je 0x47d60a
push esi
push dword [ebp - 0x214]
lea eax, [ebp - 0x210]
push eax
call dword [ebp - 0x21c]
test eax, eax
je 0x47d60a
mov dword [ebp - 0x218], 0x400
jmp 0x47d643
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x47d61e
and eax, 0xffff
or eax, 0x80070000
push eax
push str.CreateEnvironmentBlock_failed_0x_08x.
push str.kupdate::KProcessUtils::RunAsUser
push 0x25f
push str.S:_func_improvement_20150701_branchCoding_supportwpsupdateUpdateClientupdateutilKProcessUtils.cpp
push 5
call fcn.0042f683
add esp, 0x18
mov dword [ebp - 0x210], esi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.00492b40
push dword [ebp - 0x224]
lea eax, [ebp - 0x20c]
push eax
call fcn.004950c7
add esp, 0x14
cmp dword [ebp - 0x220], esi
je 0x47d6a1
lea eax, [ebp - 0x20c]
push 0x4cbd2c
push eax
call fcn.00495096
push dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push eax
call fcn.00495096
add esp, 0x10
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x278]
push eax
push esi
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x218]
push esi
push esi
push esi
push eax
push esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ebx, eax
cmp dword [ebp - 0x210], esi
je 0x47d6e5
push dword [ebp - 0x210]
call edi
cmp ebx, esi
pop ebx
jne 0x47d722
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x47d6fe
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push edi
push str.CreateProcess_AsUser__Failed:_0x_08x.
push str.kupdate::KProcessUtils::RunAsUser
push 0x271
push str.S:_func_improvement_20150701_branchCoding_supportwpsupdateUpdateClientupdateutilKProcessUtils.cpp
push esi
call fcn.0042f683
add esp, 0x18
mov eax, edi
jmp 0x47d75e
push dword [ebp - 0x230]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x234]
call esi
xor eax, eax
jmp 0x47d75e
push str.Invalid_Args.
push str.kupdate::KProcessUtils::RunAsUser
push 0x23f
push str.S:_func_improvement_20150701_branchCoding_supportwpsupdateUpdateClientupdateutilKProcessUtils.cpp
push esi
call fcn.0042f683
add esp, 0x14
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004927bf
leave
ret