Function at 0x132af50
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0xd0], rbx
mov rbx, r9
mov r14d, r8d
mov rsi, rcx
xor r13d, r13d
mov qword [rsp + 0x40], r13
mov rax, qword [0x039f1180]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x141fe81
lea rdi, [rax + 0x20]
jmp 0x132afa8
mov qword [rsp + 0x40], rdi
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VarBstrFromCy]
mov rbp, rax
mov qword [rsp + 0x48], rax
mov eax, r14d
and eax, 0x10
mov dword [rsp + 0xe0], eax
jne 0x141fe89
xor r15b, r15b
test rbx, rbx
je 0x141fe98
mov qword [rsi + 0x60], rbx
jmp 0x132afe4
mov rcx, qword [rsi + 0x70]
test rcx, rcx
jne 0x141ff3a
mov rcx, qword [rsi + 0x78]
test rcx, rcx
jne 0x141ff4a
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x141ff5a
mov rdx, qword [rax + 0x20]
jmp 0x132b011
mov rcx, qword [rsi + 0x60]
mov rax, qword [rcx]
lea r8, [rsi + 0x70]
call qword [rax + 0x1b8]
mov ebx, eax
test eax, eax
js 0x141ff62
mov rax, qword [rsi + 0x48]
mov rdx, qword [rax + 0x28]
mov r13, qword [rsi + 0x70]
mov qword [r13 + 0x30], rdx
lea rcx, [r13 + 0x38]
xor r8d, r8d
call fcn.01174500
mov ebx, eax
test eax, eax
mov edx, 0
cmovns ebx, edx
mov byte [r13 + 0x40], dl
mov qword [r13 + 0x48], rdx
mov qword [r13 + 0x50], rdx
mov qword [r13 + 0x58], rdx
mov qword [r13 + 0x60], 1
mov rcx, qword [r13 + 0x68]
test rcx, rcx
jne 0x141ff74
mov qword [r13 + 0x68], rdx
test ebx, ebx
js 0x141ff81
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x132b092
mov rdx, qword [rax + 0x28]
xor r8d, r8d
lea rcx, [rsi + 0x50]
call fcn.01174500
mov ebx, eax
test eax, eax
js 0x141ff93
mov dword [rsi + 0x58], r14d
test r15b, r15b
jne 0x141ffa5
mov r9d, 7
xor r8d, r8d
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsi + 0x50]
call fcn.0118a4d0
mov ebx, eax
test eax, eax
mov r15d, 0
cmovns ebx, r15d
test ebx, ebx
js 0x14202ff
mov eax, r14d
and eax, 3
cmp rax, 1
ja 0x1420311
mov edx, 2
mov rcx, rsi
call fcn.01187de0
mov ebx, eax
test eax, eax
js 0x1420388
mov rax, qword [rsi + 0x70]
mov qword [rax + 0x50], 1
mov rax, qword [rsi + 0x70]
mov qword [rax + 0x58], 4
mov rax, qword [rsi + 0x70]
mov qword [rax + 0x60], 8
mov rax, qword [rsi + 0x70]
mov qword [rax + 0x48], 1
mov rcx, qword [rsi + 0x70]
mov rax, qword [rcx + 0x60]
bts rax, 0xd
mov qword [rcx + 0x60], rax
cmp dword [rsp + 0xe0], 0
jne 0x142039a
mov ebx, r15d
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rdi, r13
jmp 0x132afa8
test r14b, 2
je 0x132afd2
mov r15b, 1
jmp 0x141fe98
mov qword [rsp + 0x30], r13
test rsi, rsi
je 0x141feb0
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0xc0]
jmp 0x141feb3
mov rax, r13
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.0168f800
mov ebx, eax
test eax, eax
jns 0x141fef8
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x141fee6
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
jmp 0x132b16b
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x141ff0b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rsi + 0x68]
test rcx, rcx
je 0x141ff1a
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rsi + 0x68], rbx
mov qword [rsi + 0x60], rbx
test rbx, rbx
je 0x132afe4
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
jmp 0x132afe4
mov qword [rsi + 0x70], r13
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
jmp 0x132aff1
mov qword [rsi + 0x78], r13
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
jmp 0x132affe
mov rdx, r13
jmp 0x132b011
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
jmp 0x132b16b
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
xor edx, edx
jmp 0x132b079
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
jmp 0x132b16b
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
jmp 0x132b16b
lea rcx, [rsp + 0x50]
call fcn.0116d180
nop
lea rax, [0x01165c20]
mov qword [rsp + 0x68], rax
lea rbx, [0x01000000]
lea rax, [rbx + 0x4f0d0]
mov qword [rsp + 0x50], rax
lea rax, [0x0109b930]
mov qword [rsp + 0x68], rax
xor r15d, r15d
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r15
mov qword [rsp + 0x80], r15
mov qword [rsp + 0x88], r15
lea rax, [0x0104ef20]
mov qword [rsp + 0x50], rax
lea rax, [0x0109b930]
mov qword [rsp + 0x68], rax
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.0116cfa0
xor edx, edx
lea rcx, [rsp + 0x50]
mov rax, qword [rsp + 0x50]
call qword [rax + 0x180]
nop
mov edx, dword [reloc.OLEAUT32.dll_VariantInit]
and edx, 7
lea rax, [rdx + rdx*2]
movzx ecx, byte [rbx + rax*2 + 0x173e9d]
movzx eax, byte [rbx + rax*2 + 0x173e9c]
add eax, ecx
cdqe
movabs r8, 0x7fffffffffffffff
mov rcx, r8
sub rcx, rax
shr rcx, 1
sub rcx, 1
cmp rcx, 0x104
jge 0x14200bf
lea r8, [0x01420498]
mov edx, 0x198
lea rcx, [0x01583b50]
call fcn.017eea00
mov ebx, 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
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
jmp 0x132b16b
lea rax, [rdx + rdx*2]
movzx ecx, byte [rbx + rax*2 + 0x173e9d]
movzx eax, byte [rbx + rax*2 + 0x173e9c]
add ecx, eax
movsxd rbx, ecx
add rbx, 0x20a
mov rcx, qword [rdi + 0x30]
cmp rbx, r8
jae 0x14202ac
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + SafeArrayCopy]
test rax, rax
je 0x14202ac
mov rcx, qword [rdi + 0x28]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], r15
mov qword [rsp + 0x88], rbx
lea rcx, [rsp + 0x30]
call fcn.0116a950
nop
mov r9, qword [rdi + 0x40]
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x30]
call fcn.0118a2d0
mov ebx, eax
test eax, eax
jns 0x1420183
lea rcx, [rsp + 0x30]
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
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
jmp 0x132b16b
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [0x039f11b0]
call fcn.017ea400
mov ebx, eax
test eax, eax
jns 0x14201ed
lea rcx, [rsp + 0x30]
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
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
jmp 0x132b16b
mov r8, r15
cmp qword [rsi + 0x50], r15
jne 0x142021a
mov rax, qword [rsp + 0x30]
mov cl, byte [rax - 5]
and ecx, 7
lea rdx, [rcx + rcx*2]
lea rcx, [0x01000000]
movzx ecx, byte [rcx + rdx*2 + 0x173e9a]
sub rax, rcx
mov r8, qword [rax]
mov r9d, 7
lea rdx, [rsp + 0x30]
lea rcx, [rsi + 0x50]
call fcn.01174350
mov ebx, eax
test eax, eax
cmovns ebx, r15d
test ebx, ebx
jns 0x142027a
lea rcx, [rsp + 0x30]
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
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
jmp 0x132b16b
lea rcx, [rsp + 0x30]
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
jmp 0x132b0e5
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
mov ecx, 0xc1030001
call fcn.0124e580
mov ebx, 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
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
jmp 0x132b16b
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
jmp 0x132b16b
cmp rax, 3
ja 0x1420371
mov edx, 2
mov rcx, rsi
call fcn.0116e6d0
mov ebx, eax
test eax, eax
jns 0x142033c
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
jmp 0x132b16b
mov rax, qword [rsi + 0x70]
mov qword [rax + 0x50], 1
mov rax, qword [rsi + 0x70]
mov qword [rax + 0x50], 3
mov rax, qword [rsi + 0x70]
mov qword [rax + 0x58], 8
mov rax, qword [rsi + 0x70]
mov qword [rax + 0x48], 3
jmp 0x132b13c
mov ebx, 0x80070057
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
jmp 0x132b16b
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
jmp 0x132b16b
mov rcx, qword [rsi + 0x70]
mov rax, qword [rcx + 0x60]
bts rax, 0xc
mov qword [rcx + 0x60], rax
mov rcx, qword [rsi + 0x60]
mov rax, qword [rcx]
call qword [rax + 0xd8]
cmp eax, 0x3f5
jne 0x132b15b
mov rax, qword [0x039f11b0]
mov rcx, qword [rax + 0x20]
mov rax, qword [rcx]
mov edx, SafeArrayCopy
call qword [rax + SafeArrayCopy]
mov rbx, rax
test rax, rax
jne 0x1420411
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
mov ecx, 0xc1030001
call fcn.0124e580
mov ebx, eax
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
jmp 0x132b16b
mov dword [rax], SafeArrayCopy
mov rcx, qword [0x039f11b0]
call fcn.017cb620
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], r15d
mov rcx, qword [rsi + 0x70]
mov rax, qword [rcx]
call qword [rax + 0xd8]
cmp eax, 0x3f3
je 0x142046b
lea r8, [0x01420498]
mov edx, 0x1d5
lea rcx, [0x01583b50]
call fcn.017eea00
mov ebx, eax
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
jmp 0x132b16b
mov rdx, rbx
mov rcx, qword [rsi + 0x70]
call fcn.01874b20
mov ebx, eax
test eax, eax
jns 0x132b15b
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x78]
jmp 0x132b16b