Function at 0x18000f940
Capabilities:
Query environment variable
Resume thread
Terminate process

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x328
mov rax, qword [0x1800530b8]
xor rax, rsp
mov qword [rsp + 0x310], rax
mov dword [rsp + 0x5c], 0
mov qword [rsp + 0x60], 0
mov r8d, 0x104
lea rdx, [rsp + 0xf0]
lea rcx, [0x18003d81c]
call sub.KERNEL32.dll_GetEnvironmentVariableA
mov dword [rsp + 0x58], eax
mov r8d, dword [rsp + 0x338]
mov edx, dword [rsp + 0x330]
lea rcx, [0x18003deb0]
call fcn.18000bf90
cmp dword [rsp + 0x338], 1
jb 0x18000f9cc
cmp dword [rsp + 0x338], 0x1000
jbe 0x18000f9e0
mov ecx, 0x57
call sub.KERNEL32.dll_SetLastError
jmp 0x18000fc22
mov r9, qword [rsp + 0x340]
mov r8d, dword [rsp + 0x338]
mov edx, dword [rsp + 0x330]
lea rcx, [rsp + 0x60]
call fcn.18000bff0
test eax, eax
jne 0x18000fa0f
jmp 0x18000fc22
cmp dword [rsp + 0x58], 0
je 0x18000fa22
mov eax, dword [rsp + 0x58]
cmp rax, 0x104
jb 0x18000fa2c
jmp 0x18000fc22
lea r8, [0x18003dee0]
mov edx, 0x104
lea rcx, [rsp + 0xf0]
call fcn.18000cf50
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x18000fa5a
jmp 0x18000fc22
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x60]
lea rax, [rcx + rax + 0xc]
mov r9, rax
lea r8, [0x18003def8]
mov edx, 0x104
lea rcx, [rsp + 0x200]
call fcn.18000d140
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x18000fa9e
jmp 0x18000fc22
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.180015b40
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.180015b40
mov dword [rsp + 0x80], 0x68
lea r8, [rsp + 0x200]
lea rdx, [rsp + 0xf0]
lea rcx, str.DetourProcessViaHelperDlls___hs_____hs___n
call fcn.18000bf90
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x200]
lea rcx, [rsp + 0xf0]
call qword [rsp + 0x348]
test eax, eax
je 0x18000fc0f
mov rax, qword [rsp + 0x60]
mov r9d, dword [rax]
mov r8, qword [rsp + 0x60]
lea rdx, [0x18003d1d0]
mov rcx, qword [rsp + 0x68]
call fcn.18000ee10
test eax, eax
jne 0x18000fba6
call sub.KERNEL32.dll_GetLastError
mov edx, eax
lea rcx, [0x18003df40]
call fcn.18000bf90
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call sub.KERNEL32.dll_TerminateProcess
mov rcx, qword [rsp + 0x68]
call sub.KERNEL32.dll_CloseHandle
mov rcx, qword [rsp + 0x70]
call sub.KERNEL32.dll_CloseHandle
jmp 0x18000fc22
mov rcx, qword [rsp + 0x70]
call sub.KERNEL32.dll_ResumeThread
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call sub.KERNEL32.dll_WaitForSingleObject
mov dword [rsp + 0x54], 0x1f4
lea rdx, [rsp + 0x54]
mov rcx, qword [rsp + 0x68]
call sub.KERNEL32.dll_GetExitCodeProcess
mov rcx, qword [rsp + 0x68]
call sub.KERNEL32.dll_CloseHandle
mov rcx, qword [rsp + 0x70]
call sub.KERNEL32.dll_CloseHandle
cmp dword [rsp + 0x54], 0
je 0x18000fc05
mov edx, dword [rsp + 0x54]
lea rcx, [0x18003df68]
call fcn.18000bf90
jmp 0x18000fc22
mov dword [rsp + 0x5c], 1
jmp 0x18000fc22
call sub.KERNEL32.dll_GetLastError
mov edx, eax
lea rcx, [0x18003df90]
call fcn.18000bf90
lea rcx, [rsp + 0x60]
call fcn.18000c740
mov eax, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.180013440
add rsp, 0x328
ret