Function at 0x140001fb0
Capabilities:
Check if file exists
Delete registry value
Get thread local storage value
Get token membership
Query or enumerate registry value
Terminate process

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
lea rbp, [rsp - 0x148]
sub rsp, 0x248
mov rax, qword [0x1400b77a8]
xor rax, rsp
mov qword [rbp + 0x120], rax
xor edi, edi
mov qword [rbp - 0x48], r9
mov qword [rsp + 0x68], r8
mov r13, rcx
mov qword [rbp + 0x48], rdx
mov r14, rcx
mov qword [rbp - 0x20], rcx
mov dword [rsp + 0x60], 0x7b
lea rsi, [rdi - 1]
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x70], rdi
mov dword [rbp - 0x64], edi
mov qword [rbp - 0x58], rdi
test rcx, rcx
je 0x140002041
mov rax, rsi
inc rax
cmp word [rcx + rax*2], di
jne 0x140002015
inc rax
cmp rax, 0x21b
jbe 0x140002041
mov ecx, 0x709
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x1400031b0
cmp dword [0x1400b9560], edi
mov ebx, 2
jne 0x14000213a
call sym.spoolsv.exe_PrvRevertToPrinterSelf
lea r8, str.RouterPreInitEvent
xor edx, edx
mov ecx, ebx
mov rdi, rax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenEventW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x1400020e7
mov rax, qword [0x1400b72f8]
lea rcx, [0x1400b72f8]
cmp rax, rcx
je 0x1400020bb
test byte [rax + 0x44], 0x20
je 0x1400020bb
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400b72f8]
lea edx, [rbx + 0x15]
mov r9d, eax
lea r8, [0x14009ca70]
mov rcx, qword [rcx + 0x38]
call fcn.1400305f8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
xor r8d, r8d
lea rcx, [0x14009b6d8]
mov edx, eax
call fcn.1400531a8
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test rdi, rdi
je 0x14000212e
mov rcx, rdi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
test eax, eax
jne 0x14000212e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, eax
mov ecx, 0x69
call fcn.140052da0
mov edx, 0xffffffff
call fcn.14005835c
xor edi, edi
mov qword [rsp + 0x240], r12
test r13, r13
je 0x140002183
lea rdx, str._NoCache
mov rcx, r13
call qword [sym.imp.msvcrt.dll_wcsstr]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140002183
mov rcx, r13
call sym.spoolsv.exe_PrvDllAllocSplStr
mov r14, rax
test rax, rax
je 0x14000220f
sub rbx, r13
sar rbx, 1
mov word [rax + rbx*2], di
mov rcx, qword [0x1400b9518]
mov edx, 8
lea r8d, [rdx + 0x60]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
mov qword [rbp - 0x60], rax
mov r12, rax
test rax, rax
jne 0x140002216
lea ecx, [rax + 8]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x1400021ed
test byte [rcx + 0x44], 0x20
je 0x1400021ed
mov rcx, qword [rcx + 0x38]
lea edx, [r12 + 0xa]
lea r9d, [r12 + 0x68]
lea r8, [0x14009ca90]
call fcn.1400305f8
cmp r14, r13
je 0x14000220f
test r14, r14
je 0x14000220f
mov rcx, qword [0x1400b9518]
mov r8, r14
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
xor eax, eax
jmp 0x1400031a8
mov qword [rsp + 0x238], r15
lea r15, [0x1400b72f8]
mov dword [rax], 0x6060
mov qword [rax + 0x38], rsi
mov qword [rax + 0x40], rdi
mov qword [rax + 0x50], 0
mov dword [rax + 0x58], edi
mov qword [rax + 0x60], rdi
test r14, r14
je 0x140002316
mov rax, rsi
nop
cmp word [r14 + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140002250
mov rcx, qword [0x1400b9518]
lea r15d, [rax*2 + 2]
mov r8d, r15d
mov edx, 8
mov edi, r15d
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x1400022cb
lea ecx, [rax + 8]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400b72f8]
lea rdx, [0x1400b72f8]
cmp rcx, rdx
je 0x1400022d9
test byte [rcx + 0x44], 0x20
je 0x1400022d9
mov rcx, qword [rcx + 0x38]
lea edx, [rbx + 0xa]
mov r9d, r15d
lea r8, [0x14009ca90]
call fcn.1400305f8
jmp 0x1400022d9
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call sub.msvcrt.dll_memcpy
mov qword [r12 + 0x48], rbx
test rbx, rbx
jne 0x14000230f
cmp r14, r13
je 0x140002300
mov rcx, qword [0x1400b9518]
mov r8, r14
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rcx, r12
call fcn.14000cdac
xor eax, eax
jmp 0x1400031a0
lea r15, [0x1400b72f8]
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x14000232b
cmp qword [rdx + 8], 0
jne 0x140002c9c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [0x1400b9550]
mov edi, eax
cmp ecx, 0xffffffff
jne 0x140002348
xor eax, eax
jmp 0x140002354
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
nop dword [rax + rax]
lea rdx, [rbp - 0x40]
mov rcx, rax
call qword [sym.imp.RPCRT4.dll_I_RpcBindingInqTransportType]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x140002391
cmp eax, 0x6bd
je 0x14000238a
test eax, eax
jle 0x14000248c
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14000248c
xor ebx, ebx
jmp 0x14000248c
cmp dword [rbp - 0x40], 4
je 0x1400023a1
mov ebx, 1
jmp 0x14000248c
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
nop dword [rax + rax]
mov edx, 8
lea r9, [rbp + 0x28]
mov rcx, rax
lea r8d, [rdx - 7]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
nop dword [rax + rax]
test eax, eax
je 0x140002478
xor ebx, ebx
mov dword [rbp + 0x68], 0
lea rax, [rbp - 0x30]
mov word [rbp + 0x6c], 0x500
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x68]
mov dword [rsp + 0x48], ebx
xor r9d, r9d
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 2]
mov dword [rsp + 0x38], ebx
mov dl, 1
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov qword [rbp - 0x30], rbx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
nop dword [rax + rax]
test eax, eax
je 0x14000245f
mov rdx, qword [rbp - 0x30]
lea r8, [rbp - 0x3c]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
je 0x140002446
cmp dword [rbp - 0x3c], ebx
setne bl
jmp 0x14000244d
call fcn.14000dcb4
mov ebx, eax
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
nop dword [rax + rax]
jmp 0x140002466
call fcn.14000dcb4
mov ebx, eax
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x14000248c
call fcn.14000dcb4
mov ebx, eax
cmp eax, 0x800703f0
mov eax, 0
cmove ebx, eax
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
test ebx, ebx
jns 0x1400024ca
mov rcx, qword [0x1400b72f8]
cmp rcx, r15
je 0x1400024c8
test byte [rcx + 0x44], 0x20
je 0x1400024c8
mov rcx, qword [rcx + 0x38]
lea r8, [0x14009cb48]
mov edx, 0x12
mov r9d, ebx
call fcn.1400305f8
test ebx, ebx
jne 0x140002c97
mov rcx, r14
call fcn.1400031e0
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x58], rax
test r14, r14
jne 0x1400024fb
lea ecx, [rax + 6]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
jmp 0x140002c97
mov byte [rbp + 0x38], al
mov r15d, eax
mov qword [rsp + 0x78], rsi
mov ebx, eax
mov qword [rsp + 0x70], rsi
mov r12d, eax
mov dword [rbp - 0x68], 0x58
mov r13d, eax
mov qword [rbp - 0x28], rax
mov qword [rbp + 0x30], rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
nop dword [rax + rax]
mov edi, 1
lea r9, [rsp + 0x78]
mov rcx, rax
mov r8d, edi
lea edx, [rdi + 0xd]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
nop dword [rax + rax]
test eax, eax
je 0x140002815
mov rcx, qword [rsp + 0x78]
lea r8, [rbp + 0x70]
mov r9d, dword [rbp - 0x68]
lea edx, [rdi + 0x18]
xorps xmm0, xmm0
xor eax, eax
cmp rcx, rsi
mov qword [rbp + 0xc0], rax
movups xmmword [rbp + 0x70], xmm0
cmove rcx, rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
movups xmmword [rbp + 0x80], xmm0
movups xmmword [rbp + 0x90], xmm0
movups xmmword [rbp + 0xa0], xmm0
movups xmmword [rbp + 0xb0], xmm0
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
nop dword [rax + rax]
test eax, eax
jne 0x1400025c4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140002803
mov rcx, qword [rbp + 0x70]
mov edx, 0x42
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_IsWellKnownSid]
nop dword [rax + rax]
test eax, eax
cmovne r13d, edi
call qword [sym.imp.KERNELBASE.dll_GetIsEdpEnabled]
nop dword [rax + rax]
mov edi, eax
test r13d, r13d
jne 0x1400025fa
test eax, eax
je 0x14000276b
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
cmp rcx, rsi
mov eax, 2
mov edx, 0x8e
cmove rcx, rbx
mov dword [rsp + 0x20], eax
xor r8d, r8d
mov r9d, eax
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_DuplicateTokenEx]
nop dword [rax + rax]
test eax, eax
jne 0x140002647
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x1400027fe
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_RevertToSelf]
nop dword [rax + rax]
test eax, eax
jne 0x14000266a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x1400027fe
mov r12d, 1
test edi, edi
je 0x14000268a
mov rcx, qword [rsp + 0x70]
mov rdi, rbx
cmp rcx, rsi
cmove rcx, rbx
call fcn.1400544c0
jmp 0x14000268c
xor edi, edi
test r13d, r13d
je 0x14000276b
xor edx, edx
mov dword [rbp - 0x38], 0x44
lea r9, [rbp - 0x38]
lea r8, [rbp + 0xd0]
lea ecx, [rdx + 0x43]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CreateWellKnownSid]
nop dword [rax + rax]
test eax, eax
jne 0x1400026cf
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x1400027b9
mov rcx, qword [rsp + 0x70]
lea r8, [rbp + 0x70]
xor eax, eax
mov dword [rbp + 0x78], 0x60
xorps xmm0, xmm0
mov qword [rbp + 0xbc], rax
mov r9d, 0x58
mov dword [rbp + 0xc4], eax
cmp rcx, rsi
lea rax, [rbp + 0xd0]
movups xmmword [rbp + 0x7c], xmm0
cmove rcx, rdi
mov qword [rbp + 0x70], rax
lea edx, [r9 - 0x3f]
movups xmmword [rbp + 0x8c], xmm0
movups xmmword [rbp + 0x9c], xmm0
movups xmmword [rbp + 0xac], xmm0
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_SetTokenInformation]
nop dword [rax + rax]
test eax, eax
jne 0x140002746
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x1400027b9
mov rcx, qword [rsp + 0x70]
cmp rcx, rsi
cmove rcx, rdi
call fcn.140073b28
test eax, eax
jne 0x14000276b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x1400027b9
cmp qword [rsp + 0x70], rsi
jne 0x14000277a
mov r15d, 1
jmp 0x1400027b4
mov rcx, qword [rsp + 0x70]
mov edi, 1
mov r15d, edi
test rcx, rcx
je 0x1400027b4
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_SetThreadToken]
nop dword [rax + rax]
test eax, eax
jne 0x1400027dd
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
xor eax, eax
mov r15d, eax
test r12d, r12d
je 0x1400027d8
mov rdx, qword [rsp + 0x78]
mov eax, 0
cmp rdx, rsi
cmove rdx, rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_SetThreadToken]
nop dword [rax + rax]
test r15d, r15d
je 0x1400027fe
mov rcx, qword [rsp + 0x78]
mov rdi, rsi
mov qword [rbp - 0x28], rsi
cmp rcx, rsi
je 0x1400027fa
mov rdi, rcx
mov qword [rbp - 0x28], rcx
mov qword [rsp + 0x78], rsi
mov qword [rbp + 0x30], rdi
mov edi, 1
test ebx, ebx
je 0x140002815
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x70]
cmp rcx, rsi
je 0x140002830
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov qword [rsp + 0x70], rsi
mov rcx, qword [rsp + 0x78]
cmp rcx, rsi
je 0x14000284b
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov qword [rsp + 0x78], rsi
test r15d, r15d
je 0x14000285e
xor al, al
test r13d, r13d
movzx eax, al
cmovne eax, edi
mov byte [rbp + 0x38], al
xor r12d, r12d
lea rdx, [rbp - 0x50]
mov ecx, 0x2001f
mov qword [rbp - 0x50], r12
mov r15d, r12d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenCurrentUser]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x1400028e5
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
cmp ebx, 5
je 0x1400028c7
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x1400028c7
test byte [rcx + 0x44], 0x20
je 0x1400028c7
mov rcx, qword [rcx + 0x38]
lea edx, [r12 + 0xf]
mov r9d, ebx
lea r8, [0x14009cb48]
call fcn.1400305f8
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x1400028dc
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rdi, r12
mov qword [rbp - 0x50], r12
jmp 0x1400028e9
mov rdi, qword [rbp - 0x50]
test rdi, rdi
jne 0x140002924
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 5
jne 0x14000290c
mov ecx, 0x20019
call sym.spoolsv.exe_PrvSplGetClientUserHandle
mov rdi, rax
test rdi, rdi
jne 0x140002924
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140002ae1
cmp word [r14], 0x5c
jne 0x140002a8a
cmp word [r14 + 2], 0x5c
jne 0x140002a8a
nop dword [rax + rax]
inc rsi
cmp word [r14 + rsi*2], r12w
jne 0x140002940
cmp rsi, 0x21b
jae 0x140002a78
mov rcx, qword [0x1400b9518]
mov edx, 8
mov r8d, 0x462
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x1400029d1
lea ecx, [rax + 8]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x1400029be
test byte [rcx + 0x44], 0x20
je 0x1400029be
mov rcx, qword [rcx + 0x38]
lea edx, [rsi + 0xa]
mov r9d, 0x462
lea r8, [0x14009ca90]
call fcn.1400305f8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140002a7d
lea r9, [0x14009b1b0]
mov edx, 0x231
mov rcx, rsi
call fcn.1400168e8
lea r11, [rsi + 0x2a]
cmp r11, r14
je 0x140002a12
mov edx, 0x21c
call fcn.140016a1c
test eax, eax
js 0x140002a0e
mov r9, r14
mov edx, 0x21c
mov rcx, r11
call fcn.1400168e8
jmp 0x140002a12
mov word [r11], r12w
movzx eax, word [r11]
test ax, ax
je 0x140002a38
mov ecx, 0x2c
cmp ax, 0x5c
jne 0x140002a2a
mov word [r11], cx
movzx eax, word [r11 + 2]
add r11, 2
test ax, ax
jne 0x140002a20
lea rax, [rbp - 0x78]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov rcx, qword [0x1400b9518]
mov r8, rsi
xor edx, edx
mov ebx, eax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
jmp 0x140002a7d
mov ebx, 0x57
test ebx, ebx
jne 0x140002a8a
lea r15, str.DevMode
jmp 0x140002ad2
lea rax, [rbp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, [0x14009ad48]
lea rax, [rbp - 0x78]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, rdi
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r12d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
mov ebx, eax
cmove r15, r14
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
je 0x140002b06
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140002c3a
mov rcx, qword [rbp - 0x78]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x58], r12
xor r9d, r9d
mov qword [rsp + 0x50], r12
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor edx, edx
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140002c2a
mov ecx, dword [rbp - 0x80]
cmp ecx, 0x48
jb 0x140002c2a
call sym.spoolsv.exe_PrvDllAllocSplMem
mov qword [rbp - 0x58], rax
mov rdi, rax
test rax, rax
jne 0x140002b84
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140002c2a
mov rcx, qword [rbp - 0x78]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140002c07
mov r8d, dword [rbp - 0x80]
mov r9d, 0x8007000d
cmp r8, 0x4c
jb 0x140002bdc
movzx ecx, word [rdi + 0x46]
movzx eax, word [rdi + 0x44]
add rcx, rax
cmp r8, rcx
jb 0x140002bdc
mov rcx, rdi
call fcn.140006d60
mov r9d, eax
mov ecx, r9d
call fcn.1400080cc
mov ebx, eax
test eax, eax
je 0x140002c23
mov rcx, qword [rbp - 0x78]
mov rdx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, eax
mov eax, 2
cmove ebx, eax
mov rcx, qword [0x1400b9518]
mov r8, rdi
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov qword [rbp - 0x58], r12
cmp ebx, 2
cmove ebx, r12d
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
je 0x140002d0e
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
cmp ebx, 5
je 0x140002c86
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x140002c86
test byte [rcx + 0x44], 0x20
je 0x140002c86
mov rcx, qword [rcx + 0x38]
lea r8, [0x14009cc68]
mov edx, 0xf
mov r9d, ebx
call fcn.1400305f8
lea rcx, [rbp + 0x30]
call fcn.14000c0e8
mov r12, qword [rbp - 0x60]
mov r13, qword [rbp - 0x20]
mov rdx, qword [rsp + 0x68]
mov r15d, dword [rbp + 0x1a0]
xorps xmm0, xmm0
mov rdi, qword [rbp - 0x48]
xor eax, eax
mov qword [rbp + 0x20], rax
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
cmp r15d, 4
jne 0x140002d99
mov eax, dword [rdi + 0x30]
mov dword [r12 + 0x54], eax
mov eax, dword [rdi + 0x34]
mov dword [r12 + 0x58], eax
mov eax, dword [rdi]
mov dword [rbp - 0xc], eax
mov rax, qword [rdi + 8]
mov qword [rbp], rax
mov rax, qword [rdi + 0x10]
mov qword [rbp + 8], rax
mov eax, dword [rdi + 0x18]
mov dword [rbp + 0x10], eax
mov eax, dword [rdi + 0x1c]
mov dword [rbp + 0x14], eax
mov eax, dword [rdi + 0x20]
mov dword [rbp + 0x18], eax
movzx eax, word [rdi + 0x24]
mov word [rbp + 0x1c], ax
mov rax, qword [rdi + 0x28]
jmp 0x140002dd3
mov rbx, qword [rbp - 0x28]
cmp rbx, 0xffffffffffffffff
je 0x140002d51
test rbx, rbx
je 0x140002d42
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_SetThreadToken]
nop dword [rax + rax]
test eax, eax
jne 0x140002d42
lea ecx, [rax + 1]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov rbx, qword [rbp - 0x58]
test rbx, rbx
je 0x140002c8f
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140002d77
mov rax, qword [rcx]
mov qword [rbp + 0x50], rax
mov eax, dword [rcx + 0x10]
mov dword [rbp + 0x60], eax
jmp 0x140002d7f
mov qword [rbp + 0x50], r12
mov dword [rbp + 0x60], r12d
mov r13, qword [rbp - 0x20]
lea rdx, [rbp + 0x50]
mov r12, qword [rbp - 0x60]
mov qword [rsp + 0x68], rdx
mov qword [rbp + 0x58], rbx
jmp 0x140002c9c
cmp r15d, 3
jne 0x140002de5
mov eax, dword [rdi + 4]
mov dword [rbp - 0xc], eax
mov rax, qword [rdi + 0x10]
mov qword [rbp], rax
mov rax, qword [rdi + 0x18]
mov qword [rbp + 8], rax
mov eax, dword [rdi + 0x20]
mov dword [rbp + 0x10], eax
mov eax, dword [rdi + 0x24]
mov dword [rbp + 0x14], eax
mov eax, dword [rdi + 0x28]
mov dword [rbp + 0x18], eax
movzx eax, word [rdi + 0x2c]
mov word [rbp + 0x1c], ax
mov rax, qword [rdi + 0x30]
mov qword [rbp + 0x20], rax
mov dword [rbp - 8], 0x28
mov dword [rbp - 0x10], 0x38
cmp dword [rbp + 0x1a8], 0
mov r12d, 3
je 0x140002e5f
mov rsi, qword [0x1400b9558]
lea eax, [r15 - 3]
cmp eax, 1
lea r9, [rbp - 0x10]
mov ecx, r12d
lea eax, [r15 - 3]
cmova ecx, r15d
mov r8, rdx
cmp eax, 1
mov dword [rsp + 0x20], ecx
mov rax, qword [rsi + 0x1e8]
lea rdx, [rbp - 0x70]
cmova r9, rdi
mov rcx, r14
call qword [0x140098d58]
mov ebx, eax
cmp eax, 1
je 0x1400030fd
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
lea rdx, [rsp + 0x60]
call fcn.14000c564
cmp ebx, 2
je 0x140002fe4
lea rcx, [0x1400b9258]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rcx, r14
call fcn.14000c3f0
lea rcx, [0x1400b9258]
mov rsi, rax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
test rsi, rsi
je 0x140002f43
mov r8, qword [rsp + 0x68]
lea eax, [r15 - 3]
cmp eax, 1
lea r9, [rbp - 0x10]
mov ecx, r12d
lea eax, [r15 - 3]
cmova ecx, r15d
lea rdx, [rbp - 0x70]
cmp eax, 1
mov dword [rsp + 0x20], ecx
mov rax, qword [rsi + 0x1e8]
mov rcx, r14
cmova r9, rdi
call qword [0x140098d58]
mov ebx, eax
test eax, eax
jne 0x140002eec
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x32
je 0x140002ef1
jmp 0x140002f12
cmp eax, 0x32
jne 0x140002f09
mov r8, qword [rsp + 0x68]
lea rdx, [rbp - 0x70]
mov rax, qword [rsi + 0x20]
mov rcx, r14
call qword [0x140098d58]
mov ebx, eax
cmp ebx, 1
je 0x1400030fd
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
lea rdx, [rsp + 0x60]
call fcn.14000c564
cmp ebx, 2
je 0x140002fe4
mov rbx, rsi
mov dword [rbp - 0x64], 1
mov qword [rbp - 0x18], rbx
jmp 0x140002f47
mov rbx, qword [rbp - 0x18]
mov rcx, r14
call fcn.14000bf48
cmp dword [rbp - 0x64], 0
mov rsi, rax
je 0x140002f8b
cmp rax, rbx
je 0x140002f8b
lea rcx, [0x1400b9258]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rcx, r14
call fcn.14006e9ac
lea rcx, [0x1400b9258]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
test rsi, rsi
je 0x140003060
cmp rsi, rbx
je 0x140002fe4
mov r9, qword [rsp + 0x68]
lea eax, [r15 - 3]
cmp eax, 1
lea rcx, [rbp - 0x10]
lea eax, [r15 - 3]
mov rdx, r14
cmova r12d, r15d
lea r8, [rbp - 0x70]
cmp eax, 1
mov dword [rsp + 0x30], r12d
lea rax, [rsp + 0x60]
cmova rcx, rdi
mov qword [rsp + 0x28], rcx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14000c498
cmp eax, 1
je 0x1400030fd
mov rcx, qword [rbp - 0x60]
call fcn.14000cdac
mov ecx, dword [rsp + 0x60]
mov ebx, 0x709
cmp ecx, 0x7b
cmove ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov edi, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 5
je 0x14000311b
cmp eax, ebx
je 0x14000311b
mov rax, qword [0x1400b72f8]
lea rdx, [0x1400b72f8]
cmp rax, rdx
je 0x140003163
test byte [rax + 0x44], 0x20
je 0x140003163
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0xf
jmp 0x140003145
mov rax, qword [0x1400b9558]
mov rsi, qword [rax]
test rsi, rsi
je 0x140002fe4
cmp rsi, rbx
je 0x1400030ec
mov rcx, qword [rsi + 8]
lea eax, [r15 - 3]
cmp eax, 1
lea rbx, [rbp - 0x10]
lea eax, [r15 - 3]
mov edi, r12d
cmova edi, r15d
lea rdx, str.win32spl.dll
cmp eax, 1
cmova rbx, qword [rbp - 0x48]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
mov r9, qword [rsp + 0x68]
lea r8, [rbp - 0x70]
test eax, eax
mov dword [rsp + 0x30], edi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rbx
mov rdx, r13
mov qword [rsp + 0x20], rax
cmovne rdx, r14
mov rcx, rsi
call fcn.14000c498
sub eax, 1
je 0x1400030fd
cmp eax, 1
je 0x140002fe4
mov rbx, qword [rbp - 0x18]
mov rsi, qword [rsi]
test rsi, rsi
jne 0x140003073
jmp 0x140002fe4
mov rcx, qword [rbp - 0x60]
mov edi, 1
mov qword [rcx + 8], rsi
mov rax, qword [rbp - 0x70]
mov qword [rcx + 0x10], rax
mov rax, qword [rbp + 0x48]
mov qword [rax], rcx
jmp 0x140003163
mov rax, qword [0x1400b72f8]
lea rdx, [0x1400b72f8]
cmp rax, rdx
je 0x140003163
test byte [rax + 0x44], 0x80
je 0x140003163
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0xe
mov rcx, qword [0x1400b72f8]
lea r8, [0x14009caa0]
mov r9, r13
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x38]
call fcn.14004d5c8
mov r8, qword [rbp - 0x58]
xor edx, edx
mov rcx, qword [0x1400b9518]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
cmp r14, r13
je 0x14000319e
test r14, r14
je 0x14000319e
mov rcx, qword [0x1400b9518]
mov r8, r14
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov eax, edi
mov r15, qword [rsp + 0x238]
mov r12, qword [rsp + 0x240]
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.1400133c0
add rsp, 0x248
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret