Function at 0x180106df0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push rsi
push r13
sub rsp, 0x50
mov rax, qword [rcx + 0x50]
mov rbx, rdx
mov edx, dword [rdx + 0x48]
cmp qword [rax + rdx*8], 0xffffffffffffffff
mov rsi, r8
mov r13, rcx
je 0x180106e1f
xor eax, eax
add rsp, 0x50
pop r13
pop rsi
pop rbx
ret
mov r9, qword [rbx + 0x10]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x20], r8
mov r8d, edx
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x88], rbp
call fcn.18019ed50
mov ebp, eax
test eax, eax
js 0x1801070ad
mov ecx, dword [0x18025e63c]
xor ebp, ebp
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x78], rbp
test ecx, ecx
jns 0x180106e66
mov rax, rbp
jmp 0x180106e6c
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rax]
xor edx, edx
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x180106e92
mov dword [rax], ebp
mov dword [rax + 4], ebp
mov qword [rax + 0x10], rbp
mov qword [rax + 8], rbp
mov dword [rax + 0x18], ebp
jmp 0x180106e95
mov rax, rbp
mov r12, qword [rsp + 0x70]
mov qword [r12 + 0x50], rax
test rax, rax
jne 0x180106eae
mov ebp, 0x8007000e
jmp 0x1801070a8
mov ecx, dword [rbx + 0x48]
mov rax, qword [r13 + 0x50]
mov qword [rsp + 0x48], rdi
mov qword [rax + rcx*8], r12
mov rcx, qword [r12 + 0x50]
mov rax, qword [rbx + 0x10]
mov qword [rcx + 8], rax
mov rdi, qword [rbx + 0xb0]
mov byte [rsp + 0x70], bpl
test rdi, rdi
je 0x1801070a3
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
nop word [rax + rax]
mov rbx, qword [rdi + 0x30]
test rbx, rbx
je 0x180107087
mov qword [r12 + 0x48], rbx
movsx ecx, byte [rbx]
mov r14b, 1
xor r15b, r15b
and esi, 1
call sub.msvcrt.dll_tolower
test rsi, rsi
mov ecx, 0x74
mov edx, 0x62
cmovne ecx, edx
cmp eax, ecx
je 0x180106f78
xor r14b, r14b
test rsi, rsi
je 0x180106f41
movsx ecx, byte [rbx]
call sub.msvcrt.dll_tolower
cmp eax, 0x63
jne 0x180106f41
mov r15b, 1
jmp 0x180106f78
test rsi, rsi
je 0x180106f60
lea r9, [0x1800408d8]
mov r8d, 0xdca
mov rdx, rdi
mov rcx, r13
call fcn.180109730
jmp 0x180106f78
lea r9, [0x180040918]
mov r8d, 0xdca
mov rdx, rdi
mov rcx, r13
call fcn.180109730
cmp qword [rdi + 0x38], 0
je 0x180106fd0
test r14b, r14b
je 0x180106fb8
lea rcx, [0x18003c550]
test rsi, rsi
lea rax, [0x180035100]
cmovne rax, rcx
lea r9, [0x180040950]
mov r8d, 0xdbb
mov rcx, r13
mov rdx, rdi
mov qword [rsp + 0x20], rax
call fcn.180109730
jmp 0x180106fd0
mov eax, dword [r13 + 0x20]
mov ecx, dword [rdi + 0x48]
cmp eax, ecx
je 0x180106fd0
and eax, 0xffff0000
cmp eax, ecx
jne 0x18010707f
movzx ecx, byte [rbx + 1]
inc rbx
mov rsi, rbx
call sub.msvcrt.dll_isdigit
test eax, eax
je 0x180106ff3
movzx ecx, byte [rbx + 1]
inc rbx
call sub.msvcrt.dll_isdigit
test eax, eax
jne 0x180106fe3
cmp byte [rbx], 0
jne 0x180107060
test r14b, r14b
je 0x18010702a
test bpl, bpl
je 0x18010701a
lea r9, [0x180040988]
mov r8d, 0xdca
mov rdx, rdi
mov rcx, r13
call fcn.180109730
mov rcx, rsi
call sub.msvcrt.dll_atoi
mov bpl, 1
mov dword [r12 + 0x28], eax
test r15b, r15b
je 0x180107060
cmp byte [rsp + 0x70], 0
je 0x18010704e
lea r9, [0x1800409b0]
mov r8d, 0xdca
mov rdx, rdi
mov rcx, r13
call fcn.180109730
mov rcx, rsi
call sub.msvcrt.dll_atoi
mov byte [rsp + 0x70], 1
mov dword [r12 + 0x2c], eax
test r14b, r14b
je 0x180107075
or qword [r12 + 0x10], 0x40
mov rsi, qword [rsp + 0x80]
jmp 0x180107087
mov rsi, qword [rsp + 0x80]
jmp 0x180107087
mov rsi, qword [rsp + 0x80]
mov rdi, qword [rdi + 0x50]
test rdi, rdi
jne 0x180106ef0
mov rbp, qword [rsp + 0x78]
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x88]
add rsp, 0x50
pop r13
pop rsi
pop rbx
ret