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

Disassembly:
sub esp, 0x4b8
mov eax, dword [0x100530a0]
xor eax, esp
mov dword [esp + 0x4b4], eax
push ebx
mov ebx, dword [esp + 0x4c0]
mov dword [esp + 8], 0xffffffff
push ebp
mov ebp, dword [esp + 0x4c8]
mov dword [esp + 0x20], ebp
test ebx, ebx
jne 0x1001fcae
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x4b4]
xor ecx, esp
call fcn.1003b4ee
add esp, 0x4b8
ret
call fcn.100041d0
mov dword [esp + 8], eax
lea ecx, [esp + 0x10]
mov edx, 0x10
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x1001fcc0
push esi
push edi
xor esi, esi
call fcn.10005170
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
je 0x1001fe4c
push str.RunAsDesktopUser___OnVistaOrLater__use_CreateProcessWithTokenW
call fcn.10003ca0
push 0x208
lea eax, [esp + 0xbc]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea eax, [esp + 0xb4]
push 0x104
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1001fe27
cmp eax, 0x104
ja 0x1001fe27
push 0x208
lea eax, [esp + 0x2c0]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
push str.AdvAPI32.dll
lea eax, [esp + 0xc4]
push eax
push str._s_s
push 0xffffffffffffffff
lea eax, [esp + 0x2d8]
push 0x104
push eax
call fcn.10005ff0
add esp, 0x24
test eax, eax
jg 0x1001fd72
push str.LoadSystemLibrary:__snprintf_failed.
jmp 0x1001fe2c
lea eax, [esp + 0x2bc]
push eax
call fcn.1003c33a
mov esi, eax
test esi, esi
jne 0x1001fd9a
push str.LoadSystemLibrary:_LoadLibrary___failed.
call fcn.10003ca0
add esp, 4
test esi, esi
je 0x1001fe36
push str.CreateProcessWithTokenW
push esi
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov ebp, eax
test ebp, ebp
jne 0x1001fdc2
push str.RunAsDesktopUser___CreateProcessWithTokenW_could_not_GetProcAddress
call fcn.10003ca0
mov ebx, dword [esp + 0x14]
add esp, 4
jmp 0x1001feff
push str.RunAsDesktopUser___calling__CreateProcessWithTokenW
call fcn.10003ca0
add esp, 4
lea eax, [esp + 0x70]
mov ecx, 0x44
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x1001fde0
lea eax, [esp + 0x18]
mov dword [esp + 0x70], 0x44
push eax
lea eax, [esp + 0x74]
push eax
push ecx
push ecx
push ecx
push dword [esp + 0x3c]
push ebx
mov ebx, dword [esp + 0x2c]
push ecx
push ebx
call ebp
test eax, eax
jne 0x1001fed9
push str.RunAsDesktopUser:_CreateProcessWithTokenW_failed.
call fcn.10003ca0
add esp, 4
jmp 0x1001feff
push str.LoadSystemLibrary:_GetSystemDirectory_failed.
call fcn.10003ca0
add esp, 4
xor esi, esi
push str.RunAsDesktopUser___CreateProcessWithTokenW_could_not_load_advapi32.dll
call fcn.10003ca0
mov ebx, dword [esp + 0x14]
add esp, 4
jmp 0x1001feff
push str.RunAsDesktopUser___OnWinXP__use_CreateProcessAsUser
call fcn.10003ca0
add esp, 4
mov dword [esp + 0x30], esi
lea eax, [esp + 0x18]
mov dword [esp + 0x2c], 0x44
xorps xmm0, xmm0
mov dword [esp + 0x34], str.winsta0default
movlpd qword [esp + 0x38], xmm0
push eax
lea eax, [esp + 0x30]
movlpd qword [esp + 0x44], xmm0
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
push ebp
push ebx
mov ebx, dword [esp + 0x38]
push ebx
movlpd qword [esp + 0x74], xmm0
movlpd qword [esp + 0x7c], xmm0
movlpd qword [esp + 0x84], xmm0
movlpd qword [esp + 0x8c], xmm0
movlpd qword [esp + 0x94], xmm0
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x1001fed9
push str.RunAsDesktopUser:_CreateProcessAsUser_failed.
call fcn.10003ca0
add esp, 4
jmp 0x1001feff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1001feff
push 0xffffffffffffffff
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
push dword [esp + 0x18]
call edi
push esi
call dword [sym.imp.kernel32.dll_FreeLibrary]
push ebx
call edi
mov ecx, dword [esp + 0x4c4]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003b4ee
add esp, 0x4b8
ret