Function at 0x450330
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x220], ecx
cmp edi, ebx
je 0x4505d0
cmp word [edi], bx
je 0x4505d0
push esi
push edi
push str.CmdLine:__s.
push str.KProcessUtils::RunAsUser
push 0x250
push str.D:_rc_v11_personal_20200207_branchCoding_supportksomisckprocessutils.cpp
push 7
call fcn.00487a00
push 0x40
lea edx, [ebp - 0x270]
push ebx
push edx
mov dword [ebp - 0x274], 0x44
call sub.MSVCR100.dll_memset
xor eax, eax
add esp, 0x24
push str.userenv.dll
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x218], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x45043a
push str.CreateEnvironmentBlock
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DestroyEnvironmentBlock
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x218], eax
test ebx, ebx
je 0x450438
test eax, eax
je 0x450438
cmp dword [ebp - 0x214], 0
je 0x450438
mov eax, dword [ebp - 0x214]
push 0
push eax
lea ecx, [ebp - 0x210]
push ecx
call ebx
test eax, eax
je 0x450438
mov dword [ebp - 0x21c], 0x400
xor ebx, ebx
jmp 0x450473
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x45044e
and eax, 0xffff
or eax, 0x80070000
push eax
push str.CreateEnvironmentBlock_failed_0x_08x.
push str.KProcessUtils::RunAsUser
push 0x26d
push str.D:_rc_v11_personal_20200207_branchCoding_supportksomisckprocessutils.cpp
push 5
call fcn.00487a00
add esp, 0x18
mov dword [ebp - 0x210], ebx
push 0x206
lea eax, [ebp - 0x20a]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x20c], dx
call sub.MSVCR100.dll_memset
lea edx, [ebp - 0x20c]
add esp, 0xc
mov eax, edi
sub edx, edi
jmp 0x4504a0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x4504a0
mov ecx, dword [ebp - 0x220]
cmp ecx, ebx
je 0x450512
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x4504c2
mov edx, dword [0x4cbc88]
mov eax, ecx
mov dword [edi], edx
mov edx, eax
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4504e0
lea edi, [ebp - 0x20c]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x4504f6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp - 0x210]
lea eax, [ebp - 0x230]
push eax
mov eax, dword [ebp - 0x21c]
lea ecx, [ebp - 0x274]
push ecx
push ebx
push edx
mov edx, dword [ebp - 0x214]
push eax
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x20c]
push ecx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
mov eax, dword [ebp - 0x210]
cmp eax, ebx
je 0x45055a
push eax
call dword [ebp - 0x218]
cmp esi, ebx
jne 0x4505a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x450572
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push esi
push str.CreateProcess_AsUser__Failed:_0x_08x.
push str.KProcessUtils::RunAsUser
push 0x27f
push str.D:_rc_v11_personal_20200207_branchCoding_supportksomisckprocessutils.cpp
push ebx
call fcn.00487a00
add esp, 0x18
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x22c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0x230]
push ecx
call esi
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret
push str.Invalid_Args.
push str.KProcessUtils::RunAsUser
push 0x24d
push str.D:_rc_v11_personal_20200207_branchCoding_supportksomisckprocessutils.cpp
push ebx
call fcn.00487a00
mov ecx, dword [ebp - 4]
add esp, 0x14
pop edi
xor ecx, ebp
mov eax, 0x80070057
pop ebx
call fcn.004b12f6
mov esp, ebp
pop ebp
ret