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

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
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 r12, r9
mov r13, r8
mov rsi, rdx
mov r14, rcx
lea rcx, [rax - 0x88]
call sym.spoolsv.exe_PrvSplInitializeWinSpoolDrv
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
lea rcx, [rsp + 0x48]
call fcn.1400117fc
mov rcx, rsi
mov rax, qword [0x1400a7070]
mov rdx, qword [0x140088740]
call rdx
mov rbx, rax
lea rcx, [rsp + 0x48]
call fcn.140007a40
xor edi, edi
test rbx, rbx
je 0x140059ea8
mov rdx, rbx
jmp 0x140059eae
mov rbx, rdi
mov rdx, rdi
mov qword [rsp + 0x48], rbx
mov r9, rsi
mov r8, r14
lea rcx, [rsp + 0x68]
call fcn.1400654dc
mov esi, eax
lea r14, [0x1400a52b8]
mov rcx, qword [0x1400a52b8]
lea r15, [0x14008bd30]
cmp rcx, r14
je 0x140059f05
test byte [rcx + 0x1c], 0x80
je 0x140059f05
mov edx, 0x11
mov r9d, dword [rsp + 0x138]
mov r8, r15
mov rcx, qword [rcx + 0x10]
call fcn.140024908
mov rcx, qword [0x1400a52b8]
test esi, esi
je 0x140059f29
cmp rcx, r14
je 0x14005a7be
test byte [rcx + 0x1c], 0x20
je 0x14005a7be
mov edx, 0x12
mov r9d, esi
jmp 0x14005a098
lea rdx, str._DrvConvert
mov rsi, qword [rsp + 0x118]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
je 0x140059f8a
mov rcx, qword [0x1400a52b8]
cmp rcx, r14
je 0x140059f80
test byte [rcx + 0x1c], 0x20
je 0x140059f80
mov edx, 0x13
mov dword [rsp + 0x28], 0x57
lea rax, str._DrvConvert
mov qword [rsp + 0x20], rax
mov r9, rsi
mov r8, r15
mov rcx, qword [rcx + 0x10]
call fcn.140053534
mov esi, 0x57
jmp 0x14005a7be
mov rcx, rsi
call fcn.140059484
mov rsi, rax
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x140059fef
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x1400a52b8]
cmp rcx, r14
je 0x14005a7be
test byte [rcx + 0x1c], 0x20
je 0x14005a7be
mov edx, 0x14
mov dword [rsp + 0x28], eax
lea rax, str._DrvConvert
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x118]
mov r8, r15
mov rcx, qword [rcx + 0x10]
call fcn.140053534
jmp 0x14005a7be
mov ecx, dword [0x1400a5918]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
cmp rax, 2
jne 0x14005a047
mov r8, rsi
xor edx, edx
mov rcx, qword [0x1400a6ef0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1400a52b8]
cmp rcx, r14
je 0x140059f80
test byte [rcx + 0x1c], 0x20
je 0x140059f80
mov edx, 0x15
lea r9d, [rdx + 0x42]
mov r8, r15
mov rcx, qword [rcx + 0x10]
call fcn.140024908
jmp 0x140059f80
mov edx, 2
mov ecx, dword [0x1400a5918]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
test eax, eax
jne 0x14005a0a9
mov r8, rsi
xor edx, edx
mov rcx, qword [0x1400a6ef0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x1400a52b8]
cmp rcx, r14
je 0x14005a7be
test byte [rcx + 0x1c], 0x20
je 0x14005a7be
mov edx, 0x16
mov r9d, eax
mov r8, r15
mov rcx, qword [rcx + 0x10]
call fcn.140024908
jmp 0x14005a7be
lea rcx, [rsp + 0x120]
call fcn.140063a2c
nop
cmp dword [rsp + 0x140], edi
je 0x14005a179
mov rax, qword [rsp + 0x130]
mov dword [rax], edi
mov qword [r12], rdi
mov r12d, dword [rsp + 0x138]
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov r8, r13
mov rdx, rsi
lea rcx, [rsp + 0x68]
call fcn.140065384
mov esi, eax
mov dword [rsp + 0x40], eax
test eax, eax
je 0x14005a14b
cmp eax, 0x7a
je 0x14005a14b
mov r10, qword [0x1400a52b8]
cmp r10, r14
je 0x14005a140
test byte [r10 + 0x1c], 0x20
je 0x14005a140
mov edx, 0x17
mov dword [rsp + 0x20], eax
mov r9d, r12d
mov r8, r15
mov rcx, qword [r10 + 0x10]
call fcn.14002b208
mov r12d, 0x8007000d
jmp 0x14005a275
mov r12d, 0x8007000d
jmp 0x14005a27c
mov rsi, qword [rsp + 0x130]
mov ecx, dword [rsi]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov r12, qword [rsp + 0x128]
mov qword [r12], rax
test rax, rax
jne 0x14005a181
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
mov dword [rsp + 0x40], eax
jmp 0x14005a135
mov rsi, qword [rsp + 0x130]
test r12, r12
je 0x14005a18c
mov r9, qword [r12]
jmp 0x14005a18f
mov r9, rdi
mov r12d, dword [rsp + 0x138]
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], rsi
mov eax, dword [rsi]
mov dword [rsp + 0x20], eax
mov r8, r13
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x68]
call fcn.140065384
mov esi, eax
mov dword [rsp + 0x40], eax
test eax, eax
je 0x14005a1e8
mov r10, qword [0x1400a52b8]
cmp r10, r14
je 0x14005a140
test byte [r10 + 0x1c], 0x20
je 0x14005a140
mov edx, 0x18
jmp 0x14005a122
mov rax, qword [rsp + 0x130]
mov r9d, dword [rax]
mov rax, qword [rsp + 0x128]
mov rcx, qword [rax]
mov r12d, 0x8007000d
mov r8d, r12d
mov dword [rsp + 0x58], r12d
test rcx, rcx
je 0x14005a233
cmp r9, 0x4c
jb 0x14005a233
movzx edx, word [rcx + 0x46]
movzx eax, word [rcx + 0x44]
add rdx, rax
cmp r9, rdx
jb 0x14005a233
call fcn.140002810
mov r8d, eax
mov dword [rsp + 0x58], eax
mov ecx, r8d
call fcn.14003ffc8
mov esi, eax
mov dword [rsp + 0x40], eax
test eax, eax
je 0x14005a275
mov r10, qword [0x1400a52b8]
cmp r10, r14
je 0x14005a27c
test byte [r10 + 0x1c], 0x20
je 0x14005a27c
mov edx, 0x19
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x138]
mov r8, r15
mov rcx, qword [r10 + 0x10]
call fcn.14002b208
mov r10, qword [0x1400a52b8]
jmp 0x14005a2df
test esi, esi
je 0x14005a5d6
cmp dword [rsp + 0x138], 4
jne 0x14005a5d6
cmp r10, r14
je 0x14005a312
test byte [r10 + 0x1c], 0x80
je 0x14005a312
mov edx, 0x1b
mov r8, r15
mov rcx, qword [r10 + 0x10]
call fcn.1400248e4
mov qword [rsp + 0x50], rdi
mov r8, qword [rsp + 0x118]
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.1400652d8
mov ebx, eax
cmp dword [rsp + 0x140], edi
je 0x14005a35c
mov r13, qword [rsp + 0x128]
cmp qword [r13], rdi
je 0x14005a35c
mov r8, qword [r13]
xor edx, edx
mov rcx, qword [0x1400a6ef0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [r13], rdi
mov r13, qword [rsp + 0x130]
mov dword [r13], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rcx, [rsp + 0x50]
call fcn.140065268
test ebx, ebx
jne 0x14005a45d
cmp dword [rsp + 0x140], edi
je 0x14005a45d
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rcx, [rsp + 0x50]
call fcn.140065268
mov dword [r13], eax
test eax, eax
jle 0x14005a412
mov ecx, eax
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rcx, qword [rsp + 0x128]
mov qword [rcx], rax
test rax, rax
jne 0x14005a45d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov r10, qword [0x1400a52b8]
cmp r10, r14
je 0x14005a403
test byte [r10 + 0x1c], 0x20
je 0x14005a403
mov edx, 0x1c
mov dword [rsp + 0x20], eax
mov r9d, dword [r13]
mov r8, r15
mov rcx, qword [r10 + 0x10]
call fcn.14002b208
mov r10, qword [0x1400a52b8]
test ebx, ebx
jne 0x14005a587
mov ebx, 8
jmp 0x14005a464
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov r10, qword [0x1400a52b8]
cmp r10, r14
je 0x14005a451
test byte [r10 + 0x1c], 0x20
je 0x14005a451
mov edx, 0x1d
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x118]
mov r8, r15
mov rcx, qword [r10 + 0x10]
call fcn.14003f0e8
mov r10, qword [0x1400a52b8]
mov eax, 8
test ebx, ebx
cmove esi, eax
jmp 0x14005a464
mov r10, qword [0x1400a52b8]
test ebx, ebx
jne 0x14005a587
mov eax, dword [r13]
mov rcx, qword [rsp + 0x128]
test eax, eax
jle 0x14005a481
cmp qword [rcx], rdi
jne 0x14005a4a9
mov ebx, 0x57
cmp r10, r14
je 0x14005a4a9
test byte [r10 + 0x1c], 0x20
je 0x14005a4a9
mov dword [rsp + 0x20], eax
mov r9, qword [rcx]
mov rcx, qword [r10 + 0x10]
call fcn.14005a9b8
mov r10, qword [0x1400a52b8]
test ebx, ebx
jne 0x14005a587
mov eax, dword [r13]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x128]
mov r9, qword [rax]
lea r8d, [rbx + 2]
lea rcx, [rsp + 0x50]
call fcn.140065268
test eax, eax
jns 0x14005a50e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov r10, qword [0x1400a52b8]
cmp r10, r14
je 0x14005a515
test byte [r10 + 0x1c], 0x20
je 0x14005a515
mov edx, 0x1f
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x118]
mov r8, r15
mov rcx, qword [r10 + 0x10]
call fcn.14003f0e8
mov r10, qword [0x1400a52b8]
test ebx, ebx
jne 0x14005a587
mov r8d, dword [r13]
mov rax, qword [rsp + 0x128]
mov rcx, qword [rax]
test rcx, rcx
je 0x14005a552
cmp r8, 0x4c
jb 0x14005a552
movzx edx, word [rcx + 0x46]
movzx eax, word [rcx + 0x44]
add rdx, rax
cmp r8, rdx
jb 0x14005a552
call fcn.140002810
mov r12d, eax
mov r10, qword [0x1400a52b8]
mov ecx, r12d
call fcn.14003ffc8
mov ebx, eax
test eax, eax
je 0x14005a587
cmp r10, r14
je 0x14005a5ae
test byte [r10 + 0x1c], 0x20
je 0x14005a587
mov edx, 0x20
mov r9d, esi
mov r8, r15
mov rcx, qword [r10 + 0x10]
call fcn.140024908
mov r10, qword [0x1400a52b8]
cmp r10, r14
je 0x14005a5ae
test byte [r10 + 0x1c], 0x80
je 0x14005a5ae
mov edx, 0x21
mov r9d, ebx
mov r8, r15
mov rcx, qword [r10 + 0x10]
call fcn.140024908
mov r10, qword [0x1400a52b8]
test ebx, ebx
cmove esi, edi
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14005a5de
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
mov rdx, qword [0x140088740]
call rdx
mov r10, qword [0x1400a52b8]
jmp 0x14005a5de
mov r13, qword [rsp + 0x130]
test esi, esi
je 0x14005a650
cmp dword [rsp + 0x140], edi
je 0x14005a60d
mov rbx, qword [rsp + 0x128]
cmp qword [rbx], rdi
je 0x14005a60d
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x1400a6ef0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], rdi
mov dword [r13], edi
mov r10, qword [0x1400a52b8]
test esi, esi
je 0x14005a650
cmp esi, 0x7a
je 0x14005a648
cmp r10, r14
je 0x14005a648
test byte [r10 + 0x1c], 0x20
je 0x14005a648
mov edx, 0x22
mov r9d, esi
mov r8, r15
mov rcx, qword [r10 + 0x10]
call fcn.140024908
mov r10, qword [0x1400a52b8]
test esi, esi
jne 0x14005a6f8
mov r12, qword [rsp + 0x128]
mov rax, qword [r12]
movzx ebx, word [rax + 0x46]
movzx eax, word [rax + 0x44]
add ebx, eax
mov r9d, dword [r13]
cmp r9d, ebx
je 0x14005a69e
cmp r10, r14
je 0x14005a690
test byte [r10 + 0x1c], 0x20
je 0x14005a690
mov edx, 0x23
mov dword [rsp + 0x20], ebx
mov r8, r15
mov rcx, qword [r10 + 0x10]
call fcn.14002b208
mov dword [r13], ebx
mov r9d, ebx
mov r10, qword [0x1400a52b8]
cmp r9d, 0x48
jae 0x14005a6f8
cmp r10, r14
je 0x14005a6c9
test byte [r10 + 0x1c], 0x20
je 0x14005a6c9
mov edx, 0x24
mov dword [rsp + 0x20], 0x48
mov r8, r15
mov rcx, qword [r10 + 0x10]
call fcn.14002b208
mov esi, 0x57
cmp dword [rsp + 0x140], edi
je 0x14005a6f4
cmp qword [r12], rdi
je 0x14005a6f4
mov r8, qword [r12]
xor edx, edx
mov rcx, qword [0x1400a6ef0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [r12], rdi
mov dword [r13], edi
mov r8, qword [rsp + 0x60]
xor edx, edx
mov rcx, qword [0x1400a6ef0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, 1
mov ecx, dword [0x1400a5918]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
test eax, eax
jne 0x14005a74f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x1400a52b8]
cmp rcx, r14
je 0x14005a74f
test byte [rcx + 0x1c], 0x20
je 0x14005a74f
mov edx, 0x26
mov r9d, eax
mov r8, r15
mov rcx, qword [rcx + 0x10]
call fcn.140024908
lea rcx, [rsp + 0x120]
call fcn.140063acc
test eax, eax
je 0x14005a78b
mov rcx, qword [0x1400a52b8]
cmp rcx, r14
je 0x14005a7b1
test byte [rcx + 0x1c], 0x80
je 0x14005a792
mov edx, 0x27
mov r9, qword [rsp + 0x110]
mov r8, r15
mov rcx, qword [rcx + 0x10]
call fcn.14003317c
mov rcx, qword [0x1400a52b8]
cmp rcx, r14
je 0x14005a7b1
test byte [rcx + 0x1c], 0x80
je 0x14005a7b1
mov edx, 0x28
mov r9d, esi
mov r8, r15
mov rcx, qword [rcx + 0x10]
call fcn.140024908
lea rcx, [rsp + 0x120]
call fcn.140063acc
lea rcx, [rsp + 0x48]
call fcn.14001180c
lea rcx, [rsp + 0x68]
call fcn.140065360
mov eax, esi
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret