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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r15
lea rbp, [rsp - 0x298]
sub rsp, 0x398
mov rax, qword [0x1400c77d8]
xor rax, rsp
mov qword [rbp + 0x270], rax
xor edi, edi
mov qword [rbp - 0x80], r9
mov qword [rsp + 0x68], r8
mov r12d, 0x7b
mov qword [rbp + 0x30], rdx
mov rsi, rcx
mov qword [rbp - 0x50], rcx
mov r15, rcx
mov dword [rsp + 0x60], r12d
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x68], rdi
mov dword [rsp + 0x74], edi
mov qword [rbp - 0x60], rdi
test rcx, rcx
je 0x1400084ac
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], di
jne 0x140008480
inc rax
cmp rax, 0x21b
jbe 0x1400084ac
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 0x14000989f
cmp dword [0x1400c912c], edi
mov ebx, 2
mov qword [rsp + 0x390], r13
jne 0x1400085ad
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 0x14000855a
mov rax, qword [0x1400c72a8]
lea r13, [0x1400c72a8]
cmp rax, r13
je 0x14000852e
test byte [rax + 0x44], 0x20
je 0x14000852e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400c72a8]
lea edx, [rbx + 0x15]
mov r9d, eax
lea r8, [0x1400aa7d0]
mov rcx, qword [rcx + 0x38]
call fcn.14001c1f8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
xor r8d, r8d
lea rcx, [0x1400aa258]
mov edx, eax
call fcn.1400498e8
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 0x1400085a1
mov rcx, rdi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
test eax, eax
jne 0x1400085a1
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.1400494e8
mov edx, 0xffffffff
call fcn.140050064
xor edi, edi
mov qword [rsp + 0x388], r14
test rsi, rsi
je 0x1400085f6
lea rdx, str._NoCache
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_wcsstr]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1400085f6
mov rcx, rsi
call sym.spoolsv.exe_PrvDllAllocSplStr
mov r15, rax
test rax, rax
je 0x14000867c
sub rbx, rsi
sar rbx, 1
mov word [rax + rbx*2], di
mov rcx, qword [0x1400c9130]
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 r14, rax
test rax, rax
jne 0x140008683
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 [0x1400c72a8]
lea r13, [0x1400c72a8]
cmp rcx, r13
je 0x14000865a
test byte [rcx + 0x44], 0x20
je 0x14000865a
mov rcx, qword [rcx + 0x38]
lea edx, [r14 + 0xa]
lea r9d, [r14 + 0x68]
lea r8, [0x1400aa7e0]
call fcn.14001c23c
cmp r15, rsi
je 0x14000867c
test r15, r15
je 0x14000867c
mov rcx, qword [0x1400c9130]
mov r8, r15
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 0x14000988f
mov dword [rax], 0x6060
mov qword [rax + 0x38], 0xffffffffffffffff
mov qword [rax + 0x40], rdi
mov qword [rax + 0x50], 0
mov dword [rax + 0x58], edi
mov qword [rax + 0x60], rdi
test r15, r15
je 0x14000877a
mov rax, 0xffffffffffffffff
nop dword [rax]
nop dword [rax + rax]
cmp word [r15 + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400086c0
mov rcx, qword [0x1400c9130]
lea edi, [rax*2 + 2]
mov r8d, edi
mov edx, 8
mov esi, edi
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 0x140008768
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 [0x1400c72a8]
lea r13, [0x1400c72a8]
cmp rcx, r13
je 0x140008737
test byte [rcx + 0x44], 0x20
je 0x140008737
mov rcx, qword [rcx + 0x38]
lea edx, [rbx + 0xa]
mov r9d, edi
lea r8, [0x1400aa7e0]
call fcn.14001c23c
mov qword [r14 + 0x48], rbx
cmp r15, qword [rbp - 0x50]
je 0x140008759
mov rcx, qword [0x1400c9130]
mov r8, r15
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rcx, r14
call fcn.140051294
xor eax, eax
jmp 0x14000988f
mov r8, rsi
mov rdx, r15
mov rcx, rbx
call sub.msvcrt.dll_memcpy
mov qword [r14 + 0x48], rbx
mov r8, qword [rsp + 0x68]
lea r13, [0x1400c72a8]
test r8, r8
je 0x140008796
cmp qword [r8 + 8], 0
jne 0x140008868
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [0x1400c84ec]
mov edi, eax
cmp ecx, 0xffffffff
jne 0x1400087b3
xor eax, eax
jmp 0x1400087bf
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
nop dword [rax + rax]
lea rdx, [rbp - 0x70]
mov rcx, rax
call qword [sym.imp.RPCRT4.dll_I_RpcBindingInqTransportType]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14000884b
cmp eax, 0x6bd
je 0x140008833
mov esi, 1
test eax, eax
jle 0x1400087f1
movzx ebx, ax
or ebx, 0x80070000
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 0x1400089fe
mov rcx, qword [0x1400c72a8]
cmp rcx, r13
je 0x140008863
test byte [rcx + 0x44], 0x20
je 0x140008863
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400aa820]
mov edx, 0x12
mov r9d, ebx
call fcn.14001c23c
jmp 0x140008863
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov esi, 1
jmp 0x140008a04
cmp dword [rbp - 0x70], 4
je 0x1400088fc
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov r8, qword [rsp + 0x68]
mov esi, dword [rbp + 0x2f0]
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
cmp esi, 4
jne 0x140008de1
mov rcx, qword [rbp - 0x80]
lea r9, [rbp - 0x20]
mov qword [rbp - 0x80], r9
mov eax, dword [rcx + 0x30]
mov dword [r14 + 0x54], eax
mov eax, dword [rcx + 0x34]
mov dword [r14 + 0x58], eax
mov eax, dword [rcx]
mov dword [rbp - 0x1c], eax
mov rax, qword [rcx + 8]
mov qword [rbp - 0x10], rax
mov rax, qword [rcx + 0x10]
mov qword [rbp - 8], rax
mov eax, dword [rcx + 0x18]
mov dword [rbp], eax
mov eax, dword [rcx + 0x1c]
mov dword [rbp + 4], eax
mov eax, dword [rcx + 0x20]
mov dword [rbp + 8], eax
movzx eax, word [rcx + 0x24]
mov word [rbp + 0xc], ax
mov rax, qword [rcx + 0x28]
mov qword [rbp + 0x10], rax
mov dword [rbp - 0x20], 0x38
mov dword [rbp - 0x18], 0x28
mov eax, dword [r14 + 0x54]
mov dword [rbp + 0x18], eax
mov eax, dword [r14 + 0x58]
mov dword [rbp + 0x1c], eax
jmp 0x140008e3e
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
nop dword [rax + rax]
mov esi, 1
lea r9, [rbp + 0x20]
mov rcx, rax
mov r8d, esi
lea edx, [rsi + 7]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
nop dword [rax + rax]
test eax, eax
je 0x1400089dc
xor ebx, ebx
mov dword [rbp + 0x50], 0
lea rax, [rbp - 0x30]
mov word [rbp + 0x54], 0x500
mov qword [rsp + 0x50], rax
lea r8d, [rsi + 1]
mov dword [rsp + 0x48], ebx
lea rcx, [rbp + 0x50]
mov dword [rsp + 0x40], ebx
xor r9d, r9d
mov dword [rsp + 0x38], ebx
movzx edx, sil
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 0x1400089c0
mov rdx, qword [rbp - 0x30]
lea r8, [rsp + 0x78]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
je 0x1400089a7
cmp dword [rsp + 0x78], ebx
setne bl
jmp 0x1400089ae
call fcn.14000b290
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 0x1400089c7
call fcn.14000b290
mov ebx, eax
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x1400087f1
call fcn.14000b290
mov ebx, eax
cmp eax, 0x800703f0
jne 0x1400087f1
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
jmp 0x140008a04
jne 0x140008863
mov rcx, r15
call fcn.1400098d0
xor edi, edi
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x60], rdi
test r15, r15
jne 0x140008a23
lea ecx, [rdi + 6]
jmp 0x140008857
lea rdx, [rsp + 0x70]
mov qword [rbp - 0x48], 0xffffffffffffffff
lea rcx, [rbp - 0x48]
mov byte [rbp - 0x40], dil
mov dword [rsp + 0x70], edi
call fcn.1400099a0
test eax, eax
je 0x140008a53
movzx eax, byte [rbp - 0x40]
cmp dword [rsp + 0x70], edi
cmovne eax, esi
mov byte [rbp - 0x40], al
lea rdx, [rbp - 0x38]
mov qword [rbp - 0x38], rdi
mov ecx, 0x2001f
mov rsi, rdi
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 0x140008ad0
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 0x140008ab2
mov rcx, qword [0x1400c72a8]
cmp rcx, r13
je 0x140008ab2
test byte [rcx + 0x44], 0x20
je 0x140008ab2
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400aa820]
mov edx, 0xf
mov r9d, ebx
call fcn.14001c1f8
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140008ac7
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rbx, rdi
mov qword [rbp - 0x38], rbx
jmp 0x140008ad4
mov rbx, qword [rbp - 0x38]
test rbx, rbx
jne 0x140008b0f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 5
jne 0x140008afc
mov ecx, 0x20019
call sym.spoolsv.exe_PrvSplGetClientUserHandle
mov rbx, rax
test rax, rax
jne 0x140008b0f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
jmp 0x140008b94
cmp word [r15], 0x5c
jne 0x140008b3e
cmp word [r15 + 2], 0x5c
jne 0x140008b3e
lea r8, [rbp - 0x58]
mov rdx, r15
mov rcx, rbx
call fcn.14007a030
mov edi, eax
test eax, eax
jne 0x140008b3c
lea rsi, str.DevMode
jmp 0x140008b85
xor edi, edi
lea rax, [rbp + 0x28]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, [0x1400aa988]
lea rax, [rbp - 0x58]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, rbx
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
mov edi, eax
cmove rsi, r15
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test edi, edi
je 0x140008bb9
mov ecx, edi
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 0x140008cf8
xor ecx, ecx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], rcx
xor r9d, r9d
mov qword [rsp + 0x50], rcx
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor edx, edx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp - 0x58]
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 0x140008ce8
mov ecx, dword [rsp + 0x70]
cmp ecx, 0x48
jb 0x140008ce8
call sym.spoolsv.exe_PrvDllAllocSplMem
mov qword [rbp - 0x60], rax
mov rdi, rax
test rax, rax
jne 0x140008c3b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140008ce8
mov rcx, qword [rbp - 0x58]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rsi
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 0x140008cc0
mov r8d, dword [rsp + 0x70]
mov r9d, 0x8007000d
cmp r8, 0x4c
jb 0x140008c95
movzx ecx, word [rdi + 0x46]
movzx eax, word [rdi + 0x44]
add rcx, rax
cmp r8, rcx
jb 0x140008c95
mov rcx, rdi
call fcn.14004bfc0
mov r9d, eax
mov ecx, r9d
call fcn.140025578
mov ebx, eax
test eax, eax
je 0x140008ce0
mov rcx, qword [rbp - 0x58]
mov rdx, rsi
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 [0x1400c9130]
mov r8, rdi
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
xor eax, eax
mov qword [rbp - 0x60], rax
jmp 0x140008ce2
xor eax, eax
cmp ebx, 2
cmove ebx, eax
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rdi, qword [rbp - 0x60]
test ebx, ebx
je 0x140008d4b
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 0x140008d3d
mov rcx, qword [0x1400c72a8]
cmp rcx, r13
je 0x140008d3d
test byte [rcx + 0x44], 0x20
je 0x140008d3d
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400aab20]
mov edx, 0xf
mov r9d, ebx
call fcn.14001c1f8
lea rcx, [rbp - 0x48]
call fcn.140081c84
jmp 0x140008863
mov rbx, qword [rbp - 0x48]
mov rsi, rbx
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140008d8a
xor eax, eax
mov edx, eax
cmp rbx, 0xffffffffffffffff
cmovne 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 0x140008d8a
lea ecx, [rax + 1]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
cmp rsi, 0xffffffffffffffff
je 0x140008d9f
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov qword [rbp - 0x60], rdi
test rdi, rdi
je 0x140008863
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140008dc2
mov rax, qword [rcx]
mov qword [rbp + 0x38], rax
mov eax, dword [rcx + 0x10]
jmp 0x140008dc8
xor eax, eax
mov qword [rbp + 0x38], rax
lea r8, [rbp + 0x38]
mov dword [rbp + 0x48], eax
mov qword [rsp + 0x68], r8
mov qword [rbp + 0x40], rdi
mov qword [rbp - 0x60], rdi
jmp 0x140008868
cmp esi, 3
jne 0x140008e3a
mov rcx, qword [rbp - 0x80]
lea r9, [rbp - 0x20]
mov dword [rbp - 0x20], 0x38
mov dword [rbp - 0x18], 0x28
mov qword [rbp - 0x80], r9
mov eax, dword [rcx + 4]
mov dword [rbp - 0x1c], eax
mov rax, qword [rcx + 0x10]
mov qword [rbp - 0x10], rax
mov rax, qword [rcx + 0x18]
mov qword [rbp - 8], rax
mov eax, dword [rcx + 0x20]
mov dword [rbp], eax
mov eax, dword [rcx + 0x24]
mov dword [rbp + 4], eax
mov eax, dword [rcx + 0x28]
mov dword [rbp + 8], eax
movzx eax, word [rcx + 0x2c]
mov word [rbp + 0xc], ax
mov rax, qword [rcx + 0x30]
mov qword [rbp + 0x10], rax
jmp 0x140008e3e
mov r9, qword [rbp - 0x80]
cmp dword [rbp + 0x2f8], 0
je 0x140008ed3
mov rdi, qword [0x1400c9120]
mov ecx, esi
mov rdx, rdi
call fcn.14001107c
movabs r10, 0xf5c10edf10538170
mov dword [rsp + 0x20], eax
lea rdx, [rbp - 0x68]
mov rax, qword [rdi + 0x1e8]
mov rcx, r15
call qword [0x1400a83f0]
mov ebx, eax
cmp eax, 1
je 0x140009694
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
test eax, eax
je 0x140008eca
add eax, 0xffffffce
cmp eax, 0x25
ja 0x140008eb3
movabs rdx, 0x200002000b
bt rdx, rax
jb 0x140008eca
lea eax, [rcx - 0x7b]
cmp eax, 1
jbe 0x140008eca
cmp ecx, 0x4b0
cmovne r12d, ecx
mov dword [rsp + 0x60], r12d
cmp ebx, 2
je 0x140009564
lea rcx, [0x1400c8ed8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
test r15, r15
jne 0x140008fa5
lea rcx, [0x1400c8ed8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
xor eax, eax
mov qword [rbp + 0x50], rax
mov rax, qword [0x1400c9120]
mov rdi, qword [rax]
test rdi, rdi
je 0x140009564
mov rax, qword [rbp - 0x78]
nop
cmp rdi, rax
je 0x14000967d
mov rdx, rdi
mov ecx, esi
call fcn.14001107c
mov rcx, qword [rdi + 8]
lea rdx, str.win32spl.dll
mov ebx, eax
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
mov rsi, qword [rbp - 0x50]
test eax, eax
cmovne rsi, r15
movabs r10, 0xf5c10edf10538170
mov r9, qword [rbp - 0x80]
lea rdx, [rbp - 0x68]
mov r8, qword [rsp + 0x68]
mov rcx, rsi
mov rax, qword [rdi + 0x1e8]
mov dword [rsp + 0x20], ebx
call qword [0x1400a83f0]
mov ebx, eax
test eax, eax
jne 0x1400095b7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x32
je 0x1400095bc
jmp 0x140009629
mov rcx, qword [0x1400c72a8]
cmp rcx, r13
je 0x140008fd6
test byte [rcx + 0x44], 0x80
je 0x140008fd6
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400aab40]
mov edx, 0xd
mov r9, r15
call fcn.14003249c
mov rcx, qword [0x1400c72a8]
mov edx, dword [0x1400c9178]
test edx, edx
jne 0x140008ff6
cmp rcx, r13
je 0x14000906a
test byte [rcx + 0x44], 0x80
je 0x14000906a
mov edx, 0xe
jmp 0x14000905a
xor eax, eax
mov ebx, eax
test edx, edx
je 0x14000904a
nop
mov eax, ebx
lea rcx, [rax + rax*4]
mov rax, qword [0x1400c9170]
lea rdi, [rcx*8]
cmp dword [rdi + rax + 8], 0
je 0x14000903d
mov rcx, qword [rdi + rax]
mov rdx, r15
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14000911b
mov edx, dword [0x1400c9178]
inc ebx
cmp ebx, edx
jb 0x140009000
mov rcx, qword [0x1400c72a8]
cmp rcx, r13
je 0x14000906a
test byte [rcx + 0x44], 0x80
je 0x14000906a
mov edx, 0x10
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400aab40]
call fcn.14001c1cc
lea rcx, [0x1400c8ed8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
xor ebx, ebx
mov rax, 0xffffffffffffffff
mov edi, ebx
mov qword [rbp + 0x50], rbx
nop dword [rax]
inc rax
cmp word [r15 + rax*2], 0
jne 0x140009090
inc rax
cmp rax, 0x207
jae 0x1400094d1
mov rcx, qword [0x1400c9130]
mov edx, 8
mov r8d, 0x438
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 0x140009269
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 [0x1400c72a8]
cmp rcx, r13
je 0x1400094cb
test byte [rcx + 0x44], 0x20
je 0x1400094cb
mov rcx, qword [rcx + 0x38]
lea edx, [rsi + 0xa]
mov r9d, 0x438
lea r8, [0x1400aa7e0]
call fcn.14001c23c
jmp 0x1400094cb
mov rcx, qword [0x1400c9170]
add rcx, 0x18
add rcx, rdi
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTime]
nop dword [rax + rax]
mov rcx, qword [0x1400c72a8]
cmp rcx, r13
je 0x14000915f
test byte [rcx + 0x44], 0x80
je 0x14000915f
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400aab40]
mov edx, 0xf
mov r9d, ebx
call fcn.14001c23c
mov rax, qword [0x1400c9170]
lea rcx, [0x1400c8ed8]
mov rdi, qword [rdi + rax + 0x10]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
test rdi, rdi
je 0x14000907d
mov rdx, rdi
mov ecx, esi
call fcn.14001107c
movabs r10, 0xf5c10edf10538170
mov r12, qword [rsp + 0x68]
lea rdx, [rbp - 0x68]
mov r9, qword [rbp - 0x80]
mov r8, r12
mov dword [rsp + 0x20], eax
mov rcx, r15
mov rax, qword [rdi + 0x1e8]
call qword [0x1400a83f0]
mov ebx, eax
test eax, eax
jne 0x140009204
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x32
je 0x140009209
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.140056b9c
mov r12d, dword [rsp + 0x60]
mov dword [rsp + 0x74], 1
mov qword [rbp - 0x78], rdi
jmp 0x14000907d
cmp eax, 0x32
jne 0x140009229
movabs r10, 0x8ef42e383654d170
mov rax, qword [rdi + 0x20]
lea rdx, [rbp - 0x68]
mov r8, r12
mov rcx, r15
call qword [0x1400a83f0]
mov ebx, eax
cmp ebx, 1
je 0x140009694
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.140056b9c
cmp ebx, 2
je 0x14000955f
mov r12d, dword [rsp + 0x60]
mov dword [rsp + 0x74], 1
mov qword [rbp - 0x78], rdi
jmp 0x14000907d
lea rdx, [rsp + 0x78]
mov qword [rbp - 0x48], 0xffffffffffffffff
lea rcx, [rbp - 0x48]
mov byte [rbp - 0x40], 0
mov dword [rsp + 0x78], ebx
call fcn.1400099a0
mov edx, 0x21c
call fcn.140010ae4
test eax, eax
js 0x1400092ab
lea r9, str.PrintersConnections
mov edx, 0x21c
mov rcx, rsi
call fcn.1400109d0
jmp 0x1400092ae
mov word [rsi], bx
lea r11, [rsi + 0x28]
mov eax, 0x5c
mov word [r11], ax
add r11, 2
cmp r11, r15
je 0x1400092e8
mov edx, 0x207
call fcn.140010ae4
test eax, eax
js 0x1400092e4
mov r9, r15
mov edx, 0x207
mov rcx, r11
call fcn.1400109d0
jmp 0x1400092e8
mov word [r11], bx
movzx eax, word [r11]
test ax, ax
je 0x14000930e
mov ecx, 0x2c
cmp ax, 0x5c
jne 0x140009300
mov word [r11], cx
movzx eax, word [r11 + 2]
add r11, 2
test ax, ax
jne 0x1400092f6
lea rdx, [rsp + 0x78]
mov qword [rsp + 0x78], rbx
mov ecx, 0x20019
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 0x14000938d
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 0x14000936c
mov rcx, qword [0x1400c72a8]
cmp rcx, r13
je 0x14000936c
test byte [rcx + 0x44], 0x20
je 0x14000936c
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400aa820]
mov edx, 0xf
mov r9d, ebx
call fcn.14001c1f8
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140009382
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
xor eax, eax
mov ebx, eax
mov qword [rsp + 0x78], rax
jmp 0x140009392
mov rbx, qword [rsp + 0x78]
test rbx, rbx
je 0x14000944f
lea rax, [rbp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140009440
mov rcx, qword [rbp + 0x50]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400aa8a8]
lea rax, [rbp + 0x60]
mov dword [rbp - 0x70], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140009430
mov rdi, qword [0x1400c9120]
test rdi, rdi
je 0x140009430
nop dword [rax]
mov rcx, qword [rdi + 8]
lea rdx, [rbp + 0x60]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x140009430
mov rdi, qword [rdi]
test rdi, rdi
jne 0x140009410
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [0x1400c9130]
mov r8, rsi
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rbx, qword [rbp - 0x48]
mov rsi, rbx
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400094b6
mov rax, qword [rbp - 0x78]
mov qword [rbp - 0x78], rax
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x74], eax
xor eax, eax
mov edx, eax
cmp rbx, 0xffffffffffffffff
cmovne 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 0x1400094b6
lea ecx, [rax + 1]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
cmp rsi, 0xffffffffffffffff
je 0x1400094cb
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov esi, dword [rbp + 0x2f0]
cmp dword [rsp + 0x74], 0
mov rax, qword [rbp - 0x78]
je 0x140009513
cmp rdi, rax
je 0x140009513
lea rcx, [0x1400c8ed8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rcx, r15
call fcn.14007b898
lea rcx, [0x1400c8ed8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rax, qword [rbp - 0x78]
test rdi, rdi
je 0x140008f08
cmp rdi, rax
je 0x140009564
mov rdx, rdi
mov ecx, esi
call fcn.14001107c
mov r9, qword [rsp + 0x68]
lea r8, [rbp - 0x68]
mov dword [rsp + 0x30], eax
mov rdx, r15
mov rax, qword [rbp - 0x80]
mov rcx, rdi
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call fcn.140056a84
cmp eax, 1
je 0x140009694
mov r12d, dword [rsp + 0x60]
lea rcx, [0x1400c8ed8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rax, qword [r14 + 0x20]
xor edi, edi
test rax, rax
je 0x14000958f
mov qword [rax + 8], rdi
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140009582
mov rax, qword [0x1400c8510]
mov dword [r14 + 0x30], edi
mov dword [r14 + 0x50], edi
cmp rax, r14
jne 0x1400096b1
mov rax, qword [r14 + 0x28]
mov qword [0x1400c8510], rax
jmp 0x1400096db
cmp eax, 0x32
jne 0x1400095de
movabs r10, 0x8ef42e383654d170
mov r8, qword [rsp + 0x68]
lea rdx, [rbp - 0x68]
mov rax, qword [rdi + 0x20]
mov rcx, rsi
call qword [0x1400a83f0]
mov ebx, eax
lea eax, [rbx - 1]
cmp eax, 1
ja 0x140009629
lea rcx, [0x1400c8ed8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rcx, rsi
call fcn.14007b9e8
test rax, rax
jne 0x140009611
mov rdx, rdi
mov rcx, rsi
call fcn.14007b6f8
lea rcx, [0x1400c8ed8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
cmp ebx, 1
je 0x14000966b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
cmp r12d, 0x7b
jne 0x14000966b
test eax, eax
je 0x14000966b
add eax, 0xffffffce
cmp eax, 0x25
ja 0x140009659
movabs rdx, 0x200002000b
bt rdx, rax
jb 0x14000966b
lea eax, [rcx - 0x7b]
cmp eax, 1
jbe 0x14000966b
cmp ecx, 0x4b0
cmovne r12d, ecx
sub ebx, 1
je 0x140009694
cmp ebx, 1
je 0x140009564
mov rax, qword [rbp - 0x78]
mov rdi, qword [rdi]
test rdi, rdi
je 0x140009564
mov esi, dword [rbp + 0x2f0]
jmp 0x140008f20
mov qword [r14 + 8], rdi
mov ebx, 1
mov rax, qword [rbp - 0x68]
mov qword [r14 + 0x10], rax
mov rax, qword [rbp + 0x30]
mov qword [rax], r14
jmp 0x140009851
test rax, rax
je 0x1400096db
nop word [rax + rax]
lea rcx, [rax + 0x28]
mov rax, qword [rax + 0x28]
cmp rax, r14
je 0x1400096d4
test rax, rax
jne 0x1400096c0
jmp 0x1400096db
mov rax, qword [r14 + 0x28]
mov qword [rcx], rax
cmp qword [r14 + 0x18], 0
lea rcx, [r14 + 0x18]
je 0x1400096eb
call fcn.140051084
lea rcx, [0x1400c8ed8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rcx, qword [r14 + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x140009714
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [r14 + 0x40]
test rcx, rcx
je 0x140009760
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140009743
mov rcx, qword [r14 + 0x40]
lea r8d, [rax + 4]
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
nop dword [rax + rax]
mov r8, qword [r14 + 0x40]
xor edx, edx
mov rcx, qword [0x1400c9130]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov qword [r14 + 0x40], rdi
mov r8, qword [r14 + 0x48]
test r8, r8
je 0x14000977e
mov rcx, qword [0x1400c9130]
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rcx, qword [0x1400c9130]
mov r8, r14
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
cmp r12d, 0x7b
mov ebx, 0x709
cmove r12d, ebx
mov ecx, r12d
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]
cmp eax, 5
je 0x14000980d
cmp eax, ebx
je 0x14000980d
mov rax, qword [0x1400c72a8]
cmp rax, r13
je 0x140009809
test byte [rax + 0x44], 0x20
je 0x140009809
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400c72a8]
lea r8, [0x1400aa800]
mov r9, qword [rbp - 0x50]
mov edx, 0xf
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x38]
call fcn.140042144
mov ebx, edi
jmp 0x140009851
mov rax, qword [0x1400c72a8]
mov ebx, edi
cmp rax, r13
je 0x140009851
test byte [rax + 0x44], 0x80
je 0x140009851
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400c72a8]
lea r8, [0x1400aa800]
mov r9, qword [rbp - 0x50]
mov edx, 0xe
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x38]
call fcn.140042144
mov r8, qword [rbp - 0x60]
xor edx, edx
mov rcx, qword [0x1400c9130]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
cmp r15, qword [rbp - 0x50]
je 0x14000988d
test r15, r15
je 0x14000988d
mov rcx, qword [0x1400c9130]
mov r8, r15
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov eax, ebx
mov r14, qword [rsp + 0x388]
mov r13, qword [rsp + 0x390]
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.14000f060
add rsp, 0x398
pop r15
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret