Function at 0x140039b04
Capabilities:
Acquire debug privileges

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x98
xor esi, esi
mov rbx, rcx
lea rcx, [rsp + 0x48]
mov r12d, 1
mov dword [rsp + 0x30], esi
mov byte [rsp + 0xf0], sil
mov qword [rsp + 0x60], rsi
mov dword [rax + 0x20], esi
mov dword [rsp + 0x3c], esi
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x38], esi
call fcn.14005c96c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rdx, qword [rsp + 0xe8]
lea r8, [rsp + 0x48]
xor r9d, r9d
mov rcx, rbx
mov dword [rsp + 0x58], eax
mov byte [rsp + 0x20], r12b
call fcn.140071328
mov r11, qword [rsp + 0x48]
lea eax, [rsi + 0x2d]
mov qword [rsp + 0xe8], r11
movzx r14d, si
lea edi, [rsi + 0x2a]
mov bp, si
mov r13w, si
mov word [rsp + 0x34], si
cmp ax, word [r11]
jne 0x140039baa
mov edi, eax
mov r15d, 4
cmp di, word [r11]
jne 0x140039e0f
lea ebx, [r15 + 5]
add r11, 2
mov qword [rsp + 0xe8], r11
je 0x140039d27
lea rdx, [rsp + 0xe8]
lea rcx, str.force
mov r8d, 5
call fcn.14005f144
cmp al, sil
je 0x140039bf8
or r14w, r12w
jmp 0x140039d15
mov rdx, qword [rsp + 0xe8]
lea rcx, str.svr2
mov r8d, r15d
call fcn.14005615c
cmp al, sil
jne 0x140039d77
mov rdx, qword [rsp + 0xe8]
lea rcx, str.exitcode
mov r8d, ebx
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
cmp eax, esi
jne 0x140039c86
mov rax, qword [rsp + 0xe8]
mov dword [rsp + 0x40], esi
lea rdx, [rsp + 0x40]
add rax, 0x14
mov qword [rsp + 0xe8], rax
movzx ecx, word [rax]
sub cx, 0x30
cmp cx, bx
lea rcx, [rsp + 0xe8]
setbe bl
call fcn.14006b2e8
cmp bl, sil
mov ebx, 9
je 0x140039d15
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x30], eax
jmp 0x140039d15
lea rdx, [rsp + 0xe8]
lea rcx, str.explorer
mov r8d, 8
call fcn.14005f144
cmp al, sil
je 0x140039cac
mov dword [rsp + 0x30], r12d
jmp 0x140039d15
lea rdx, [rsp + 0xe8]
lea rcx, [0x140102b64]
mov r8d, 3
call fcn.14005f144
cmp al, sil
je 0x140039cd0
mov ebp, r12d
jmp 0x140039d15
lea rdx, [rsp + 0xe8]
lea rcx, str.tree
mov r8d, r15d
call fcn.14005f144
cmp al, sil
je 0x140039cf4
mov r13d, 0xc0
jmp 0x140039d15
lea rdx, [rsp + 0xe8]
lea rcx, [0x140102b58]
mov r8d, r12d
call fcn.14005f144
cmp al, sil
je 0x140039d6c
mov dword [rsp + 0x34], r12d
mov r11, qword [rsp + 0xe8]
cmp di, word [r11]
je 0x140039bbe
cmp bp, si
je 0x140039e0f
mov rax, qword [str.26:INDATA]
lea rcx, [rsp + 0x70]
lea rdx, [rsp + 0x70]
mov qword [rcx], rax
mov rax, qword [0x140102b48]
mov qword [rcx + 8], rax
mov rax, qword [0x140102b50]
mov qword [rcx + 0x10], rax
mov rcx, qword [rsp + 0xe0]
call fcn.14003097c
jmp 0x14003a136
sub qword [rsp + 0xe8], 2
jmp 0x140039d27
lea rbp, [0x14011cf88]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, 2
lea rcx, str.SeShutdownPrivilege
lea r8d, [rdx + 6]
call fcn.14001a7c8
movzx eax, word [0x14011d00c]
mov bl, sil
lea r12, str.SeDebugPrivilege
test r15b, al
jne 0x140039dce
xor r8d, r8d
or ax, r15w
mov rcx, r12
lea edx, [r8 + 2]
mov bl, 1
mov word [0x14011d00c], ax
call fcn.14001a7c8
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_AbortSystemShutdownW]
cmp bl, sil
je 0x140039df5
mov eax, 0xfffb
xor r8d, r8d
mov edx, r15d
and word [0x14011d00c], ax
mov rcx, r12
call fcn.14001a7c8
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rsp + 0x48]
call fcn.140054c44
xor eax, eax
jmp 0x14003a143
lea rbp, [0x14011cf88]
mov rcx, rbp
mov rbx, rbp
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp r14b, sil
mov r14d, 4
mov r15d, 0x8000
mov dil, sil
lea r12, str.SeDebugPrivilege
je 0x140039e6b
movzx eax, word [0x14011d00c]
test r14b, al
jne 0x140039e6b
lea ebp, [r14 - 3]
or ax, r14w
xor r8d, r8d
lea edx, [rbp + 1]
mov rcx, r12
mov dil, bpl
mov word [0x14011d00c], ax
call fcn.14001a7c8
jmp 0x140039e7c
mov rcx, rbp
mov rbx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebp, 1
mov rcx, qword [rsp + 0xe8]
mov eax, 0x2a
cmp ax, word [rcx]
jne 0x140039f34
add rcx, 2
lea rdx, [rsp + 0xf8]
mov qword [rsp + 0xe8], rcx
lea rcx, [rsp + 0xe8]
call fcn.14006b2e8
cmp eax, esi
jg 0x140039ef0
cmp dil, sil
je 0x140039ed6
mov eax, 0xfffb
xor r8d, r8d
mov edx, r14d
and word [0x14011d00c], ax
mov rcx, r12
call fcn.14001a7c8
cmp rbx, rsi
je 0x140039ee4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rsi, 0xffffffff80070057
jmp 0x14003a136
mov ecx, dword [rsp + 0xf8]
mov r14d, ecx
mov dword [rsp + 0x3c], ecx
cmp r13w, si
je 0x140039f20
lea r10, [0x1400fd538]
or r13w, bp
mov ebp, dword [rsp + 0x30]
mov qword [rsp + 0xe8], r10
jmp 0x140039fec
mov ebp, dword [rsp + 0x30]
mov r10, rsi
mov qword [rsp + 0xe8], rsi
jmp 0x14003a074
call fcn.1400176cc
mov rcx, rax
call fcn.14001a310
mov qword [rsp + 0xe8], rax
cmp word [rax], si
je 0x140039eb7
mov edx, 0x5c
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov r10, qword [rsp + 0xe8]
neg rax
sbb al, al
and al, 0x20
mov byte [rsp + 0xf0], al
cmp r10, rsi
je 0x140039fd7
mov ebp, 0x2a
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x68], r10
lea r8d, [rbp + 0x15]
mov edx, ebp
call fcn.140054ea8
mov r11, qword [rsp + 0x68]
mov r10, qword [rsp + 0xe8]
cmp r11, r10
jbe 0x140039fcb
cmp bp, word [r11]
jne 0x140039fcb
cmp word [r11 + 2], si
jne 0x140039fcb
mov word [r11], si
mov r10, qword [rsp + 0xe8]
mov qword [rsp + 0x60], r11
lea r13d, [rbp + 0x57]
jmp 0x140039fd7
cmp word [r11], si
je 0x140039fd7
mov r13d, 0x181
mov ecx, dword [rsp + 0xf8]
mov ebp, dword [rsp + 0x30]
cmp r10, rsi
je 0x14003a048
mov r14d, dword [rsp + 0x3c]
movzx eax, r13w
mov rcx, r10
mov dword [rsp + 0x20], r14d
neg ax
movsx eax, byte [rsp + 0xf0]
sbb edx, edx
xor r9d, r9d
and edx, ebp
mov r8d, edx
movzx edx, r13w
or edx, 0x10
or edx, eax
call fcn.140020bc0
mov rcx, rax
mov dword [rsp + 0xf8], eax
cmp r14d, esi
je 0x14003a040
lea r8, [rsp + 0x50]
mov edx, ebp
mov ecx, r14d
call fcn.140018a4c
mov ecx, dword [rsp + 0xf8]
mov r10, qword [rsp + 0xe8]
cmp r13w, si
je 0x14003a06e
cmp ecx, esi
mov rax, rsi
sete al
mov qword [rsp + 0x50], rax
cmp r10, rsi
je 0x14003a0f1
cmp ecx, esi
je 0x14003a0f1
jmp 0x14003a093
cmp dword [rsp + 0x58], ecx
je 0x14003a093
cmp ecx, esi
je 0x14003a093
lea r8, [rsp + 0x50]
mov edx, ebp
call fcn.140018a4c
mov r10, qword [rsp + 0xe8]
mov ecx, dword [rsp + 0xf8]
cmp word [rsp + 0x34], si
jne 0x14003a0f1
cmp r10, rsi
je 0x14003a0f1
cmp ecx, esi
je 0x14003a0f1
mov r14d, 1
cmp dword [rsp + 0x38], ecx
jne 0x14003a0d4
mov rcx, qword [rsp + 0xe0]
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
call fcn.14001df90
mov r10, qword [rsp + 0xe8]
mov ecx, dword [rsp + 0xf8]
cmp r13w, si
mov eax, ecx
cmovne eax, esi
cmp ecx, esi
mov dword [rsp + 0x38], eax
jle 0x14003a0f1
sub r15d, r14d
cmp r15d, esi
jg 0x140039fe2
mov rax, qword [rsp + 0x60]
cmp rax, rsi
je 0x14003a103
mov ecx, 0x2a
mov word [rax], cx
cmp dil, sil
je 0x14003a123
xor r8d, r8d
mov eax, 0xfffb
mov rcx, r12
and word [0x14011d00c], ax
lea edx, [r8 + 4]
call fcn.14001a7c8
cmp rbx, rsi
je 0x14003a131
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rsi, qword [rsp + 0x50]
lea rcx, [rsp + 0x48]
call fcn.140054c44
mov rax, rsi
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret