Function at 0x124e580
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov r15d, edx
mov r12d, ecx
test edx, edx
jne 0x124e5c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
xor r14d, r14d
mov qword [rsp + 0x68], r14
mov rcx, qword [0x039f1180]
mov ecx, dword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1413d55
lea rsi, [rax + 0x20]
jmp 0x124e5e7
mov qword [rsp + 0x68], rsi
test rsi, rsi
je 0x124e600
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VarBstrFromCy]
mov qword [rsp + 0x70], rax
test rsi, rsi
je 0x1413d5d
mov rdi, r14
mov qword [rsp + 0x48], r14
mov r13, r14
mov qword [rsp + 0x60], r14
mov rax, qword [0x039f11b0]
cmp byte [rax + 0xb98], 0
jne 0x1413d67
mov rcx, qword [rsi + 0x48]
test rcx, rcx
je 0x124e665
mov r13, rcx
mov qword [rsp + 0x60], rcx
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
cmp qword [rsi + 0x48], 0
je 0x124e655
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rsi + 0x48], r14
mov dword [rsp + 0x40], r14d
mov rax, qword [0x039f11b0]
mov rbx, qword [rax + 0x130]
test rbx, rbx
je 0x1413db5
add rbx, 0x30
jmp 0x124e67b
test rbx, rbx
je 0x124e689
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
cmp qword [rsi + 0x48], 0
jne 0x1413dbd
mov qword [rsi + 0x48], rbx
mov dword [rsp + 0x40], r14d
test r13, r13
je 0x124f0ae
mov r8d, 0x138a
mov rdx, r13
lea rcx, [rsp + 0x48]
call fcn.0124d7c0
test eax, eax
js 0x124f0ae
mov rax, qword [r13]
mov rcx, r13
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov r13, r14
mov qword [rsp + 0x60], r14
mov rdi, qword [rsp + 0x48]
mov rcx, qword [rdi + 0x18]
movzx eax, cl
shr al, 1
test al, 1
jne 0x1413e21
mov r14, qword [rsp + 0xf0]
bt r14, 0x1e
jb 0x1413dcd
mov rax, qword [rdi]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [rax + 0x1b8]
mov r12d, eax
mov dword [rsp + 0x40], eax
test eax, eax
js 0x1413ddc
mov rax, qword [rsp + 0x50]
movzx ecx, byte [rax + 0x18]
shr cl, 1
test cl, 1
jne 0x1413de1
xor eax, eax
mov qword [rsp + 0x50], rax
mov r9, qword [rdi + 0x38]
test r9, r9
je 0x1413e8c
cmp dword [r9 + 8], 1
jne 0x1413e8c
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.0124e2c0
mov r12d, eax
jmp 0x124e771
mov dword [rsp + 0x40], r12d
test r12d, r12d
js 0x1413ead
bt r14, 0x1c
jae 0x1413ed7
mov rax, qword [rdi]
mov rbx, qword [rsp + 0x50]
mov rdx, rbx
mov rcx, rdi
call qword [rax + 0x1b0]
mov r12d, eax
mov dword [rsp + 0x40], eax
test eax, eax
js 0x1413ec3
xor edx, edx
mov rcx, rbx
call fcn.0124e920
mov r12d, eax
mov dword [rsp + 0x40], eax
test eax, eax
js 0x1413f0e
bt r14, 0x1d
jb 0x124e866
xor r12d, r12d
mov qword [rsp + 0x58], r12
lea rdx, [rsp + 0x58]
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SetErrorInfo]
test eax, eax
js 0x1413f22
mov r10, qword [rbx]
mov rax, r14
and rax, 0xfffffffffffffffe
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xe0]
mov r8d, dword [rsp + 0xd8]
mov edx, dword [rsp + 0xd0]
mov rcx, rbx
call qword [r10 + 0x1c0]
mov r9d, r15d
mov r8, r14
mov rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.0124e0f0
mov r12d, eax
mov dword [rsp + 0x40], eax
test eax, eax
js 0x1413f40
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jne 0x1413f4f
bt r14, 0x1e
jb 0x1413f63
test r13, r13
jne 0x1413f8e
xor r14d, r14d
cmp qword [rsi + 0x48], 0
je 0x124e883
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
push rax
invalid
mov qword [rsi + 0x48], r14
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x40], esi
lea r12, [rdi + 0x30]
test r12, r12
je 0x124e89f
mov rax, qword [r12]
mov rcx, r12
call qword [rax + reloc.WS2_32.dll_htonl]
push rax
invalid
cmp qword [rsi + 0x48], 0
jne 0x1413fa8
mov qword [rsi + 0x48], r12
mov dword [rsp + 0x40], r14d
mov r12d, dword [rsp + 0xd0]
mov dword [rsp + 0x40], r12d
test rbx, rbx
je 0x124e8cf
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
jmp 0x124e8d1
test r13, r13
jne 0x1413fea
test rdi, rdi
je 0x124e8e9
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x70]
call qword [rax + 0x78]
mov eax, r12d
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov rax, qword [0x039f11b0]
mov rbx, qword [rax + 0x130]
test rbx, rbx
je 0x1413e56
add rbx, 0x30
jmp 0x124f0cb
test rbx, rbx
je 0x124f0d9
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
cmp qword [rsi + 0x48], 0
je 0x124f0ea
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rsi + 0x48], rbx
mov dword [rsp + 0x40], r14d
cmp dword [rsi + 8], 1
jne 0x1413e5e
mov qword [rsp + 0x30], r14
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], r14
mov r9, rsi
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.0124f150
mov r12d, eax
jmp 0x124f123
mov dword [rsp + 0x40], r12d
test r12d, r12d
js 0x1413e82
mov r14, qword [rsp + 0xf0]
mov rdi, qword [rsp + 0x48]
jmp 0x124e730
mov rsi, r14
jmp 0x124e5e7
mov eax, 0xc1030001
jmp 0x124e8fb
cmp qword [rsi + 0x48], 0
jne 0x1413dab
mov rbx, qword [rax + 0x130]
test rbx, rbx
je 0x1413d80
add rbx, 0x30
jmp 0x1413d83
mov rbx, r14
test rbx, rbx
je 0x1413d91
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
cmp qword [rsi + 0x48], 0
je 0x1413da2
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rsi + 0x48], rbx
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x40], r12d
jmp 0x124e8da
mov rbx, r14
jmp 0x124e67b
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
jmp 0x124e694
shr rcx, 0x1e
test cl, 1
je 0x124e6fc
jmp 0x1413e1e
jmp 0x124e8da
lea rbx, [rdi + 0x30]
test rbx, rbx
je 0x1413df3
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
cmp qword [rsi + 0x48], r13
je 0x1413e03
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rsi + 0x48], rbx
mov dword [rsp + 0x40], r13d
mov r12d, dword [rsp + 0xd0]
mov dword [rsp + 0x40], r12d
jmp 0x124e8da
xor r14d, r14d
lea rbx, [rdi + 0x30]
test rbx, rbx
je 0x1413e33
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
cmp qword [rsi + 0x48], r13
je 0x1413e43
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rsi + 0x48], rbx
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x40], r12d
jmp 0x124e8da
mov rbx, r14
jmp 0x124f0cb
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
mov r9, rsi
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.017eb630
mov r12d, eax
jmp 0x124f123
mov rdi, qword [rsp + 0x48]
jmp 0x124e8d1
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.01785ec0
mov r12d, eax
jmp 0x124e771
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1413ebe
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
jmp 0x124e8d1
test rbx, rbx
je 0x1413ed2
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
jmp 0x124e8d1
mov rax, qword [rdi]
mov rbx, qword [rsp + 0x50]
mov rdx, rbx
mov rcx, rdi
call qword [rax + 0x1a8]
mov r12d, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x124e7ad
test rbx, rbx
je 0x1413f09
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
jmp 0x124e8d1
test rbx, rbx
je 0x1413f1d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
jmp 0x124e8d1
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x124e7ee
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rsp + 0x58], r12
jmp 0x124e7ee
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
jmp 0x124e8d1
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rsp + 0x58], 0
jmp 0x124e85b
mov edx, 0x40000000
mov rcx, rdi
call fcn.0116e6d0
mov r12d, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x124e866
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
jmp 0x124e8d1
mov rax, qword [r13]
mov rcx, r13
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
xor r14d, r14d
mov r13, r14
mov qword [rsp + 0x60], r14
jmp 0x124e872
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
jmp 0x124e8aa
mov rax, qword [r13]
mov rcx, r13
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
jmp 0x124e8da