Function at 0x180115c60
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], r9
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rbp, qword [rax + 0x28]
mov rsi, r9
mov r14, r8
mov r15, rdx
mov rbx, rcx
test rbp, rbp
je 0x1801161a2
mov rdi, qword [rcx + 8]
test rdi, rdi
je 0x1801161a2
mov qword [rax + 8], r12
mov qword [rax + 0x10], r13
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x20]
test byte [rbx + 0x78], 0x40
mov r13d, eax
je 0x180115cd3
lea r9, [0x1800424e8]
mov r8d, 0xbe7
mov rdx, r15
mov rcx, rbx
mov qword [rsp + 0x20], rbp
call fcn.18010c480
test byte [rbx + 0x78], 1
je 0x180115cf6
lea r9, [0x180042518]
mov r8d, 0xbbe
mov rdx, r15
mov rcx, rbx
mov qword [rsp + 0x20], rbp
call fcn.18010c480
test byte [rbx + 0x78], 2
je 0x180115d2e
cmp dword [rdi + 8], 3
jne 0x180115d2e
mov rax, qword [rdi + 0x60]
test rax, rax
je 0x180115d2e
cmp dword [rax + 8], 4
jne 0x180115d2e
lea r9, [0x180042548]
mov r8d, 0xc21
mov rdx, r15
mov rcx, rbx
mov qword [rsp + 0x20], rbp
call fcn.18010c480
mov rax, qword [rsi]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [rax + 0x58]
test byte [rax], 1
jne 0x180115d71
mov rax, qword [rsi]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [rax + 0x58]
test byte [rax], 0x40
jne 0x180115d71
lea r9, [0x180042578]
mov r8d, 0xbde
mov rdx, r15
mov rcx, rbx
mov qword [rsp + 0x20], rbp
call fcn.18010c480
mov rsi, qword [rbx + 8]
mov edx, 0x3a
mov rcx, rbp
mov qword [rsp + 0x30], 0
xor r12b, r12b
call sub.msvcrt.dll_strrchr
test rax, rax
je 0x180115ea5
lea rbp, [rax + 1]
test rbp, rbp
je 0x180115e9d
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x180115e27
mov rdi, qword [rsp + 0xa0]
mov r8, qword [rbx + 0x98]
mov r9b, 1
mov rdx, rdi
mov qword [rsp + 0x20], 0
call fcn.18010e1d0
test rax, rax
je 0x180115e2f
cmp dword [rax + 8], 4
jne 0x180115e2f
mov rsi, qword [rax + 0x68]
mov rcx, rsi
mov rax, qword [rsi]
call qword [rax + 0x20]
cmp dword [rsi + 8], 3
mov r12b, 1
mov r13d, eax
mov qword [rsp + 0x30], rsi
jne 0x180115e4c
mov rax, qword [rsi + 0x60]
test rax, rax
je 0x180115e4c
cmp dword [rax + 8], 4
jne 0x180115e4c
lea r9, [0x1800425d0]
mov r8d, 0xc22
mov rdx, r15
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call fcn.18010c480
jmp 0x180115e4c
mov rdi, qword [rsp + 0xa0]
lea r9, [0x1800425a8]
mov r8d, 0xc1a
mov rdx, r15
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call fcn.18010c480
mov r10, qword [rbx + 0x98]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
lea rdx, [r10 + 0x58]
mov r9, rbp
repne scasb al, byte [rdi]
lea rax, [rsp + 0xa0]
not rcx
mov qword [rsp + 0x20], rax
lea r8, [rcx - 1]
lea rcx, [r10 + 0x78]
call fcn.180222570
test eax, eax
js 0x180115e90
mov rbp, qword [rsp + 0xa0]
jmp 0x180115ea5
mov rdi, qword [rsp + 0xa0]
jmp 0x180116180
mov rbp, qword [rsp + 0xa0]
mov ecx, dword [0x18025e63c]
test ecx, ecx
jns 0x180115eb3
xor eax, eax
jmp 0x180115eb9
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rax + 8]
mov edx, 0x130
mov r8d, 0x10
call fcn.180243b70
test rax, rax
je 0x180116184
mov rcx, rax
call fcn.18010edb0
mov rdi, rax
test rax, rax
je 0x180116184
mov rcx, qword [rbx + 0x98]
mov r9b, 1
mov r8, rbp
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov rdx, rsi
call fcn.18010e580
test eax, eax
js 0x180116180
mov rax, qword [rbx + 0x88]
mov r9, qword [rsp + 0x98]
movabs rcx, 0xfffffffe47bff1ff
mov qword [rdi + 0xa8], rax
mov rax, qword [rbx + 0x78]
mov r8d, 0x200
and rax, rcx
mov rcx, rbx
mov rdx, r15
mov qword [rdi + 0xb8], rax
call fcn.180117880
mov qword [rdi + 0x60], rax
test rax, rax
je 0x180116184
mov qword [rdi + 0xe8], r14
mov rax, qword [r15]
mov qword [rdi + 0x20], rax
mov rax, qword [r15 + 8]
mov qword [rdi + 0x28], rax
mov rax, qword [r15 + 0x10]
mov qword [rdi + 0x30], rax
mov rax, qword [r15 + 0x18]
mov qword [rdi + 0x38], rax
mov rax, qword [r15 + 0x20]
or byte [rdi + 0x98], 0x10
mov qword [rdi + 0x40], rax
mov qword [rdi + 0x110], rsi
mov byte [rdi + 0x129], r12b
cmp r13d, 0xd
jne 0x180115fab
or byte [rdi + 0x128], 8
mov rcx, rdi
call fcn.18010e790
mov eax, dword [rbx + 0x470]
mov dword [rdi + 0x50], eax
inc dword [rbx + 0x470]
mov byte [rbx + 0x46d], 1
mov rax, qword [rdi + 0xa8]
test rax, rax
je 0x180115ffd
lea r9, [0x180042618]
mov r8d, 0xc11
mov rdx, r15
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.18010c480
mov qword [rdi + 0xa8], 0
mov rax, qword [rdi + 0xa8]
test rax, rax
je 0x18011603d
cmp r13d, 0xd
je 0x180116015
cmp r13d, 0xc
jne 0x18011603d
lea r9, [0x180042640]
mov r8d, 0xc11
mov rdx, r15
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.18010c480
mov qword [rdi + 0xa8], 0
mov r8, qword [rdi + 0xa8]
test r8, r8
je 0x1801160e3
xor r11d, r11d
lea r10, [0x1800014b0]
nop word [rax + rax]
mov r9, qword [r10]
mov rax, r8
sub r9, r8
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r9]
sub edx, ecx
jne 0x180116083
inc rax
test ecx, ecx
jne 0x180116070
test edx, edx
je 0x1801160be
inc r11d
add r10, 0x18
cmp r11d, 0x46
jb 0x180116060
mov qword [rsp + 0x20], r8
lea r9, [0x180041520]
mov rdx, r15
mov r8d, 0xc11
mov rcx, rbx
call fcn.18010c480
mov qword [rdi + 0xa8], 0
jmp 0x1801160e3
mov rax, qword [r10]
lea rcx, [rsp + 0x38]
mov qword [rcx], rax
mov rax, qword [r10 + 8]
mov qword [rcx + 8], rax
mov rax, qword [r10 + 0x10]
mov qword [rcx + 0x10], rax
mov eax, dword [rsp + 0x40]
mov dword [rdi + 0xb0], eax
mov rcx, qword [rsp + 0x98]
lea rdx, [rsp + 0xa0]
mov rax, qword [rcx]
call qword [rax + 0x58]
test byte [rax], 1
je 0x18011611b
xor r9d, r9d
mov r8, rdi
mov rdx, r15
mov rcx, rbx
call fcn.180181c10
mov qword [rdi + 0xd0], rax
test rax, rax
je 0x180116184
mov rax, qword [rbx + 8]
mov qword [rdi + 0x80], 0
mov qword [rdi + 0x68], rax
mov rcx, qword [rax + 0x78]
test rcx, rcx
je 0x180116144
mov qword [rcx + 0x80], rdi
mov qword [rax + 0x78], rdi
jmp 0x18011614c
mov qword [rax + 0x70], rdi
mov qword [rax + 0x78], rdi
mov qword [rbx + 8], rdi
mov byte [rbx + 0x46d], 1
movzx eax, byte [rdi + 0xb8]
shr al, 1
test al, 1
jne 0x18011618d
mov r8, qword [rsp + 0x30]
mov r9, rdi
mov rdx, r15
mov rcx, rbx
mov qword [rsp + 0x20], rbp
call fcn.180115b70
test eax, eax
jns 0x18011618d
test eax, eax
je 0x18011618d
mov byte [rbx + 0x468], 1
xor edi, edi
mov r13, qword [rsp + 0x88]
mov r12, qword [rsp + 0x80]
mov rax, rdi
jmp 0x1801161a4
xor eax, eax
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret