Function at 0x17d37f0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0xd8], rbx
mov r15, r8
mov r14, rdx
mov r13, rcx
mov qword [rsp + 0x40], 0
mov rax, qword [0x039f1180]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x17d3841
lea rbp, [rax + 0x20]
jmp 0x17d3843
xor ebp, ebp
mov qword [rsp + 0x40], rbp
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VarBstrFromCy]
mov r12, rax
mov qword [rsp + 0x48], rax
lea rcx, [r13 + 0x1b0]
xor ebx, ebx
mov qword [rsp + 0xe8], rbx
test rcx, rcx
je 0x17d3881
mov rbx, rcx
mov qword [rsp + 0xe8], rcx
call fcn.0109bfe0
nop
add r13, 0x1d8
mov rsi, qword [r13]
cmp rsi, r13
je 0x17d3cc7
nop
nop
nop
lea rdi, [rsi - 0x360]
mov qword [rsp + 0x38], rdi
test rdi, rdi
je 0x17d38bb
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
nop
cmp qword [rdi + 0x3a8], 0
jne 0x17d38ed
lea rcx, [rdi + 0x160]
mov r9, qword [rdi + 0xc8]
lea r8, [rsp + 0xd0]
mov rdx, r14
call fcn.0134b3a0
cmp dword [rsp + 0xd0], 0
je 0x17d3904
mov rsi, qword [rsi]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
cmp rsi, r13
je 0x17d3cc7
jmp 0x17d38a0
cmp qword [rdi + 0x370], 5
jl 0x17d3c92
lea rcx, [rsp + 0x50]
call fcn.0116d180
nop
lea rax, [0x01165c20]
mov qword [rsp + 0x68], rax
lea rsi, [0x01000000]
lea rax, [rsi + 0x4f0d0]
mov qword [rsp + 0x50], rax
lea rax, [0x0109b930]
mov qword [rsp + 0x68], rax
xor r13d, r13d
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x88], r13
lea r15, [0x0104ef20]
mov qword [rsp + 0x50], r15
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 [rsi + rax*2 + 0x173e9d]
movzx eax, byte [rsi + rax*2 + 0x173e9c]
add eax, ecx
cdqe
movabs r8, 0x7fffffffffffffff
mov rcx, r8
sub rcx, rax
shr rcx, 1
sub rcx, 1
cmp rcx, 0x14
jge 0x17d3a3d
lea r8, [0x017d3d08]
mov edx, 0xad8
lea rcx, [0x01580f90]
call fcn.017eea00
mov esi, eax
mov qword [rsp + 0x50], r15
lea rax, [0x0109b930]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
test rbx, rbx
je 0x17d3a29
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + 0x78]
mov eax, esi
jmp 0x17d3ced
lea rax, [rdx + rdx*2]
movzx ecx, byte [rsi + rax*2 + 0x173e9d]
movzx eax, byte [rsi + rax*2 + 0x173e9c]
add ecx, eax
movsxd rsi, ecx
add rsi, 0x2a
mov rcx, qword [rbp + 0x30]
cmp rsi, r8
jae 0x17d3c2e
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + SafeArrayCopy]
mov r11, rax
test rax, rax
je 0x17d3c2e
mov rax, qword [rbp + 0x28]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], r11
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x88], rsi
lea rcx, [rsp + 0xd0]
call fcn.0116a950
nop
mov r9, qword [rbp + 0x40]
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0xd0]
call fcn.0118a2d0
mov esi, eax
test eax, eax
jns 0x17d3b1e
lea rcx, [rsp + 0xd0]
call fcn.0116a920
nop
mov qword [rsp + 0x50], r15
lea rax, [0x0109b930]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
test rbx, rbx
je 0x17d3b0a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + 0x78]
mov eax, esi
jmp 0x17d3ced
xor r8d, r8d
lea edx, [r8 + 5]
lea rcx, [rsp + 0xd0]
call fcn.0132a760
mov esi, eax
test eax, eax
jns 0x17d3b8f
lea rcx, [rsp + 0xd0]
call fcn.0116a920
nop
mov qword [rsp + 0x50], r15
lea rax, [0x0109b930]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
test rbx, rbx
je 0x17d3b7b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + 0x78]
mov eax, esi
jmp 0x17d3ced
mov rdx, qword [r14]
test rdx, rdx
je 0x17d3ba8
movzx eax, byte [rdx - 5]
test al, 0x40
jne 0x17d3ba3
test al, 0x20
je 0x17d3bab
mov rdx, qword [rdx]
jmp 0x17d3bab
mov rdx, r13
mov qword [rsp + 0x28], r13
lea rax, [0x0157e4e0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xd0]
lea r8, [0x0156ea20]
mov ecx, 0xc1020050
call fcn.017f2d60
mov esi, eax
lea rcx, [rsp + 0xd0]
call fcn.0116a920
nop
mov qword [rsp + 0x50], r15
lea rax, [0x0109b930]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
test rbx, rbx
je 0x17d3c1a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + 0x78]
mov eax, esi
jmp 0x17d3ced
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov ecx, 0xc1030001
call fcn.0124e580
mov esi, eax
mov qword [rsp + 0x50], r15
lea rax, [0x0109b930]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
test rbx, rbx
je 0x17d3c81
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + 0x78]
mov eax, esi
jmp 0x17d3ced
add qword [rdi + 0x370], 1
mov qword [r15], rdi
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
test rbx, rbx
je 0x17d3cb6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + 0x78]
xor eax, eax
jmp 0x17d3ced
mov qword [r15], 0
test rbx, rbx
je 0x17d3cdd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rcx, qword [rbp + 0x30]
mov r8, qword [rcx]
mov rdx, r12
call qword [r8 + 0x78]
xor eax, eax
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret