Function at 0x140065a40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd0
mov r13, r9
mov r14, rdx
mov rsi, rcx
lea rcx, [rax - 0x88]
call sym.spoolsv.exe_PrvSplInitializeWinSpoolDrv
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x48]
call fcn.14001faec
mov rcx, r14
mov rax, qword [0x1400aeb90]
mov rdx, qword [0x14008f7f0]
call rdx
mov rdi, rax
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x48]
call fcn.14000af58
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x48], rdi
xor ebx, ebx
mov edx, ebx
test rdi, rdi
cmovne rdx, rdi
mov r9, r14
mov r8, rsi
lea rcx, [rsp + 0x60]
call fcn.14006eb58
mov edi, eax
lea r15, [0x1400ad2f8]
mov rcx, qword [0x1400ad2f8]
lea rsi, [0x1400937b8]
cmp rcx, r15
je 0x140065b17
test byte [rcx + 0x1c], 0x80
je 0x140065b17
lea edx, [rbx + 0x11]
mov r9d, dword [rsp + 0x138]
mov r8, rsi
mov rcx, qword [rcx + 0x10]
call fcn.14002efb8
mov rcx, qword [0x1400ad2f8]
test edi, edi
je 0x140065b3b
cmp rcx, r15
je 0x14006636b
test byte [rcx + 0x1c], 0x20
je 0x14006636b
mov edx, 0x12
mov r9d, edi
jmp 0x140065c92
lea r12, str._DrvConvert
mov rdx, r12
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
je 0x140065b90
mov rcx, qword [0x1400ad2f8]
cmp rcx, r15
je 0x140065b86
test byte [rcx + 0x1c], 0x20
je 0x140065b86
mov edx, 0x13
mov dword [rsp + 0x28], 0x57
mov qword [rsp + 0x20], r12
mov r9, r14
mov r8, rsi
mov rcx, qword [rcx + 0x10]
call fcn.14005f894
mov edi, 0x57
jmp 0x14006636b
mov rcx, r14
call fcn.140065354
mov rdi, rax
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x140065be9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1400ad2f8]
cmp rcx, r15
je 0x14006636b
test byte [rcx + 0x1c], 0x20
je 0x14006636b
mov edx, 0x14
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r12
mov r9, r14
mov r8, rsi
mov rcx, qword [rcx + 0x10]
call fcn.14005f894
jmp 0x14006636b
mov ecx, dword [0x1400ad9e8]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
cmp rax, 2
jne 0x140065c41
mov r8, rdi
xor edx, edx
mov rcx, qword [0x1400af198]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov rcx, qword [0x1400ad2f8]
cmp rcx, r15
je 0x140065b86
test byte [rcx + 0x1c], 0x20
je 0x140065b86
mov edx, 0x15
lea r9d, [rdx + 0x42]
mov r8, rsi
mov rcx, qword [rcx + 0x10]
call fcn.14002efb8
jmp 0x140065b86
mov edx, 2
mov ecx, dword [0x1400ad9e8]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
test eax, eax
jne 0x140065ca3
mov r8, rdi
xor edx, edx
mov rcx, qword [0x1400af198]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1400ad2f8]
cmp rcx, r15
je 0x14006636b
test byte [rcx + 0x1c], 0x20
je 0x14006636b
mov edx, 0x16
mov r9d, eax
mov r8, rsi
mov rcx, qword [rcx + 0x10]
call fcn.14002efb8
jmp 0x14006636b
lea rcx, [rsp + 0x40]
call fcn.14006d034
nop
mov r12, qword [rsp + 0x130]
cmp dword [rsp + 0x140], ebx
je 0x140065d55
mov dword [r12], ebx
mov qword [r13], rbx
mov r14d, dword [rsp + 0x138]
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], ebx
xor r9d, r9d
mov r8, qword [rsp + 0x120]
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.14006ea00
mov edi, eax
mov dword [rsp + 0x44], eax
test eax, eax
je 0x140065d2d
cmp eax, 0x7a
je 0x140065d2d
mov r10, qword [0x1400ad2f8]
cmp r10, r15
je 0x140065e3c
test byte [r10 + 0x1c], 0x20
je 0x140065e3c
mov edx, 0x17
jmp 0x140065e22
mov ecx, dword [r12]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov qword [r13], rax
test rax, rax
jne 0x140065d50
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x44], eax
jmp 0x140065e35
mov rdi, qword [rsp + 0x58]
test r13, r13
je 0x140065d60
mov r9, qword [r13]
jmp 0x140065d63
mov r9, rbx
mov r14d, dword [rsp + 0x138]
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], r12
mov eax, dword [r12]
mov dword [rsp + 0x20], eax
mov r8, qword [rsp + 0x120]
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.14006ea00
mov edi, eax
mov dword [rsp + 0x44], eax
test eax, eax
je 0x140065dbe
mov r10, qword [0x1400ad2f8]
cmp r10, r15
je 0x140065e3c
test byte [r10 + 0x1c], 0x20
je 0x140065e3c
mov edx, 0x18
jmp 0x140065e22
mov r9d, dword [r12]
mov rcx, qword [r13]
mov r8d, 0x8007000d
mov dword [rsp + 0x50], r8d
test rcx, rcx
je 0x140065df8
cmp r9, 0x4c
jb 0x140065df8
movzx edx, word [rcx + 0x46]
movzx eax, word [rcx + 0x44]
add rdx, rax
cmp r9, rdx
jb 0x140065df8
call fcn.14000bda0
mov r8d, eax
mov dword [rsp + 0x50], eax
mov ecx, r8d
call fcn.14004d618
mov edi, eax
mov dword [rsp + 0x44], eax
test eax, eax
je 0x140065e35
mov r10, qword [0x1400ad2f8]
cmp r10, r15
je 0x140065e3c
test byte [r10 + 0x1c], 0x20
je 0x140065e3c
mov edx, 0x19
mov dword [rsp + 0x20], eax
mov r9d, r14d
mov r8, rsi
mov rcx, qword [r10 + 0x10]
call fcn.140035758
mov r10, qword [0x1400ad2f8]
mov r14, qword [rsp + 0x70]
jmp 0x140065eae
test edi, edi
je 0x140066208
cmp dword [rsp + 0x138], 4
jne 0x14006619b
cmp r10, r15
je 0x140065ee1
test byte [r10 + 0x1c], 0x80
je 0x140065ee1
mov edx, 0x1b
mov r8, rsi
mov rcx, qword [r10 + 0x10]
call fcn.14002ef94
mov qword [rsp + 0x120], rbx
mov r8, qword [rsp + 0x118]
mov rdx, r14
lea rcx, [rsp + 0x120]
call fcn.14006e954
mov r14d, eax
cmp dword [rsp + 0x140], ebx
je 0x140065f2a
cmp qword [r13], rbx
je 0x140065f2a
mov r8, qword [r13]
xor edx, edx
mov rcx, qword [0x1400af198]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov qword [r13], rbx
mov dword [r12], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rcx, [rsp + 0x120]
call fcn.14006e8e4
test r14d, r14d
jne 0x140066028
cmp dword [rsp + 0x140], ebx
je 0x140066028
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rcx, [rsp + 0x120]
call fcn.14006e8e4
mov dword [r12], eax
test eax, eax
jle 0x140065fdb
mov ecx, eax
call sym.spoolsv.exe_PrvDllAllocSplMem
mov qword [r13], rax
test rax, rax
jne 0x140066028
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r14d, eax
mov r10, qword [0x1400ad2f8]
cmp r10, r15
je 0x140065fca
test byte [r10 + 0x1c], 0x20
je 0x140065fca
mov edx, 0x1c
mov dword [rsp + 0x20], eax
mov r9d, dword [r12]
mov r8, rsi
mov rcx, qword [r10 + 0x10]
call fcn.140035758
mov r10, qword [0x1400ad2f8]
test r14d, r14d
jne 0x14006614a
mov r14d, 8
jmp 0x14006602f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r14d, eax
mov r10, qword [0x1400ad2f8]
cmp r10, r15
je 0x14006601b
test byte [r10 + 0x1c], 0x20
je 0x14006601b
mov edx, 0x1d
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x118]
mov r8, rsi
mov rcx, qword [r10 + 0x10]
call fcn.14004cc94
mov r10, qword [0x1400ad2f8]
mov eax, 8
test r14d, r14d
cmove edi, eax
jmp 0x14006602f
mov r10, qword [0x1400ad2f8]
test r14d, r14d
jne 0x14006614a
mov eax, dword [r12]
test eax, eax
jle 0x140066046
cmp qword [r13], rbx
jne 0x140066070
mov r14d, 0x57
cmp r10, r15
je 0x140066070
test byte [r10 + 0x1c], 0x20
je 0x140066070
mov dword [rsp + 0x20], eax
mov r9, qword [r13]
mov rcx, qword [r10 + 0x10]
call fcn.140066558
mov r10, qword [0x1400ad2f8]
test r14d, r14d
jne 0x14006614a
mov eax, dword [r12]
mov dword [rsp + 0x20], eax
mov r9, qword [r13]
lea r8d, [r14 + 2]
lea rcx, [rsp + 0x120]
call fcn.14006e8e4
test eax, eax
jns 0x1400660d3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r14d, eax
mov r10, qword [0x1400ad2f8]
cmp r10, r15
je 0x1400660da
test byte [r10 + 0x1c], 0x20
je 0x1400660da
mov edx, 0x1f
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x118]
mov r8, rsi
mov rcx, qword [r10 + 0x10]
call fcn.14004cc94
mov r10, qword [0x1400ad2f8]
test r14d, r14d
jne 0x14006614a
mov r8d, dword [r12]
mov rcx, qword [r13]
test rcx, rcx
je 0x140066110
cmp r8, 0x4c
jb 0x140066110
movzx edx, word [rcx + 0x46]
movzx eax, word [rcx + 0x44]
add rdx, rax
cmp r8, rdx
jb 0x140066110
call fcn.14000bda0
mov r10, qword [0x1400ad2f8]
jmp 0x140066115
mov eax, 0x8007000d
mov ecx, eax
call fcn.14004d618
mov r14d, eax
test eax, eax
je 0x14006614a
cmp r10, r15
je 0x140066171
test byte [r10 + 0x1c], 0x20
je 0x14006614a
mov edx, 0x20
mov r9d, edi
mov r8, rsi
mov rcx, qword [r10 + 0x10]
call fcn.14002efb8
mov r10, qword [0x1400ad2f8]
cmp r10, r15
je 0x140066171
test byte [r10 + 0x1c], 0x80
je 0x140066171
mov edx, 0x21
mov r9d, r14d
mov r8, rsi
mov rcx, qword [r10 + 0x10]
call fcn.14002efb8
mov r10, qword [0x1400ad2f8]
test r14d, r14d
cmove edi, ebx
mov rcx, qword [rsp + 0x120]
test rcx, rcx
je 0x14006619b
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
mov rdx, qword [0x14008f7f0]
call rdx
mov r10, qword [0x1400ad2f8]
test edi, edi
je 0x140066208
cmp dword [rsp + 0x140], ebx
je 0x1400661c5
cmp qword [r13], rbx
je 0x1400661c5
mov r8, qword [r13]
xor edx, edx
mov rcx, qword [0x1400af198]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov qword [r13], rbx
mov dword [r12], ebx
mov r10, qword [0x1400ad2f8]
test edi, edi
je 0x140066208
cmp edi, 0x7a
je 0x140066200
cmp r10, r15
je 0x140066200
test byte [r10 + 0x1c], 0x20
je 0x140066200
mov edx, 0x22
mov r9d, edi
mov r8, rsi
mov rcx, qword [r10 + 0x10]
call fcn.14002efb8
mov r10, qword [0x1400ad2f8]
test edi, edi
jne 0x1400662ab
mov rax, qword [r13]
movzx r14d, word [rax + 0x46]
movzx eax, word [rax + 0x44]
add r14d, eax
mov r9d, dword [r12]
cmp r9d, r14d
je 0x140066251
cmp r10, r15
je 0x140066243
test byte [r10 + 0x1c], 0x20
je 0x140066243
mov edx, 0x23
mov dword [rsp + 0x20], r14d
mov r8, rsi
mov rcx, qword [r10 + 0x10]
call fcn.140035758
mov dword [r12], r14d
mov r9d, r14d
mov r10, qword [0x1400ad2f8]
cmp r9d, 0x48
jae 0x1400662ab
cmp r10, r15
je 0x14006627c
test byte [r10 + 0x1c], 0x20
je 0x14006627c
mov edx, 0x24
mov dword [rsp + 0x20], 0x48
mov r8, rsi
mov rcx, qword [r10 + 0x10]
call fcn.140035758
mov edi, 0x57
cmp dword [rsp + 0x140], ebx
je 0x1400662a7
cmp qword [r13], rbx
je 0x1400662a7
mov r8, qword [r13]
xor edx, edx
mov rcx, qword [0x1400af198]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov qword [r13], rbx
mov dword [r12], ebx
mov r8, qword [rsp + 0x58]
xor edx, edx
mov rcx, qword [0x1400af198]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov edx, 1
mov ecx, dword [0x1400ad9e8]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
test eax, eax
jne 0x140066302
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1400ad2f8]
cmp rcx, r15
je 0x140066302
test byte [rcx + 0x1c], 0x20
je 0x140066302
mov edx, 0x26
mov r9d, eax
mov r8, rsi
mov rcx, qword [rcx + 0x10]
call fcn.14002efb8
lea rcx, [rsp + 0x40]
call fcn.14006d0d4
test eax, eax
je 0x14006633b
mov rcx, qword [0x1400ad2f8]
cmp rcx, r15
je 0x140066361
test byte [rcx + 0x1c], 0x80
je 0x140066342
mov edx, 0x27
mov r9, qword [rsp + 0x110]
mov r8, rsi
mov rcx, qword [rcx + 0x10]
call fcn.140040874
mov rcx, qword [0x1400ad2f8]
cmp rcx, r15
je 0x140066361
test byte [rcx + 0x1c], 0x80
je 0x140066361
mov edx, 0x28
mov r9d, edi
mov r8, rsi
mov rcx, qword [rcx + 0x10]
call fcn.14002efb8
lea rcx, [rsp + 0x40]
call fcn.14006d0d4
lea rcx, [rsp + 0x48]
call fcn.14001fafc
lea rcx, [rsp + 0x60]
call fcn.14006e9dc
mov eax, edi
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret