Function at 0x100081960
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rbp, rdx
mov rsi, rcx
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x1000819b0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x1000819c1
mov rax, qword [rbx + 0xd8]
test rax, rax
jne 0x1000819f8
call fcn.100063d30
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x1000819f1
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rax, qword [rbx + 0xd8]
mov edi, dword [rax + 0x7c]
call fcn.10006b940
xor r14d, r14d
test eax, eax
jne 0x100081a0d
movzx r12d, r14w
jmp 0x100081a19
mov ecx, edi
call fcn.10006be50
movzx r12d, word [rax + 2]
call fcn.10006add0
movzx edx, r12w
mov rcx, rax
call fcn.100082130
mov r8, qword [rsi]
mov rdx, rbp
mov rcx, rsi
mov qword [rsp + 0x50], rax
call qword [rreloc.WS2_32.dll_htonl + 8]
mov rbx, rbp
mov qword [rsp + 0xb0], rbp
mov r13, rax
test rax, rax
je 0x100081a86
mov rsi, qword [rax + 0x38]
test rsi, rsi
je 0x100081a5e
mov rsi, qword [rsi + 0x18]
jmp 0x100081a66
mov rax, qword [rax + 0x40]
mov rsi, qword [rax + 0x28]
call fcn.10006af20
mov r11d, eax
cmp rsi, r11
jbe 0x100081a8e
call fcn.10006af20
mov rbx, rsi
mov r11d, eax
sub rbx, r11
add rbx, rbp
jmp 0x100081a8e
mov rsi, qword [rsp + 0xb8]
lea rcx, [0x100251800]
mov edx, edi
call fcn.10007cf20
mov r15, rax
test rax, rax
je 0x100081d57
lea rcx, [0x100253900]
mov edx, edi
call fcn.10007e580
mov rbp, rax
test rax, rax
je 0x100081d48
lea rcx, [0x10024f700]
mov edx, edi
call fcn.1000791d0
mov r14, rax
test rax, rax
je 0x100081d35
mov edx, dword [rsp + 0xc0]
dec edx
je 0x100081af9
dec edx
je 0x100081af2
mov edi, 0x2000
jmp 0x100081b21
mov edi, 0x402000
jmp 0x100081b21
call fcn.100068410
xor edx, edx
mov edi, 0x20001000
mov rcx, qword [rax]
lea rax, [rcx - 1]
add rax, rbx
div rcx
mov rbx, rax
imul rbx, rcx
mov qword [rsp + 0xb0], rbx
cmp rbx, qword [rsp + 0xb8]
jae 0x100081b52
lea r8, [0x1004df0e8]
lea rdx, [0x1004df148]
mov r9d, 0x364f
mov ecx, 1
mov qword [rsp + 0x20], 0
call fcn.1001522c0
mov rcx, qword [rsp + 0x50]
xor eax, eax
mov r9d, edi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov r8, rbx
xor edx, edx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 4
call fcn.100086db0
mov rdi, rax
test rax, rax
je 0x100081d26
mov qword [r14 + 0x10], rax
mov qword [r14 + 0x18], rbx
test r13, r13
je 0x100081bb0
dec rax
xor edx, edx
add rax, rsi
div rsi
mov rdi, rax
imul rdi, rsi
mov r8d, dword [rsp + 0xc0]
mov rsi, qword [rsp + 0xb0]
mov rdx, rdi
mov dword [rsp + 0x20], r8d
mov r8, r14
mov r9, rsi
mov rcx, rbp
call fcn.100078d70
test eax, eax
je 0x100081cf9
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call fcn.100080fe0
test eax, eax
je 0x100081ccd
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rsi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x100081c1f
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x100081c30
mov rax, qword [rbx + 0xd8]
test rax, rax
jne 0x100081c67
call fcn.100063d30
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rsi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x100081c60
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rax, qword [rbx + 0xd8]
mov eax, dword [rax + 0x7c]
mov r9, rbp
mov r8, r13
mov rdx, rdi
mov rcx, r15
mov word [rsp + 0x28], r12w
mov dword [rsp + 0x20], eax
call fcn.100077610
mov rax, qword [rsp + 0xb8]
mov edx, 1
mov qword [r15 + 0x40], rax
lea r8d, [rdx + 4]
call fcn.100078bf0
mov rcx, r15
call fcn.100080850
mov rax, qword [rsp + 0xd0]
mov r11, qword [rsp + 0xc8]
mov rdx, qword [rsp + 0xb0]
mov qword [r11], r15
mov qword [rax], rdx
mov rax, rdi
jmp 0x100081d64
xor r13d, r13d
movzx r9d, r12w
mov r8, rbp
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x28], r13d
mov word [rsp + 0x20], r12w
call fcn.100081370
jmp 0x100081cfc
xor r13d, r13d
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rbx
call fcn.100086c00
lea rcx, [0x10024f700]
mov rdx, r14
call fcn.100079400
mov rdx, qword [rsp + 0xb0]
mov rcx, rbp
call fcn.100078e90
xor r14d, r14d
lea rcx, [0x100251800]
mov rdx, r15
call fcn.10007d150
mov rax, qword [rsp + 0xd0]
mov qword [rax], r14
xor eax, eax
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret