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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
mov r15, r8
mov rsi, rdx
mov r12, rcx
lea rcx, [rsp + 0x70]
call sym.spoolsv.exe_PrvSplInitializeWinSpoolDrv
lea rcx, [rsp + 0x60]
call fcn.100047dd0
lea rcx, [rsp + 0x48]
call fcn.1000477f0
mov rcx, rsi
call qword [0x10007f298]
mov rbx, rax
mov rcx, qword [rsp + 0x48]
xor edi, edi
cmp rcx, rdi
je 0x100034eed
call fcn.1000011ec
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
mov r9, rsi
mov r8, r12
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.100047ca0
mov esi, eax
lea r12, [0x10007f250]
mov rcx, qword [0x10007f250]
cmp rcx, r12
je 0x100034f6a
test byte [rcx + 0x1c], 2
je 0x100034f59
mov edx, 0x12
mov r14d, dword [rsp + 0x128]
mov r9d, r14d
lea r13, [0x100078ab8]
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.10001ba70
mov rcx, qword [0x10007f250]
jmp 0x100034f79
lea r13, [0x100078ab8]
mov r14d, dword [rsp + 0x128]
jmp 0x100034f79
lea r13, [0x100078ab8]
mov r14d, dword [rsp + 0x128]
cmp esi, edi
je 0x100034fa9
cmp rcx, r12
je 0x1000350f7
test byte [rcx + 0x1c], 1
je 0x1000350f7
mov edx, 0x13
mov r9d, esi
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.10001ba70
jmp 0x1000350f7
lea rdx, str._DrvConvert
mov rsi, qword [rsp + 0x108]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_wcsstr]
cmp rax, rdi
je 0x10003500a
mov rcx, qword [0x10007f250]
cmp rcx, r12
je 0x100035000
test byte [rcx + 0x1c], 1
je 0x100035000
mov edx, 0x14
mov dword [rsp + 0x28], 0x57
lea rax, str._DrvConvert
mov qword [rsp + 0x20], rax
mov r9, rsi
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.100034290
mov esi, 0x57
jmp 0x1000350f7
lea rdx, str._DrvConvert
mov rcx, rsi
call fcn.100034764
mov rsi, rax
mov qword [rsp + 0x58], rax
cmp rax, rdi
jne 0x100035076
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x10007f250]
cmp rcx, r12
je 0x1000350f7
test byte [rcx + 0x1c], 1
je 0x1000350f7
mov edx, 0x15
mov dword [rsp + 0x28], eax
lea rax, str._DrvConvert
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x108]
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.100034290
jmp 0x1000350f7
mov ecx, dword [0x10007f1f0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp rax, 2
jne 0x1000350b4
mov rcx, qword [0x10007f250]
cmp rcx, r12
je 0x1000350ad
test byte [rcx + 0x1c], 1
je 0x1000350ad
lea edx, [rax + 0x14]
lea r9d, [rax + 0x55]
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.10001ba70
mov esi, 0x57
jmp 0x1000350f7
mov edx, 2
mov ecx, dword [0x10007f1f0]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, edi
jne 0x100035112
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x10007f250]
cmp rcx, r12
je 0x1000350f7
test byte [rcx + 0x1c], 1
je 0x1000350f7
mov edx, 0x17
mov r9d, eax
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.10001ba70
lea rcx, [rsp + 0x48]
call fcn.100034e60
lea rcx, [rsp + 0x60]
call fcn.100047b34
mov eax, esi
jmp 0x1000357c8
lea rcx, [rsp + 0x110]
call fcn.10001abe8
nop
cmp dword [rsp + 0x130], edi
je 0x1000351e7
mov rax, qword [rsp + 0x120]
mov dword [rax], edi
mov rcx, qword [rsp + 0x118]
mov qword [rcx], rdi
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov r8, r15
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.100047b54
mov esi, eax
mov dword [rsp + 0x40], eax
cmp eax, edi
je 0x1000351b0
cmp eax, 0x7a
je 0x1000351b0
mov rcx, qword [0x10007f250]
cmp rcx, r12
je 0x1000352d0
test byte [rcx + 0x1c], 1
je 0x1000352d0
mov edx, 0x18
mov dword [rsp + 0x20], eax
mov r9d, r14d
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.1000343a4
mov rcx, qword [0x10007f250]
jmp 0x1000352d0
mov rsi, qword [rsp + 0x120]
mov ecx, dword [rsi]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rcx, qword [rsp + 0x118]
mov qword [rcx], rax
cmp rax, rdi
jne 0x1000351ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [rsp + 0x40], eax
mov rcx, qword [0x10007f250]
jmp 0x1000352d0
mov rsi, qword [rsp + 0x120]
mov rax, qword [rsp + 0x118]
cmp rax, rdi
je 0x100035201
mov r9, qword [rax]
jmp 0x100035204
mov r9, rdi
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], rsi
mov eax, dword [rsi]
mov dword [rsp + 0x20], eax
mov r8, r15
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x60]
call fcn.100047b54
mov esi, eax
mov dword [rsp + 0x40], eax
cmp eax, edi
je 0x10003526b
mov rcx, qword [0x10007f250]
cmp rcx, r12
je 0x1000352d0
test byte [rcx + 0x1c], 1
je 0x1000352d0
mov edx, 0x19
mov dword [rsp + 0x20], eax
mov r9d, r14d
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.1000343a4
mov rcx, qword [0x10007f250]
jmp 0x1000352d0
mov rax, qword [rsp + 0x120]
mov edx, dword [rax]
mov rax, qword [rsp + 0x118]
mov rcx, qword [rax]
call fcn.100011558
mov ecx, eax
call fcn.10001a6c0
mov esi, eax
mov dword [rsp + 0x40], eax
cmp eax, edi
je 0x1000352c9
mov rcx, qword [0x10007f250]
cmp rcx, r12
je 0x1000352d0
test byte [rcx + 0x1c], 1
je 0x1000352d0
mov edx, 0x1a
mov dword [rsp + 0x20], eax
mov r9d, r14d
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.1000343a4
mov rcx, qword [0x10007f250]
jmp 0x1000352d0
mov rcx, qword [0x10007f250]
jmp 0x10003533c
cmp esi, edi
je 0x1000355ea
cmp r14d, 4
jne 0x1000355ea
cmp rcx, r12
je 0x100035369
test byte [rcx + 0x1c], 2
je 0x100035369
lea edx, [r14 + 0x18]
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.10001ba4c
lea rcx, [rsp + 0x50]
call fcn.1000477f0
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov r8, qword [rsp + 0x108]
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.100047874
mov ebx, eax
cmp dword [rsp + 0x130], edi
je 0x1000353b4
mov r15, qword [rsp + 0x118]
cmp qword [r15], rdi
je 0x1000353bc
mov rcx, qword [r15]
call sym.spoolsv.exe_PrvDllFreeSplMem
mov qword [r15], rdi
jmp 0x1000353bc
mov r15, qword [rsp + 0x118]
mov r14, qword [rsp + 0x120]
mov dword [r14], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.100047800
cmp ebx, edi
jne 0x1000354b0
cmp dword [rsp + 0x130], edi
je 0x1000354b0
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.100047800
mov dword [r14], eax
cmp eax, edi
jle 0x100035466
mov ecx, eax
call sym.spoolsv.exe_PrvDllAllocSplMem
mov qword [r15], rax
cmp rax, rdi
jne 0x1000354b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x10007f250]
cmp rcx, r12
je 0x10003545b
test byte [rcx + 0x1c], 1
je 0x10003545b
mov edx, 0x1d
mov dword [rsp + 0x20], eax
mov r9d, dword [r14]
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.1000343a4
mov rcx, qword [0x10007f250]
cmp ebx, edi
jne 0x1000354b7
mov ebx, 8
jmp 0x1000354b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x10007f250]
cmp rcx, r12
je 0x1000354a4
test byte [rcx + 0x1c], 1
je 0x1000354a4
mov edx, 0x1e
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x108]
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.10001ff24
mov rcx, qword [0x10007f250]
mov eax, 8
cmp ebx, edi
cmove esi, eax
jmp 0x1000354b7
mov rcx, qword [0x10007f250]
cmp ebx, edi
jne 0x1000354f8
mov eax, dword [r14]
cmp eax, edi
jle 0x1000354c7
cmp qword [r15], rdi
jne 0x1000354f8
mov ebx, 0x57
cmp rcx, r12
je 0x1000354f8
test byte [rcx + 0x1c], 1
je 0x1000354f8
lea edx, [rbx - 0x38]
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], eax
mov r9, qword [r15]
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.1000343ec
mov rcx, qword [0x10007f250]
cmp ebx, edi
jne 0x100035561
mov eax, dword [r14]
mov dword [rsp + 0x20], eax
mov r9, qword [r15]
xor edx, edx
lea r8d, [rdx + 2]
lea rcx, [rsp + 0x50]
call fcn.100047800
cmp eax, edi
jge 0x10003555a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x10007f250]
cmp rcx, r12
je 0x100035561
test byte [rcx + 0x1c], 1
je 0x100035561
mov edx, 0x20
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x108]
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.10001ff24
mov rcx, qword [0x10007f250]
jmp 0x100035561
mov rcx, qword [0x10007f250]
cmp ebx, edi
jne 0x1000355b3
mov edx, dword [r14]
mov rcx, qword [r15]
call fcn.100011558
mov ecx, eax
call fcn.10001a6c0
mov ebx, eax
cmp eax, edi
je 0x1000355ac
mov rcx, qword [0x10007f250]
cmp rcx, r12
je 0x1000355b3
test byte [rcx + 0x1c], 1
je 0x1000355b3
mov edx, 0x21
mov r9d, esi
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.10001ba70
mov rcx, qword [0x10007f250]
jmp 0x1000355b3
mov rcx, qword [0x10007f250]
cmp rcx, r12
je 0x1000355d2
test byte [rcx + 0x1c], 2
je 0x1000355d2
mov edx, 0x22
mov r9d, ebx
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.10001ba70
cmp ebx, edi
cmove esi, edi
lea rcx, [rsp + 0x50]
call fcn.100047b34
mov rcx, qword [0x10007f250]
jmp 0x1000355f2
mov r14, qword [rsp + 0x120]
cmp esi, edi
je 0x100035621
cmp dword [rsp + 0x130], edi
je 0x100035617
mov rbx, qword [rsp + 0x118]
cmp qword [rbx], rdi
je 0x100035617
mov rcx, qword [rbx]
call sym.spoolsv.exe_PrvDllFreeSplMem
mov qword [rbx], rdi
mov dword [r14], edi
mov rcx, qword [0x10007f250]
cmp esi, edi
je 0x100035650
cmp esi, 0x7a
je 0x100035650
cmp rcx, r12
je 0x100035650
test byte [rcx + 0x1c], 1
je 0x100035650
mov edx, 0x23
mov r9d, esi
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.10001ba70
mov rcx, qword [0x10007f250]
cmp esi, edi
jne 0x1000356ed
mov r15, qword [rsp + 0x118]
mov rax, qword [r15]
movzx ebx, word [rax + 0x46]
movzx eax, word [rax + 0x44]
add ebx, eax
cmp dword [r14], ebx
je 0x10003569f
cmp rcx, r12
je 0x100035695
test byte [rcx + 0x1c], 1
je 0x100035695
mov edx, 0x24
mov dword [rsp + 0x20], ebx
mov r9d, dword [r14]
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.1000343a4
mov dword [r14], ebx
mov rcx, qword [0x10007f250]
cmp dword [r14], 0x48
jae 0x1000356ed
cmp rcx, r12
je 0x1000356cc
test byte [rcx + 0x1c], 1
je 0x1000356cc
mov edx, 0x25
mov dword [rsp + 0x20], 0x48
mov r9d, dword [r14]
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.1000343a4
mov esi, 0x57
cmp dword [rsp + 0x130], edi
je 0x1000356ea
cmp qword [r15], rdi
je 0x1000356ea
mov rcx, qword [r15]
call sym.spoolsv.exe_PrvDllFreeSplMem
mov qword [r15], rdi
mov dword [r14], edi
mov rcx, qword [rsp + 0x58]
call sym.spoolsv.exe_PrvDllFreeSplMem
mov edx, 1
mov ecx, dword [0x10007f1f0]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, edi
jne 0x10003573a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x10007f250]
cmp rcx, r12
je 0x10003573a
test byte [rcx + 0x1c], 1
je 0x10003573a
mov edx, 0x27
mov r9d, eax
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.10001ba70
lea rcx, [rsp + 0x110]
call fcn.10001ac84
cmp eax, edi
je 0x10003577f
mov rcx, qword [0x10007f250]
cmp rcx, r12
je 0x100035786
test byte [rcx + 0x1c], 2
je 0x100035786
mov edx, 0x28
mov r9, qword [rsp + 0x100]
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.100033f64
mov rcx, qword [0x10007f250]
jmp 0x100035786
mov rcx, qword [0x10007f250]
cmp rcx, r12
je 0x1000357a5
test byte [rcx + 0x1c], 2
je 0x1000357a5
mov edx, 0x29
mov r9d, esi
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.10001ba70
lea rcx, [rsp + 0x110]
call fcn.10001ac7c
lea rcx, [rsp + 0x48]
call fcn.100034e60
lea rcx, [rsp + 0x60]
call fcn.100047b34
mov eax, esi
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret