Function at 0x14003ea10
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov ebp, r9d
mov r13d, r8d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140100028]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, qword [0x1401095a0]
cmp rbx, 1
jbe 0x14003f012
mov ecx, dword [0x140103438]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14003f1d4
movsxd rcx, dword [rbx]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rbx + 4]
jne 0x14003f1d4
mov rax, qword [rax + rcx]
mov qword [rsi], rax
mov rbx, qword [0x1401095e0]
cmp rbx, 1
jbe 0x14003f116
mov ecx, dword [0x140103438]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14003f1db
movsxd rcx, dword [rbx]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rbx + 4]
jne 0x14003f1db
mov rax, qword [rax + rcx]
mov qword [rsi + 8], rax
cmp r13d, 1
je 0x14003f1e2
test rax, rax
jne 0x14003ef48
xor eax, eax
mov byte [rsi + 0x10], al
lea r12, [rsi + 0x18]
mov rdi, qword [rdi + 0x18]
mov qword [rsp + 0x30], 0x11be9915
mov rcx, qword [0x140106270]
test rcx, rcx
jne 0x14003f1e9
mov qword [r12], 0
mov qword [rsi + 0x28], 0
mov dword [rsi + 0x30], 0x11be9915
mov byte [rsi + 0x38], 0
mov rdi, qword [0x1401095e0]
cmp rdi, 1
jbe 0x14003f163
mov ecx, dword [0x140103438]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14003f1c1
movsxd rcx, dword [rdi]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [rdi + 4]
movsxd rdx, dword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rdi, qword [0x14010acd0]
cmp rdi, 1
jbe 0x14003f0c9
mov ecx, dword [0x140103438]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14003ec16
movsxd rcx, dword [rdi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rdi + 4]
jne 0x14003ec16
mov rax, qword [rax + rcx]
test rax, rax
je 0x14003ec16
cmp byte [rax], 0
jne 0x14003ec16
mov eax, dword [0x14010ace4]
mov ecx, dword [0x1401036f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003f094
cmp byte [0x14010ace0], 0
je 0x14003ec16
mov rcx, qword [rsi]
test rcx, rcx
je 0x14003ebe8
mov rax, qword [rsi + 8]
test rax, rax
jne 0x14003ef8a
mov edx, r13d
call fcn.140064a50
mov rax, qword [r12]
test rax, rax
jne 0x14003f21e
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140069890
mov rax, rsi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
test ebp, ebp
jne 0x14003edf0
cmp byte [rsi + 0x10], 0
jne 0x14003edf0
cmp qword [rsi + 8], 0
jne 0x14003ebcb
cmp byte [rsi + 0x38], 0
jne 0x14003f2c7
lea rcx, [rsi + 0x40]
call qword [fcn.140047460]
mov r14, qword [rsi + 0x40]
mov eax, dword [0x1401095b8]
mov ecx, dword [0x1401036f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003efa8
lea rcx, [0x1401095b0]
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14003f1b0
mov eax, dword [0x1401095d8]
mov ecx, dword [0x1401036f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003efdd
cmp qword [0x1401095d0], 0
je 0x14003edd2
mov eax, dword [0x1401095c8]
mov ecx, dword [0x1401036f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003f05f
mov rbp, qword [0x1401095c0]
movabs r15, 0x7fffffffffffffff
mov rbx, r14
test rbp, rbp
je 0x14003ed27
mov rax, qword [rbp + 0x1f0]
mov ebx, 0x3938700
xor ecx, ecx
mov edx, 0x3938700
add rdx, rax
setns cl
add rcx, r15
add rbx, rax
cmovo rbx, rcx
cmp rbx, r14
jle 0x14003ed27
mov qword [rsi + 0x48], rbp
lock inc dword [rbp]
jmp 0x14003edda
mov rax, r14
sub rax, rbx
cmp rax, 0x989680
jl 0x14003ed3f
mov byte [rbp + 0x200], 1
mov rbx, r14
mov ecx, 0x208
int3
mov qword [rsi + 0x48], 0
lea rcx, [0x1401095b0]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov byte [rsi + 0x38], 1
jmp 0x14003ebcb
mov rax, qword [rsi + 8]
test rax, rax
je 0x14003ebcb
cmp byte [rax + 0x38], 0
je 0x14003ebcb
mov rdi, qword [rax + 0x48]
mov qword [rax + 0x48], 0
test rdi, rdi
je 0x14003ebcb
lock dec dword [rdi]
jne 0x14003ebcb
mov rcx, rdi
int3
mov al, byte [rax + 0x10]
jmp 0x14003ead5
cmp r13d, 1
jne 0x14003ebe8
cmp byte [rax + 0x10], 0
jne 0x14003ebe8
call fcn.1400d4ee0
jmp 0x14003ebe8
lea rcx, [0x1401095b8]
int3
lea rcx, [0x1401095d8]
int3
lea rcx, [0x1401095a0]
int3
lea rcx, [0x1401095c8]
int3
lea rcx, [0x14010ace4]
int3
lea rcx, [0x14010acd0]
int3
lea rcx, [0x1401095e0]
int3
lea rcx, [0x1401095e0]
int3
lea rcx, [0x1401095b0]
call fcn.140036430
jmp 0x14003ec81
test rsi, rsi
je 0x14003eb54
call fcn.140006a80
jmp 0x14003eb3b
xor eax, eax
jmp 0x14003ea7a
xor eax, eax
jmp 0x14003eabc
mov al, 1
jmp 0x14003ead5
int3
mov eax, dword [rax + 0x18]
cmp eax, dword [rsi + 0x20]
jbe 0x14003ebf5
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x60]
mov qword [rdi], rax
mov rcx, rdi
call qword [fcn.140047460]
mov rcx, r12
int3
lea rcx, [rsi + 0x40]
call fcn.14000c020
mov byte [rsi + 0x38], 0
jmp 0x14003ec39