Function at 0x132a470
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov rsi, rcx
xor r15d, r15d
mov qword [rsp + 0x90], r15
mov rax, qword [0x039f1180]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1410938
lea r14, [rax + 0x20]
jmp 0x132a4c0
mov qword [rsp + 0x90], r14
mov rcx, qword [r14 + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VarBstrFromCy]
mov qword [rsp + 0x98], rax
mov rdi, r15
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.0118c100
nop
mov edx, dword [reloc.OLEAUT32.dll_VariantInit]
and edx, 7
lea rax, [rdx + rdx*2]
lea r8, [0x01173e98]
movzx ecx, byte [r8 + rax*2 + 5]
movzx eax, byte [r8 + rax*2 + 4]
add eax, ecx
cdqe
movabs r9, 0x7fffffffffffffff
mov rcx, r9
sub rcx, rax
shr rcx, 1
sub rcx, 1
cmp rcx, 0x104
jl 0x1410940
lea rax, [rdx + rdx*2]
movzx ecx, byte [r8 + rax*2 + 5]
movzx eax, byte [r8 + rax*2 + 4]
add ecx, eax
movsxd rbx, ecx
add rbx, 0x20a
mov rcx, qword [r14 + 0x30]
cmp rbx, r9
jae 0x1410c1e
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + SafeArrayCopy]
test rax, rax
je 0x1410c1e
mov rcx, qword [r14 + 0x28]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], r15
mov qword [rsp + 0x88], rbx
mov dword [rsp + 0x40], r15d
lea rcx, [rsp + 0x110]
call fcn.0116a950
nop
mov r9, qword [r14 + 0x40]
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x110]
call fcn.0118a2d0
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
js 0x1410986
xor r8d, r8d
lea rdx, [rsp + 0x110]
lea rcx, [rsi - 0x20]
call fcn.0132a380
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
js 0x14109bc
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x80]
test al, al
jne 0x14109f2
nop
mov qword [rsp + 0x108], 0xffffffffffffffff
mov r12, qword [rsi + 0x58]
mov r10, qword [rsp + 0x110]
test r10, r10
je 0x1410a79
movzx eax, byte [r10 - 5]
test al, 0x40
jne 0x1410a71
test al, 0x20
jne 0x1410a71
lea rcx, [rsi - 0x20]
call fcn.0132a290
mov ebx, eax
lea rcx, [rsi - 0x20]
call fcn.0132a250
mov r11d, eax
lea rcx, [rsi - 0x20]
call fcn.0132a220
mov r9d, eax
lea rcx, [rsi - 0x20]
call fcn.0132a1e0
mov r8d, eax
mov qword [rsp + 0x38], 0xffffffffffffffff
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], r11d
mov qword [rsp + 0x20], r12
lea rdx, [rsp + 0x108]
mov rcx, r10
call fcn.0132a150
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
js 0x1410a81
mov rbx, qword [rsp + 0x108]
cmp rbx, 0xffffffffffffffff
je 0x1410ab7
lea rcx, [rsi + 0x50]
mov rdx, rbx
call fcn.0132a750
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
js 0x1410beb
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x80]
test al, al
je 0x132a600
mov ebx, r15d
mov dword [rsp + 0x40], ebx
lea rcx, [rsp + 0x110]
call fcn.0116a920
nop
lea rax, [0x0104ef20]
mov qword [rsp + 0x50], rax
lea rax, [0x0109b930]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
jmp 0x132a714
mov rcx, qword [r14 + 0x30]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x98]
call qword [rax + 0x78]
mov eax, ebx
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov r14, r15
jmp 0x132a4c0
lea r8, [0x01410ca8]
mov edx, 0x766
lea rcx, [0x01580c10]
call fcn.017eea00
mov ebx, eax
mov dword [rsp + 0x40], eax
lea rax, [0x0104ef20]
mov qword [rsp + 0x50], rax
lea rax, [0x0109b930]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
jmp 0x1410c97
lea rcx, [rsp + 0x110]
call fcn.0116a920
nop
lea rax, [0x0104ef20]
mov qword [rsp + 0x50], rax
lea rax, [0x0109b930]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
jmp 0x1410c97
lea rcx, [rsp + 0x110]
call fcn.0116a920
nop
lea rax, [0x0104ef20]
mov qword [rsp + 0x50], rax
lea rax, [0x0109b930]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
jmp 0x1410c97
mov r8, qword [rsp + 0x110]
test r8, r8
je 0x1410a11
movzx eax, byte [r8 - 5]
test al, 0x40
jne 0x1410a0c
test al, 0x20
je 0x1410a14
mov r8, qword [r8]
jmp 0x1410a14
mov r8, r15
mov dword [rsp + 0x108], r15d
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
mov edx, r15d
mov ecx, 0xc1020001
call fcn.0124e580
mov ebx, eax
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x110]
call fcn.0116a920
nop
lea rax, [0x0104ef20]
mov qword [rsp + 0x50], rax
lea rax, [0x0109b930]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
jmp 0x1410c97
mov r10, qword [r10]
jmp 0x132a636
mov r10, r15
jmp 0x132a636
lea rcx, [rsp + 0x110]
call fcn.0116a920
nop
lea rax, [0x0104ef20]
mov qword [rsp + 0x50], rax
lea rax, [0x0109b930]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
jmp 0x1410c97
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x03e490f8], eax
cmp eax, 0x20
je 0x1410ad2
cmp eax, 5
je 0x1410ad2
cmp eax, 0x21
jne 0x1410ae8
add rdi, 1
mov qword [rsp + 0xa0], rdi
cmp rdi, 0xa
jle 0x1410bda
mov r8, qword [rsp + 0x110]
test r8, r8
je 0x1410b07
movzx eax, byte [r8 - 5]
test al, 0x40
jne 0x1410b02
test al, 0x20
je 0x1410b0a
mov r8, qword [r8]
jmp 0x1410b0a
mov r8, r15
lea rdx, [0x0156ec7c]
mov ecx, 0xc1210023
call fcn.017cb700
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x1410b5b
lea rcx, [rsp + 0x110]
call fcn.0116a920
nop
lea rax, [0x0104ef20]
mov qword [rsp + 0x50], rax
lea rax, [0x0109b930]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
jmp 0x1410c97
mov r8, qword [rsp + 0x110]
test r8, r8
je 0x1410b7a
movzx eax, byte [r8 - 5]
test al, 0x40
jne 0x1410b75
test al, 0x20
je 0x1410b7d
mov r8, qword [r8]
jmp 0x1410b7d
mov r8, r15
mov dword [rsp + 0x108], r15d
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
mov edx, r15d
mov ecx, 0xc1020001
call fcn.0124e580
mov ebx, eax
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x110]
call fcn.0116a920
nop
lea rax, [0x0104ef20]
mov qword [rsp + 0x50], rax
lea rax, [0x0109b930]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
jmp 0x1410c97
mov ecx, socket
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
jmp 0x132a6ac
lea rcx, [rsp + 0x110]
call fcn.0116a920
nop
lea rax, [0x0104ef20]
mov qword [rsp + 0x50], rax
lea rax, [0x0109b930]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
jmp 0x1410c97
mov dword [rsp + 0x108], r15d
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
mov ecx, 0xc1030001
call fcn.0124e580
mov ebx, eax
mov dword [rsp + 0x40], eax
lea rax, [0x0104ef20]
mov qword [rsp + 0x50], rax
lea rax, [0x0109b930]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
jmp 0x1410c97
lea rcx, [rsi + 0x50]
call fcn.013f3590
nop
jmp 0x132a714