Function at 0x123ad00
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 + 0xd0], rbx
mov r12d, edx
mov rsi, rcx
xor r15d, r15d
mov qword [rsp + 0x38], r15
mov rax, qword [0x039f1180]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x154b408
lea rbp, [rax + 0x20]
jmp 0x123ad51
mov qword [rsp + 0x38], rbp
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VarBstrFromCy]
mov r13, rax
mov qword [rsp + 0x40], rax
test byte [0x039f5300], 2
je 0x124f752
cmp byte [rsi + 0x258], 0
je 0x124f752
mov rcx, qword [0x039f1188]
test rcx, rcx
je 0x124f752
mov ecx, dword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x124f752
mov qword [rsp + 0xe0], r15
lea rdx, [rsp + 0xe0]
lea r14, [0x039f5200]
mov rcx, r14
call fcn.01284cb0
mov ebx, eax
mov r8d, 1
test eax, eax
js 0x123adde
mov rax, qword [rsp + 0xe0]
mov dword [rax + 0x10], r8d
mov ebx, r15d
test ebx, ebx
js 0x154b410
mov rdi, qword [rsp + 0xe0]
mov r9, qword [rsi + 0x220]
test r9, r9
jle 0x123ae3b
mov edx, dword [rdi + 0x10]
lea eax, [rdx - 0xfffa]
cmp eax, 4
jbe 0x123ae31
movzx eax, dl
add al, al
mov ecx, 3
sub cl, al
and cl, 7
imul edx, edx, 0x2e
lea eax, [rdx + 3]
shr rax, 3
movzx edx, byte [rax + r14 + 0x10d]
shr dl, cl
test r8b, dl
je 0x123ae3b
mov word [rdi + 0x60], socket
mov qword [rdi + 0x68], r9
mov r9d, dword [rsi + 0x200]
mov edx, dword [rdi + 0x10]
lea eax, [rdx - 0xfffa]
cmp eax, 4
jbe 0x123ae7a
movzx eax, dl
add al, al
sub r8b, al
and r8b, 7
imul edx, edx, 0x2e
lea eax, [rdx + 0x19]
shr rax, 3
movzx edx, byte [rax + r14 + 0x10d]
movzx ecx, r8b
shr dl, cl
test dl, 1
je 0x123ae8a
mov word [rdi + 0x270], 3
mov dword [rdi + 0x278], r9d
mov edx, dword [rdi + 0x10]
lea eax, [rdx - 0xfffa]
cmp eax, 4
jbe 0x123aec1
movzx eax, dl
add al, al
mov ecx, 0xff
sub cl, al
and cl, 7
imul edx, edx, 0x2e
lea eax, [rdx + 0x17]
shr rax, 3
movzx edx, byte [rax + r14 + 0x10d]
shr dl, cl
test dl, 1
je 0x123aed9
mov word [rdi + 0x240], 3
mov eax, r15d
test r12d, r12d
setns al
mov dword [rdi + 0x248], eax
mov edx, dword [rdi + 0x10]
lea eax, [rdx - 0xfffa]
cmp eax, 4
jbe 0x154b431
mov ecx, edx
imul ecx, ecx, 0x2e
add ecx, 0x18
shr rcx, 3
mov al, 0xfe
imul dl
and al, 7
movzx edx, byte [rcx + r14 + 0x10d]
movzx ecx, al
shr dl, cl
test dl, 1
jne 0x154b431
mov edx, r12d
mov rcx, qword [0x039f11b0]
call fcn.01348f30
mov r11d, eax
mov r8d, dword [rdi + 0x10]
lea ecx, [r8 - 0xfffa]
cmp ecx, 4
jbe 0x154b446
mov edx, r8d
imul edx, edx, 0x2e
add edx, 0x16
shr rdx, 3
add r8b, 1
mov al, 0xfe
imul r8b
and al, 7
movzx edx, byte [rdx + r14 + 0x10d]
movzx ecx, al
shr dl, cl
test dl, 1
jne 0x154b446
test r12d, r12d
js 0x154b45b
mov byte [rsi + 0x259], 1
mov rax, qword [rsi]
mov rdx, rdi
mov rcx, rsi
call qword [rax + 0x200]
mov ebx, eax
test eax, eax
js 0x154b750
mov rdx, qword [rsp + 0xe0]
mov rcx, r14
call fcn.01284d30
mov ebx, eax
mov rax, qword [rsp + 0xe0]
test ebx, ebx
cmovns rax, r15
mov qword [rsp + 0xe0], rax
test ebx, ebx
js 0x154b771
mov byte [rsi + 0x258], 0
mov ebx, r15d
mov rdx, qword [rsp + 0xe0]
test rdx, rdx
jne 0x154b792
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
mov rdx, r13
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 ebx, r15d
jmp 0x123afdd
mov rbp, r15
jmp 0x123ad51
mov rdx, qword [rsp + 0xe0]
test rdx, rdx
je 0x123afdd
xor r8d, r8d
mov rcx, r14
call fcn.012845f0
jmp 0x123afdd
mov word [rdi + 0x258], 3
mov dword [rdi + 0x260], r12d
jmp 0x123af14
mov word [rdi + 0x228], 3
mov dword [rdi + 0x230], r11d
jmp 0x123af69
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, 0xc8
jge 0x154b50d
lea r8, [0x0154b7b0]
mov edx, 0x61
lea rcx, [0x015a2db0]
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 rdx, qword [rsp + 0xe0]
test rdx, rdx
je 0x123afdd
xor r8d, r8d
mov rcx, r14
call fcn.012845f0
jmp 0x123afdd
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, 0x192
mov rcx, qword [rbp + 0x30]
cmp rbx, r9
jae 0x154b6ee
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + SafeArrayCopy]
test rax, rax
je 0x154b6ee
mov rcx, qword [rbp + 0x28]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], r15
mov qword [rsp + 0x88], rbx
lea rcx, [rsp + 0xe8]
call fcn.0116a950
nop
mov r9, qword [rbp + 0x40]
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0xe8]
call fcn.0118a2d0
mov ebx, eax
test eax, eax
jns 0x154b5e5
lea rcx, [rsp + 0xe8]
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 rdx, qword [rsp + 0xe0]
test rdx, rdx
je 0x123afdd
xor r8d, r8d
mov rcx, r14
call fcn.012845f0
jmp 0x123afdd
xor edx, edx
lea rcx, [rsp + 0xe8]
call fcn.01804d70
mov ebx, eax
test eax, eax
jns 0x154b64c
lea rcx, [rsp + 0xe8]
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 rdx, qword [rsp + 0xe0]
test rdx, rdx
je 0x123afdd
xor r8d, r8d
mov rcx, r14
call fcn.012845f0
jmp 0x123afdd
lea r8, [rsp + 0xe8]
mov edx, VarNumFromParseNum
mov rcx, rdi
call fcn.012847d0
mov ebx, eax
test eax, eax
jns 0x154b6b9
lea rcx, [rsp + 0xe8]
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 rdx, qword [rsp + 0xe0]
test rdx, rdx
je 0x123afdd
xor r8d, r8d
mov rcx, r14
call fcn.012845f0
jmp 0x123afdd
lea rcx, [rsp + 0xe8]
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 0x123af79
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 rdx, qword [rsp + 0xe0]
test rdx, rdx
je 0x123afdd
xor r8d, r8d
mov rcx, r14
call fcn.012845f0
jmp 0x123afdd
mov rdx, qword [rsp + 0xe0]
test rdx, rdx
je 0x123afdd
xor r8d, r8d
mov rcx, r14
call fcn.012845f0
jmp 0x123afdd
mov rdx, qword [rsp + 0xe0]
test rdx, rdx
je 0x123afdd
xor r8d, r8d
mov rcx, r14
call fcn.012845f0
jmp 0x123afdd
xor r8d, r8d
mov rcx, r14
call fcn.012845f0
jmp 0x123afdd