Function at 0x109c0c0
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
push r12
push r13
push r14
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r13, rcx
xor r14d, r14d
mov qword [rax - 0x28], r14
mov rax, qword [0x039f1180]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x141427c
lea rdi, [rax + 0x20]
jmp 0x109c10b
mov qword [rsp + 0x40], rdi
test rdi, rdi
je 0x109c124
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VarBstrFromCy]
mov qword [rsp + 0x48], rax
test rdi, rdi
je 0x1414284
mov rbx, r14
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x28], r14
mov rsi, qword [rdi + 0x48]
test rsi, rsi
jne 0x124da27
mov dword [rsp + 0x24], r14d
jmp 0x109c14e
test rbx, rbx
jne 0x1222485
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x48]
call qword [rax + 0x78]
mov eax, dword [rsp + 0x24]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
mov r8d, 0x138a
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.0124d7c0
test eax, eax
js 0x14142bb
mov rbx, qword [rsp + 0x78]
cmp r13, qword [rbx + 0x50]
jl 0x14142a6
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rsp + 0x28], r14
lea rsi, [rbx + 0x30]
test rsi, rsi
je 0x1222466
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
cmp qword [rdi + 0x48], 0
je 0x1222477
mov rcx, qword [rdi + 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rdi + 0x48], rsi
mov dword [rsp + 0x24], r14d
jmp 0x124dac2
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
jmp 0x109c157
mov qword [rsp + 0x28], rsi
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
cmp qword [rdi + 0x48], 0
je 0x124da46
mov rcx, qword [rdi + 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rdi + 0x48], r14
mov dword [rsp + 0x24], r14d
mov rax, qword [0x039f11b0]
mov r12, qword [rax + 0x130]
test r12, r12
je 0x141428e
add r12, 0x30
jmp 0x124da6c
test r12, r12
je 0x124da7b
mov rax, qword [r12]
mov rcx, r12
call qword [rax + reloc.WS2_32.dll_htonl]
cmp qword [rdi + 0x48], 0
jne 0x1414296
mov qword [rdi + 0x48], r12
mov dword [rsp + 0x24], r14d
test r13, r13
jg 0x122241c
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rsp + 0x28], r14
cmp qword [rdi + 0x48], 0
je 0x124dab7
mov rcx, qword [rdi + 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rdi + 0x48], r14
mov dword [rsp + 0x24], r14d
jmp 0x124dac2
mov dword [rsp + 0x24], r14d
jmp 0x109c14e
mov rdi, r14
jmp 0x109c10b
mov eax, 0xc1030001
jmp 0x109c16a
mov r12, r14
jmp 0x124da6c
mov rcx, qword [rdi + 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
jmp 0x124da86
lea rcx, [rbx + 0x40]
mov r8b, 1
mov rdx, r13
call fcn.017f38f0
nop
jmp 0x1222446
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rsp + 0x28], r14
cmp qword [rdi + 0x48], 0
je 0x14142da
mov rcx, qword [rdi + 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rdi + 0x48], r14
mov dword [rsp + 0x24], r14d
mov rbx, qword [rsp + 0x78]
jmp 0x124dac2