Function at 0x140003910
Capabilities:
Check if file exists
Create directory
Create process on windows
Read .ini file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x948]
sub rsp, 0xa48
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x140040008]
xor rax, rsp
mov qword [rbp + 0x930], rax
mov r12, r9
mov r15, r8
mov rbx, rdx
mov qword [rbp + 0x110], rdx
mov r13, rcx
xor edi, edi
mov esi, edi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x68], rdi
mov qword [r8], rdi
mov dword [rbp - 0x58], edi
mov word [rbp - 0x54], 0x1000
mov qword [rsp + 0x78], rdi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
mov dword [rbp + 0xa0], 0x68
xor edx, edx
lea r8d, [rdi + 0x60]
lea rcx, [rbp + 0xa8]
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 0x80], rdi
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x70]
mov edx, 0x8b
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1400039e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea rcx, [0x14002bb20]
call fcn.1400100c0
jmp 0x140003e91
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x140003a19
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140003e91
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov r8d, 0x1000
mov dl, 1
lea rcx, [rbp - 0x58]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x140003a6d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea rcx, [0x14002bb48]
call fcn.1400100c0
jmp 0x140003e91
mov dword [rbp - 0x60], 0x20
mov rcx, qword [rsp + 0x78]
mov qword [rbp - 0x68], rcx
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
lea r9d, [rax + 0x10]
lea r8, [rbp - 0x68]
mov edx, 0x19
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x140003ab8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea rcx, [0x14002bb80]
call fcn.1400100c0
jmp 0x140003e91
call fcn.1400037c0
test al, al
jne 0x140003ad2
lea rcx, str.SetLowIntegrityFor_Folder_Desktop_WinStation
call fcn.1400100c0
jmp 0x140003e91
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
add eax, 6
movsxd rbx, eax
mov eax, 2
mul rbx
mov rdi, 0xffffffffffffffff
cmovo rax, rdi
mov rcx, rax
call qword [sym.imp.mfc140u.dll_operator]
mov r14, rax
mov r8, qword [rbp + 0x110]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, str._temp
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov rdx, r14
lea rcx, str.Setting_TMP_to___s__n
call fcn.1400100c0
mov rdx, r14
lea rcx, [0x14002bc50]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wputenv_s]
test eax, eax
je 0x140003b5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor edi, edi
jmp 0x140003e83
lea rdx, [rbp + 0x70]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wstat64i32]
test eax, eax
je 0x140003b8d
movzx eax, word [rbp + 0x76]
mov ecx, 0xf000
and ax, cx
mov ecx, 0x4000
cmp ax, cx
je 0x140003b8d
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
xor ebx, ebx
mov dword [rbp - 0x50], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x50]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_IsProcessInJob]
test eax, eax
je 0x140003bc3
cmp dword [rbp - 0x50], ebx
je 0x140003bc3
lea rcx, str.Error:_this_process_is_already_part_of_a_an_existing_JobObject._n
call fcn.1400100c0
xor edi, edi
jmp 0x140003e83
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov qword [r15], rax
test rax, rax
je 0x140003de8
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp + 0x120]
call sub.VCRUNTIME140.dll_memset
mov r8d, operator
lea rdx, [rbp + 0x120]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0x40], 0x100
lea rax, [rbp + 0x530]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x100
lea rax, [rbp + 0x730]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x100
lea r9, [rbp + reloc.mfc140u.dll_CMultiDocTemplate::CMultiDocTemplate]
mov r8d, 3
lea rdx, [rbp + 0x110]
lea rcx, [rbp + 0x120]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
lea rax, str..ini
mov qword [rsp + 0x28], rax
lea rax, str.SandboxLimits
mov qword [rsp + 0x20], rax
lea r9, [rbp + reloc.mfc140u.dll_CMultiDocTemplate::CMultiDocTemplate]
lea r8, [rbp + 0x110]
mov edx, 0x104
lea rcx, [rbp + 0x120]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmakepath_s]
xor edx, edx
mov r8d, 0x90
lea rcx, [rbp - 0x20]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x120]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140003db3
mov dword [rbp - 0x10], 0x200b
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], rbx
mov word [rbp - 0x48], bx
cmp word [rbp + 0x120], 0
jne 0x140003cda
mov rdi, rbx
jmp 0x140003ceb
lea rax, [rbp + 0x120]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140003ce1
mov r8, rdi
lea rdx, [rbp + 0x120]
lea rcx, [rbp - 0x48]
call fcn.1400065e0
nop
lea r9, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae r9, qword [rbp - 0x48]
mov r8d, 0x400
lea rdx, str.MaximumWorkingSetSize
lea rcx, str.Limits
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
lea r9, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae r9, qword [rbp - 0x48]
mov r8d, 1
lea rdx, str.ActiveProcessLimit
lea rcx, str.Limits
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
lea r9, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae r9, qword [rbp - 0x48]
mov r8d, 0x12c
lea rdx, str.PerProcessUserTimeLimit
lea rcx, str.Limits
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, 0x64
cmp edi, 0x32
cmovl edi, ecx
mov qword [rbp - 8], 0x3200000
mov dword [rbp + 8], ebx
shl edi, 0x14
movsxd rcx, edi
mov qword [rbp], rcx
imul eax, eax, 0x989680
movsxd rcx, eax
mov qword [rbp - 0x20], rcx
lea rcx, [rbp - 0x48]
call fcn.140006810
jmp 0x140003dba
mov dword [rbp - 0x10], 0x2000
mov r9d, 0x90
lea r8, [rbp - 0x20]
mov edx, 9
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_SetInformationJobObject]
test eax, eax
je 0x140003de8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, rax
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test r12, r12
je 0x140003df7
mov dl, 1
mov rcx, r12
call fcn.1400042e0
lea rax, [rbp - 0x80]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x48], rax
xor edi, edi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8, r13
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x140003e66
lea rcx, [0x14002a750]
call fcn.1400100c0
mov rcx, r13
call fcn.1400100c0
lea rcx, str._nCreateProcessAsUser_NO_OK...
call fcn.1400100c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140003e83
mov rdx, qword [rbp - 0x80]
lea rcx, str.Waiting_for_child_process_to_complete:__d_n
call fcn.1400100c0
or edx, 0xffffffff
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test r14, r14
je 0x140003e91
mov rcx, r14
call qword [sym.imp.mfc140u.dll_operator_1]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140003ea6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x70], rdi
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140003ebb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x68], rdi
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140003ed0
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov qword [rsp + 0x78], rdi
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140003ee3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x80], rdi
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140003ef6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x78], rdi
test esi, esi
je 0x140003f06
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x140003f08
mov al, 1
mov rcx, qword [rbp + 0x930]
xor rcx, rsp
call fcn.140024e80
add rsp, 0xa48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret