Function at 0x140117810
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1b0
mov r14, r8
mov r15, rdx
mov r12, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
mov eax, dword [0x140227550]
mov ecx, dword [0x140222a94]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140117b0b
cmp byte [r12], 0
je 0x140117a7d
mov eax, dword [0x140227148]
mov ecx, dword [0x140222a94]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140117aaa
cmp byte [0x140227144], 0
je 0x140117b55
lea rcx, [rsp + 0x50]
call fcn.1401007e0
mov rax, qword [0x14021af40]
lea rcx, [0x14011c810]
lea rbp, [rsp + 0x58]
cmp rax, rcx
jne 0x140117b43
mov qword [rbp], 0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbp]
movabs rcx, 0x8637bd05af6
cmp rax, rcx
jg 0x140117cd2
imul rax, rax, 0xf4240
cqo
idiv qword [0x140227198]
mov qword [rsp + 0x58], rax
movabs rcx, 0x7fffffffffffffff
mov rdx, qword [0x140227358]
lea rbp, [rdx + rcx]
add rbp, 2
cmp rbp, 2
jb 0x140117b63
xor ebp, ebp
cmp rax, rdx
setns bpl
add rbp, rcx
sub rax, rdx
cmovo rax, rbp
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movzx ebx, byte [r12]
test ebx, ebx
je 0x140117a7d
mov ebp, eax
mov ecx, dword [0x14021aed0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140117985
movsxd rcx, dword [0x1402274c0]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402274c4]
jne 0x140117985
cmp qword [rax + rcx], 0
jne 0x140117a7d
lea rsi, [0x1402274c0]
movabs rdi, 0xfffffffe00000000
and rdi, rsi
cmp qword [0x14021af08], rdi
je 0x140117bbc
mov ecx, dword [0x14021aed0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140117aa0
movsxd rcx, dword [0x1402274c0]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [0x1402274c4]
movsxd rdx, dword [0x1402274c0]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
test bl, 8
jne 0x140117bcd
test bl, 1
je 0x140117b7c
mov rax, qword [0x140227540]
test rax, rax
je 0x140117bee
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x38], 0xffffffffffffffff
mov byte [rsp + 0x20], 0
mov rcx, r12
mov rdx, r15
mov r8, r14
mov r9d, ebp
call qword [0x14023a010]
mov ecx, dword [0x14021aed0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140117a70
movsxd rcx, dword [0x1402274c0]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [0x1402274c4]
movsxd rdx, dword [0x1402274c0]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
cmp qword [0x14021af08], rdi
je 0x140117bdd
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.14011fe20
nop
add rsp, 0x1b0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.140013120
jmp 0x1401179bc
lea rcx, [0x140227148]
call fcn.14011d638
cmp dword [0x140227148], 0xffffffff
jne 0x140117891
lea rbp, [rsp + 0x58]
mov rcx, rbp
call fcn.14003c6b0
mov bl, byte [rbp + 0x28]
cmp byte [rbp + 0x5f], 0
jns 0x140117ae6
mov rcx, qword [rsp + 0xa0]
call fcn.14011d780
cmp byte [rsp + 0x9f], 0
js 0x140117d3f
mov byte [0x140227144], bl
lea rcx, [0x140227148]
call fcn.14011d5d8
jmp 0x140117891
lea rcx, [0x140227550]
call fcn.14011d638
cmp dword [0x140227550], 0xffffffff
jne 0x140117861
lea rcx, [0x1402271a8]
xor edx, edx
call fcn.140021c50
lea rcx, [0x140227550]
call fcn.14011d5d8
jmp 0x140117861
mov rcx, rbp
call qword [0x14023a010]
mov rax, qword [rbp]
jmp 0x140117901
mov qword [rsp + 0x50], 0
jmp 0x1401178a8
cmp rax, rdx
je 0x140117d51
lea rax, [rcx + 1]
test rdx, rdx
cmovs rax, rcx
jmp 0x140117937
xorps xmm0, xmm0
movaps xmmword [rsp + 0x190], xmm0
mov qword [rsp + 0x1a0], 0
test bl, 0x10
jne 0x140117cf9
cmp byte [rsp + 0x1a7], 0
jns 0x140117a36
mov rcx, qword [rsp + 0x190]
call fcn.14011d780
jmp 0x140117a36
lea rcx, [0x1402274c0]
call fcn.1400f2260
jmp 0x1401179a6
mov rcx, r12
mov rdx, r15
call fcn.1401809c0
jmp 0x1401179e9
lea rcx, [0x1402274c0]
call fcn.1400f23b0
jmp 0x140117a7d
xorps xmm0, xmm0
movaps xmmword [rsp + 0x190], xmm0
mov qword [rsp + 0x1a0], 0
movabs rax, 0xaaaaaaaaaaaaaa00
lea rdx, [rsp + 0x58]
mov qword [rdx + 8], rax
lea rax, [0x1402271b0]
mov qword [rdx], rax
mov rcx, r14
call fcn.140173320
mov rbp, rax
test rax, rax
je 0x140117c4b
lea rdx, [rsp + 0x48]
lea r8, [rsp + 0x50]
mov rcx, rbp
mov r9, 0xffffffffffffffff
call fcn.14017fc50
mov eax, dword [0x140227360]
test al, 8
jne 0x140117d06
cmp byte [rsp + 0x60], 0
je 0x140117c6b
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
movzx ebp, byte [rsp + 0x1a7]
mov r15, rbp
test bpl, bpl
jns 0x140117c83
mov r15, qword [rsp + 0x198]
test r15, r15
je 0x140117b93
mov ecx, 2
call fcn.1400d5300
test al, al
je 0x140117b93
lea rdx, str..._.._base_trace_event_trace_log.cc
lea r14, [rsp + 0x58]
mov rcx, r14
mov r8d, 0x833
mov r9d, 2
call fcn.14000c5c0
lea rcx, [rsp + 0x68]
test bpl, bpl
jns 0x140117d22
mov rdx, qword [rsp + 0x190]
jmp 0x140117d2a
mov rcx, qword [0x140227198]
cqo
idiv rcx
imul rbp, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, rbp
jmp 0x1401178fc
mov rcx, r12
call fcn.1401732e0
jmp 0x140117b9c
lea rcx, [rsp + 0x190]
lea r8, [rsp + 0x48]
mov dl, 0x45
mov r9, rbp
call fcn.140172e00
jmp 0x140117c59
lea rdx, [rsp + 0x190]
mov r8, r15
call fcn.140152d20
mov rcx, r14
call fcn.14000c690
jmp 0x140117b93
mov rcx, qword [rsp + 0x88]
call fcn.14011d780
jmp 0x140117af4
int3