Function at 0x140021bf0
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, 0xc0
mov r14, r8
mov r13, rdx
mov rdi, rcx
lea rcx, [rsp + 0x70]
call sym.spoolsv.exe_PrvSplInitializeWinSpoolDrv
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x48]
call fcn.1400248f8
mov rbx, qword [0x1400aac88]
mov rcx, rbx
mov rax, qword [0x1400719c8]
call rax
mov rcx, r13
call rbx
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400230b0
mov rbx, qword [rsp + 0x48]
mov r9, r13
mov r8, rdi
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.1400223c4
mov edi, eax
lea r12, [0x1400a92b0]
mov rcx, qword [0x1400a92b0]
lea r15, [0x140075fb0]
cmp rcx, r12
je 0x140021c9e
test byte [rcx + 0x1c], 0x80
jne 0x14003ba02
xor esi, esi
test edi, edi
jne 0x14003ba27
lea rdi, str._DrvConvert
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
jne 0x14003ba47
mov rcx, r13
call fcn.140022fb0
mov rdi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14003ba9b
mov ecx, dword [0x1400a9388]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TlsGetValue]
cmp rax, 2
je 0x14003badb
lea edx, [rsi + 2]
mov ecx, dword [0x1400a9388]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TlsSetValue]
test eax, eax
je 0x14003baf7
lea rcx, [rsp + 0x40]
call fcn.140022e38
nop
mov r13, qword [rsp + 0x120]
cmp dword [rsp + 0x130], esi
je 0x140021e23
mov dword [r13], esi
mov rdi, qword [rsp + 0x118]
mov qword [rdi], rsi
mov eax, dword [rsp + 0x128]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], esi
xor r9d, r9d
mov r8, r14
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.1400222b8
mov r14d, eax
mov dword [rsp + 0x44], eax
test eax, eax
je 0x140021d72
cmp eax, 0x7a
jne 0x140021dec
mov ecx, dword [r13]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov qword [rdi], rax
test rax, rax
je 0x140021e11
mov r14, qword [rsp + 0x110]
test rdi, rdi
je 0x140021e30
mov r9, qword [rdi]
mov eax, dword [rsp + 0x128]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r13
mov eax, dword [r13]
mov dword [rsp + 0x20], eax
mov r8, r14
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.1400222b8
mov r14d, eax
mov dword [rsp + 0x44], eax
test eax, eax
je 0x140021e3f
mov r10, qword [0x1400a92b0]
cmp r10, r12
je 0x140021ec3
test byte [r10 + 0x1c], 0x20
jne 0x140021e38
jmp 0x140021ec3
mov r10, qword [0x1400a92b0]
cmp r10, r12
je 0x140021ec3
test byte [r10 + 0x1c], 0x20
je 0x140021ec3
mov edx, 0x17
jmp 0x140021ea4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov r14d, eax
mov dword [rsp + 0x44], eax
jmp 0x140021ebc
mov rdi, qword [rsp + 0x118]
jmp 0x140021d8f
mov r9, rsi
jmp 0x140021d9b
mov edx, 0x18
jmp 0x140021ea4
mov r9d, dword [r13]
mov rcx, qword [rdi]
mov r8d, 0x8007000d
mov dword [rsp + 0x58], r8d
test rcx, rcx
je 0x140021e79
cmp r9, 0x4c
jb 0x140021e79
movzx edx, word [rcx + 0x46]
movzx eax, word [rcx + 0x44]
add eax, edx
cdqe
cmp r9, rax
jb 0x140021e79
call fcn.14000a520
mov r8d, eax
mov dword [rsp + 0x58], eax
mov ecx, r8d
call fcn.1400224bc
mov r14d, eax
mov dword [rsp + 0x44], eax
test eax, eax
je 0x140021ebc
mov r10, qword [0x1400a92b0]
cmp r10, r12
je 0x140021ec3
test byte [r10 + 0x1c], 0x20
je 0x140021ec3
mov edx, 0x19
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x128]
mov r8, r15
mov rcx, qword [r10 + 0x10]
call fcn.140057a4c
mov r10, qword [0x1400a92b0]
jmp 0x140021f32
test r14d, r14d
je 0x1400220e0
cmp dword [rsp + 0x128], 4
jne 0x1400220d7
cmp r10, r12
je 0x140021f59
test byte [r10 + 0x1c], 0x80
jne 0x14003bb48
mov qword [rsp + 0x110], rsi
mov r8, qword [rsp + 0x108]
mov rdx, rbx
lea rcx, [rsp + 0x110]
call fcn.140022198
mov ebx, eax
cmp dword [rsp + 0x130], esi
je 0x140021f94
cmp qword [rdi], rsi
je 0x140021f94
mov rcx, qword [rdi]
call sym.spoolsv.exe_PrvDllFreeSplMem
mov qword [rdi], rsi
mov dword [r13], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rcx, [rsp + 0x110]
call fcn.140022230
test ebx, ebx
jne 0x140021ff2
cmp dword [rsp + 0x130], esi
je 0x140021ff2
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rcx, [rsp + 0x110]
call fcn.140022230
mov dword [r13], eax
test eax, eax
jle 0x14003bbac
mov ecx, eax
call sym.spoolsv.exe_PrvDllAllocSplMem
mov qword [rdi], rax
test rax, rax
je 0x14003bb5f
mov r10, qword [0x1400a92b0]
test ebx, ebx
jne 0x140022095
mov eax, dword [r13]
test eax, eax
jle 0x14003bbfb
cmp qword [rdi], rsi
je 0x14003bbfb
test ebx, ebx
jne 0x140022095
mov eax, dword [r13]
mov dword [rsp + 0x20], eax
mov r9, qword [rdi]
lea r8d, [rbx + 2]
lea rcx, [rsp + 0x110]
call fcn.140022230
test eax, eax
js 0x14003bc30
mov r10, qword [0x1400a92b0]
test ebx, ebx
jne 0x140022095
mov r8d, dword [r13]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003bc76
cmp r8, 0x4c
jb 0x14003bc76
movzx edx, word [rcx + 0x46]
movzx eax, word [rcx + 0x44]
add eax, edx
cdqe
cmp r8, rax
jb 0x14003bc76
call fcn.14000a520
mov r10, qword [0x1400a92b0]
mov ecx, eax
call fcn.1400224bc
mov ebx, eax
test eax, eax
jne 0x14003bc80
cmp r10, r12
je 0x1400220a5
test byte [r10 + 0x1c], 0x80
jne 0x14003bcb4
test ebx, ebx
cmove r14d, esi
mov rbx, qword [rsp + 0x110]
test rbx, rbx
je 0x1400220d7
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
mov rax, qword [0x1400719c8]
call rax
mov rcx, rbx
call rdi
mov r10, qword [0x1400a92b0]
test r14d, r14d
jne 0x14003bcd4
mov rbx, qword [rsp + 0x118]
test r14d, r14d
jne 0x14003bd05
mov rax, qword [rbx]
movzx edi, word [rax + 0x46]
movzx eax, word [rax + 0x44]
add edi, eax
cmp dword [r13], edi
jne 0x14003bd40
cmp dword [r13], 0x48
jb 0x14003bd75
mov rcx, qword [rsp + 0x50]
call sym.spoolsv.exe_PrvDllFreeSplMem
mov edx, 1
mov ecx, dword [0x1400a9388]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TlsSetValue]
test eax, eax
je 0x14003bdc6
lea rcx, [rsp + 0x40]
call fcn.140022ef0
test eax, eax
jne 0x14003be03
mov rcx, qword [0x1400a92b0]
cmp rcx, r12
je 0x14002215e
test byte [rcx + 0x1c], 0x80
jne 0x14003be3c
lea rcx, [rsp + 0x40]
call fcn.140022ef0
lea rcx, [rsp + 0x48]
call fcn.140024908
lea rcx, [rsp + 0x60]
call fcn.140022484
mov eax, r14d
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov edx, 0x11
mov r9d, dword [rsp + 0x128]
mov r8, r15
mov rcx, qword [rcx + 0x10]
call fcn.14003d1e0
mov rcx, qword [0x1400a92b0]
jmp 0x140021c9e
cmp rcx, r12
je 0x14003bb2d
test byte [rcx + 0x1c], 0x20
je 0x14003bb2d
mov edx, 0x12
mov r9d, edi
jmp 0x14003bb21
mov rcx, qword [0x1400a92b0]
cmp rcx, r12
je 0x14003ba91
test byte [rcx + 0x1c], 0x20
je 0x14003ba91
mov edx, 0x13
mov dword [rsp + 0x28], 0x57
mov qword [rsp + 0x20], rdi
mov r9, r13
mov r8, r15
mov rcx, qword [rcx + 0x10]
call fcn.14005e228
jmp 0x14003ba91
mov edx, 0x15
lea r9d, [rdx + 0x42]
mov r8, r15
mov rcx, qword [rcx + 0x10]
call fcn.14003d1e0
mov edi, 0x57
jmp 0x14003bb2d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1400a92b0]
cmp rcx, r12
je 0x14003bb2d
test byte [rcx + 0x1c], 0x20
je 0x14003bb2d
mov edx, 0x14
mov dword [rsp + 0x28], eax
lea rax, str._DrvConvert
mov qword [rsp + 0x20], rax
mov r9, r13
mov r8, r15
mov rcx, qword [rcx + 0x10]
call fcn.14005e228
jmp 0x14003bb2d
mov rcx, rdi
call sym.spoolsv.exe_PrvDllFreeSplMem
mov rcx, qword [0x1400a92b0]
cmp rcx, r12
je 0x14003ba91
test byte [rcx + 0x1c], 0x20
je 0x14003ba91
jmp 0x14003ba7c
mov rcx, rdi
call sym.spoolsv.exe_PrvDllFreeSplMem
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1400a92b0]
cmp rcx, r12
je 0x14003bb2d
test byte [rcx + 0x1c], 0x20
je 0x14003bb2d
mov edx, 0x16
mov r9d, eax
mov r8, r15
mov rcx, qword [rcx + 0x10]
call fcn.14003d1e0
lea rcx, [rsp + 0x48]
call fcn.140024908
lea rcx, [rsp + 0x60]
call fcn.140022484
mov eax, edi
jmp 0x14002217f
mov edx, 0x1b
mov r8, r15
mov rcx, qword [r10 + 0x10]
call fcn.14003d1bc
nop
jmp 0x140021f59
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov r10, qword [0x1400a92b0]
cmp r10, r12
je 0x14003bb9a
test byte [r10 + 0x1c], 0x20
je 0x14003bb9a
mov edx, 0x1c
mov dword [rsp + 0x20], eax
mov r9d, dword [r13]
mov r8, r15
mov rcx, qword [r10 + 0x10]
call fcn.140057a4c
mov r10, qword [0x1400a92b0]
test ebx, ebx
jne 0x140022095
mov ebx, 8
jmp 0x140021ff9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov r10, qword [0x1400a92b0]
cmp r10, r12
je 0x14003bbeb
test byte [r10 + 0x1c], 0x20
je 0x14003bbeb
mov edx, 0x1d
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x108]
mov r8, r15
mov rcx, qword [r10 + 0x10]
call fcn.14004f108
mov r10, qword [0x1400a92b0]
mov eax, 8
test ebx, ebx
cmove r14d, eax
jmp 0x140021ff9
mov ebx, 0x57
cmp r10, r12
je 0x140022016
test byte [r10 + 0x1c], 0x20
je 0x140022016
mov dword [rsp + 0x20], eax
mov r9, qword [rdi]
mov rcx, qword [r10 + 0x10]
call fcn.140061588
mov r10, qword [0x1400a92b0]
jmp 0x140022016
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov r10, qword [0x1400a92b0]
cmp r10, r12
je 0x140022045
test byte [r10 + 0x1c], 0x20
je 0x140022045
mov edx, 0x1f
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x108]
mov r8, r15
mov rcx, qword [r10 + 0x10]
call fcn.14004f108
nop
jmp 0x14002203e
mov eax, 0x8007000d
jmp 0x140022084
cmp r10, r12
je 0x1400220a5
test byte [r10 + 0x1c], 0x20
je 0x140022095
mov edx, 0x20
mov r9d, r14d
mov r8, r15
mov rcx, qword [r10 + 0x10]
call fcn.14003d1e0
mov r10, qword [0x1400a92b0]
jmp 0x140022095
mov edx, 0x21
mov r9d, ebx
mov r8, r15
mov rcx, qword [r10 + 0x10]
call fcn.14003d1e0
mov r10, qword [0x1400a92b0]
jmp 0x1400220a5
mov rbx, qword [rsp + 0x118]
cmp dword [rsp + 0x130], esi
je 0x14003bcf5
cmp qword [rbx], rsi
je 0x14003bcf5
mov rcx, qword [rbx]
call sym.spoolsv.exe_PrvDllFreeSplMem
mov qword [rbx], rsi
mov dword [r13], esi
mov r10, qword [0x1400a92b0]
jmp 0x1400220e8
cmp r14d, 0x7a
je 0x14003bd32
cmp r10, r12
je 0x14003bd32
test byte [r10 + 0x1c], 0x20
je 0x14003bd32
mov edx, 0x22
mov r9d, r14d
mov r8, r15
mov rcx, qword [r10 + 0x10]
call fcn.14003d1e0
mov r10, qword [0x1400a92b0]
test r14d, r14d
jne 0x140022113
jmp 0x1400220f1
cmp r10, r12
je 0x14003bd65
test byte [r10 + 0x1c], 0x20
je 0x14003bd65
mov edx, 0x23
mov dword [rsp + 0x20], edi
mov r9d, dword [r13]
mov r8, r15
mov rcx, qword [r10 + 0x10]
call fcn.140057a4c
mov dword [r13], edi
mov r10, qword [0x1400a92b0]
jmp 0x140022108
cmp r10, r12
je 0x14003bd9e
test byte [r10 + 0x1c], 0x20
je 0x14003bd9e
mov edx, 0x24
mov dword [rsp + 0x20], 0x48
mov r9d, dword [r13]
mov r8, r15
mov rcx, qword [r10 + 0x10]
call fcn.140057a4c
mov r14d, 0x57
cmp dword [rsp + 0x130], esi
je 0x14003bdbd
cmp qword [rbx], rsi
je 0x14003bdbd
mov rcx, qword [rbx]
call sym.spoolsv.exe_PrvDllFreeSplMem
mov qword [rbx], rsi
mov dword [r13], esi
jmp 0x140022113
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov r14d, eax
mov rcx, qword [0x1400a92b0]
cmp rcx, r12
je 0x140022136
test byte [rcx + 0x1c], 0x20
je 0x140022136
mov edx, 0x26
mov r9d, eax
mov r8, r15
mov rcx, qword [rcx + 0x10]
call fcn.14003d1e0
nop
jmp 0x140022136
mov rcx, qword [0x1400a92b0]
cmp rcx, r12
je 0x14002215e
test byte [rcx + 0x1c], 0x80
je 0x14002214f
mov edx, 0x27
mov r9, qword [rsp + 0x100]
mov r8, r15
mov rcx, qword [rcx + 0x10]
call fcn.140043c9c
nop
jmp 0x140022148
mov edx, 0x28
mov r9d, r14d
mov r8, r15
mov rcx, qword [rcx + 0x10]
call fcn.14003d1e0
nop
jmp 0x14002215e