Function at 0x140026bb4
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x70
mov rbx, rcx
lea rcx, [0x14010ee78]
mov edi, r9d
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r13d, r13d
lea r12, [0x14010da48]
cmp qword [rsp + 0xd8], r13
jne 0x140026c16
mov ecx, dword [0x14010d8b4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp rax, r13
je 0x140026c28
cmp qword [rax], r13
je 0x140026c28
mov r12, rax
jmp 0x140026c28
cmp qword [rsp + 0xd8], 0xffffffffffffffff
cmovne r12, qword [rsp + 0xd8]
mov word [rsp + 0x50], r13w
mov r15d, edi
mov r13d, edi
mov rcx, rsi
and r13d, 0x10
and r15d, 0x20
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [r12 + 0x18]
sub edx, dword [r12 + 0x10]
movsxd rsi, eax
lea ecx, [rsi + 0x532]
mov dword [rsp + 0x40], esi
cmp edx, ecx
jge 0x140026c7c
mov rcx, qword [r12 + 0x10]
lea rdx, [rsi + rcx + 0x1049c]
lea rcx, [r12 + 8]
mov qword [r12 + 0x18], rdx
call fcn.140058138
xor r11d, r11d
cmp r15d, r11d
jne 0x140026e16
mov r9, qword [rsp + 0xd0]
cmp r9, r11
je 0x140026d24
test byte [rbx + 0x10], 0x40
je 0x140026d24
mov rdx, qword [rbx + 0x80]
cmp r9, rdx
jb 0x140026d24
movsxd rax, dword [rbx + 0x8c]
lea rcx, [rdx + rax*2]
cmp r9, rcx
jae 0x140026d24
mov r8d, r11d
cmp rdx, r9
ja 0x140026d13
movzx r11d, word [rbx + 0x88]
movzx ecx, word [rbx + 0x8a]
movzx r10d, word [rbx + 0x90]
jmp 0x140026cef
cmp cx, ax
je 0x140026cf8
cmp r10w, ax
je 0x140026cf8
add rdx, 2
movzx eax, word [rdx]
cmp r11w, ax
jne 0x140026ce0
cmp cx, word [rdx]
jne 0x140026d01
add rdx, 2
cmp r10w, word [rdx]
jne 0x140026d0b
add rdx, 2
inc r8d
cmp rdx, r9
jbe 0x140026cef
lea rdx, str._ld_t
lea rcx, [rsp + 0x50]
call fcn.140014d04
test byte [rbx + 0x10], 0x20
je 0x140026dcb
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [0x14010dab0]
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rax, r8
div rcx
mov edx, eax
mov rsi, rax
imul rdx, rcx
sub r8, rdx
xor edx, edx
imul r8, r8, 0xf4240
mov rax, r8
div rcx
mov edx, eax
mov rdi, rax
imul rdx, rcx
sub r8, rdx
xor edx, edx
imul r8, r8, 0xf4240
mov rax, r8
div rcx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rdx, qword [r12 + 0x10]
mov rcx, qword [r12 + 8]
mov r9d, esi
mov r8d, eax
lea rcx, [rcx + rdx*2]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x30], rdx
lea rdx, str._lu_t_u._06lu_06lu_t_s
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], edi
call fcn.140014d04
mov edi, dword [rsp + 0xc8]
mov esi, dword [rsp + 0x40]
jmp 0x140026dea
mov rcx, qword [r12 + 0x10]
mov rax, qword [r12 + 8]
lea r8, [rsp + 0x50]
lea rcx, [rax + rcx*2]
lea rdx, [0x1400f40b4]
call fcn.140014d04
inc eax
movsxd rcx, eax
mov eax, r13d
add qword [r12 + 0x10], rcx
mov rdx, qword [r12 + 0x10]
neg eax
mov rax, qword [r12 + 8]
sbb cl, cl
and cl, 0x20
add cl, 0x5b
xor r11d, r11d
movsx ecx, cl
mov word [rax + rdx*2 - 2], cx
mov rcx, qword [r12 + 0x10]
mov rax, qword [r12 + 8]
mov rdx, qword [rsp + 0xb8]
movsxd r10, esi
lea rcx, [rax + rcx*2]
lea r8, [r10 + r10]
call fcn.14001aa74
add qword [r12 + 0x10], r10
mov rdx, qword [r12 + 0x10]
cmp r15d, r11d
jne 0x140026e65
lea rax, [rdx + 1]
neg r13d
mov qword [r12 + 0x10], rax
sbb al, al
and al, 0x20
add al, 0x5d
movsx ecx, al
mov rax, qword [r12 + 8]
mov word [rax + rdx*2], cx
mov rcx, qword [r12 + 0x10]
mov rax, qword [r12 + 8]
mov word [rax + rcx*2], r11w
mov rcx, qword [r12 + 0x10]
cmp edi, r11d
jne 0x140026f1c
mov rax, qword [r12 + 8]
mov rsi, qword [rsp + 0xc0]
lea rdx, str._t__lu__t:
lea rdi, [rax + rcx*2]
mov r8d, esi
mov rcx, rdi
mov rbx, rdi
call fcn.140014d04
xor r13d, r13d
cmp eax, r13d
jle 0x140026eb6
cdqe
lea rbx, [rdi + rax*2]
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov r8d, esi
xor edx, edx
mov ecx, 0x1200
mov dword [rsp + 0x28], 0x400
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
xor r11d, r11d
cmp eax, r11d
jle 0x140026eeb
cdqe
lea rbx, [rbx + rax*2]
jmp 0x140026f00
mov edx, 0xd
mov word [rbx], dx
mov edx, 0xa
add rbx, 4
mov word [rbx - 2], dx
mov rax, qword [r12 + 8]
sub rbx, rdi
sar rbx, 1
add qword [r12 + 0x10], rbx
mov rcx, qword [r12 + 0x10]
mov word [rax + rcx*2], r11w
jmp 0x140026f5e
lea rax, [rcx + 1]
mov edx, 0xd
mov qword [r12 + 0x10], rax
mov rax, qword [r12 + 8]
mov word [rax + rcx*2], dx
mov rcx, qword [r12 + 0x10]
mov edx, 0xa
lea rax, [rcx + 1]
mov qword [r12 + 0x10], rax
mov rax, qword [r12 + 8]
mov word [rax + rcx*2], dx
mov r8, qword [r12 + 0x10]
mov rax, qword [r12 + 8]
mov word [rax + r8*2], r11w
cmp qword [r12 + 0x10], 0x10000
jg 0x140026f70
cmp byte [r12 + 0x29], r11b
je 0x140026f7f
mov rdx, qword [rsp + 0xd8]
mov cl, 1
call fcn.140015f70
lea rcx, [0x14010ee78]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x70
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret