Function at 0x600160
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x906648]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x214], 0
call fcn.005953c0
test eax, eax
je 0x600431
cmp word [eax], 0
je 0x600431
push esi
push eax
lea eax, [ebp - 0x20c]
push 0x208
push eax
call fcn.004f3880
lea eax, [ebp - 0x20c]
push eax
call fcn.004f36b0
add esp, 0x10
mov esi, eax
push 0x47b
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_sapr_sapr_user.c
push str.loadsapr.exe
call fcn.004f36b0
add eax, esi
add esp, 4
cmp eax, 0x104
sbb ecx, ecx
neg ecx
push ecx
call fcn.004f19f0
add esp, 0xc
cmp word [ebp + esi*2 - 0x20e], 0x5c
je 0x600205
mov eax, 0x5c
mov word [ebp + esi*2 - 0x20c], ax
push str.loadsapr.exe
call fcn.004f36b0
push eax
push str.loadsapr.exe
lea eax, [ebp - 0x20c]
push 0x208
push eax
call fcn.004f3920
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
add esp, 0x14
push eax
push esi
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
jne 0x600253
test byte [0x9538a8], 0x10
je 0x600281
push esi
push str.Session_id__d_is_not_interactive
push 0x494
jmp 0x600267
test byte [0x9538a8], 0x10
je 0x600281
push esi
push str.Session_id__d_is_interactive
push 0x498
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_sapr_sapr_user.c
push str.load_sapr_dll_in_current_session
push dword [0x905514]
push 0x10
call fcn.004f21c0
add esp, 0x1c
push 1
push dword [ebp - 0x210]
lea eax, [ebp - 0x214]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
jne 0x6002ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [0x9538a8], 1
je 0x6002ce
push eax
push esi
push str.Failed_to_create_environment_block_for_session__d___err__d
push 0x49f
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_sapr_sapr_user.c
push str.load_sapr_dll_in_current_session
push dword [0x905514]
push 1
call fcn.004f21c0
add esp, 0x20
test byte [0x9538a8], 0x10
je 0x6002fb
push str.Create_environment_block_succeeded
push 0x4a2
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_sapr_sapr_user.c
push str.load_sapr_dll_in_current_session
push dword [0x905514]
push 0x10
call fcn.004f21c0
add esp, 0x18
lea eax, [ebp - 0x268]
push 0x44
push eax
call fcn.004f3630
add esp, 8
mov dword [ebp - 0x268], 0x44
test byte [0x9538a8], 4
mov dword [ebp - 0x260], 0x6cba10
je 0x600355
push esi
lea eax, [ebp - 0x20c]
push eax
push str.Executing_cmd:__s_in_session__d
push 0x4a9
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_sapr_sapr_user.c
push str.load_sapr_dll_in_current_session
push dword [0x905514]
push 4
call fcn.004f21c0
add esp, 0x20
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x268]
push eax
push 0
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push 0x420
push 0
push 0
push 0
push eax
push 0
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x6003d4
test byte [0x9538a8], 0x10
je 0x6003c2
push str.CreateProcessAsUser_succeeded
push 0x4b8
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_sapr_sapr_user.c
push str.load_sapr_dll_in_current_session
push dword [0x905514]
push 0x10
call fcn.004f21c0
add esp, 0x18
push dword [ebp - 0x224]
call esi
push dword [ebp - 0x220]
call esi
jmp 0x600408
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [0x9538a8], 1
je 0x600408
push eax
push str.CreateProcessAsUser_failed__err__d
push 0x4bf
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_sapr_sapr_user.c
push str.load_sapr_dll_in_current_session
push dword [0x905514]
push 1
call fcn.004f21c0
add esp, 0x1c
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x600418
push eax
call sub.USERENV.dll_DestroyEnvironmentBlock
push dword [ebp - 0x210]
call esi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0063c972
mov esp, ebp
pop ebp
ret
test byte [0x9538a8], 8
je 0x60045e
push str.cfg_get_install_dir___failed.
push 0x48a
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_sapr_sapr_user.c
push str.load_sapr_dll_in_current_session
push dword [0x905514]
push 8
call fcn.004f21c0
add esp, 0x18
mov eax, 0x3d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0063c972
mov esp, ebp
pop ebp
ret