Function at 0x100127eb0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0xd0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rbx, rcx
mov dword [rsp + 0x44], 1
xor r15d, r15d
mov dword [rsp + 0x40], r15d
xor edx, edx
lea rax, [fcn.100062040]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rcx, [rsp + 0x90]
call fcn.10005b410
nop
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x100127f24
mov r9, rbx
lea r8, [0x100034bc0]
lea edx, [rax + 1]
mov rcx, qword [0x10029b218]
call fcn.100156ed0
mov eax, r15d
mov dword [rsp + 0x4c], eax
nop dword [rax + rax]
inc eax
mov dword [rsp + 0x4c], eax
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x110], r15d
lea r8, [rsp + 0x110]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.1001277c0
mov dword [rsp + 0x48], eax
test eax, eax
jns 0x100127f9b
mov qword [rsp + 0x20], rbx
mov r9d, eax
lea r8, [0x100034c30]
mov edx, 1
mov rcx, qword [0x10029b218]
call fcn.100156ed0
mov dword [rbx + 8], 5
lea rcx, [rsp + 0x90]
call fcn.10005b4f0
xor eax, eax
jmp 0x100128263
mov dword [rbx + 8], 2
lea rsi, [rbx + 0xb8]
mov qword [rsp + 0x88], rsi
mov eax, dword [rsi]
cmp eax, 1
jne 0x100127fc9
mov dword [rbx + 8], 4
mov dword [rsp + 0x44], r15d
jmp 0x1001281b6
mov r8, qword [rbx + 0xb0]
mov rdx, qword [r8 + 0x10]
mov qword [rsp + 0x80], rdx
mov rcx, qword [rbx + 0x18]
mov rax, qword [rcx + 8]
mov qword [rsp + 0x38], rax
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r8
mov r9, rbx
lea r8, [0x100034c90]
mov edx, 4
mov rcx, qword [0x10029b218]
call fcn.100156ed0
mov dword [rbx + 0xc8], r15d
cmp dword [rsp + 0x40], 0
jne 0x100128035
mov dword [rsp + 0x40], 1
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov r14d, dword [rbx + 0x38]
mov dword [rsp + 0x118], r14d
mov dword [rbx + 0xc0], r15d
mov dword [rsp + 0x108], r15d
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
lea rdx, [rsp + 0x108]
call qword [rax + 0x30]
mov edi, eax
mov dword [rsp + 0x48], eax
test eax, eax
js 0x1001280d0
mov eax, dword [rsp + 0x108]
test eax, eax
jne 0x1001280c4
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [rsp + 0x58], eax
test eax, eax
jns 0x1001280a5
mov r9d, eax
lea r8, [0x1000343e0]
mov edx, 4
mov rcx, qword [0x10029b218]
call fcn.100156ed0
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rdx, qword [rbx + 0xb0]
call qword [rax + 0x28]
mov edi, eax
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x108]
test edi, edi
js 0x1001280d0
test eax, eax
je 0x1001281b6
mov qword [rsp + 0x20], rbx
mov r9d, edi
lea r8, [0x100034d60]
mov edx, 4
mov rcx, qword [0x10029b218]
call fcn.100156ed0
cmp edi, 0x80131014
je 0x100128102
cmp dword [rsp + 0x108], 0
je 0x100128112
mov edx, dword [rsp + 0x110]
mov rcx, qword [rbx + 0x40]
call fcn.1001246e0
cmp r14d, dword [rbx + 0x38]
jne 0x100128196
cmp dword [rsp + 0x4c], 2
jae 0x100128165
mov qword [rsp + 0x68], rsi
mov eax, dword [rsi]
cmp eax, 1
je 0x100128161
mov eax, dword [rbx + 0xc0]
test eax, eax
jne 0x100128161
mov eax, dword [rbx + 0xbc]
test eax, eax
jne 0x100128161
mov r9, rbx
lea r8, [0x100034df0]
lea edx, [rax + 3]
mov rcx, qword [0x10029b218]
call fcn.100156ed0
mov eax, dword [rsp + 0x4c]
jmp 0x100127f30
mov edi, dword [rsp + 0x48]
mov qword [rsp + 0x20], rbx
mov r9d, edi
lea r8, [0x100034e60]
mov edx, 1
mov rcx, qword [0x10029b218]
call fcn.100156ed0
mov dword [rbx + 8], 5
mov rcx, rbx
call fcn.100127500
jmp 0x1001281b6
mov dword [rsp + 0x20], edi
mov r9, rbx
lea r8, [0x100034ec0]
mov edx, 3
mov rcx, qword [0x10029b218]
call fcn.100156ed0
nop
lea rcx, [rsp + 0x90]
call fcn.10005b4f0
nop
jmp 0x1001281ce
call fcn.100068a00
mov rsi, rax
mov rdi, qword gs:[0x30]
add rdi, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x1001281f9
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rdi, rdi
je 0x10012820a
mov rax, qword [rdi + 0xd8]
test rax, rax
jne 0x100128241
call fcn.100063d30
call fcn.100068a00
mov rsi, rax
mov rdi, qword gs:[0x30]
add rdi, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x10012823a
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov rax, qword [rdi + 0xd8]
cmp dword [rax + 0x204], 0
je 0x10012824f
call fcn.1000618f0
cmp dword [rsp + 0x40], 0
je 0x10012825f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov eax, dword [rsp + 0x44]
add rsp, 0xd0
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret