Function at 0x1805e90
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rbp, r9
mov qword [rax - 0x50], 0
mov rax, qword [0x039f1180]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1805ee1
lea rsi, [rax + 0x20]
jmp 0x1805ee3
xor esi, esi
mov qword [rsp + 0x38], rsi
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VarBstrFromCy]
mov r12, rax
mov qword [rsp + 0x40], rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov r15, rcx
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
cmp rcx, rax
cmovg r15, rax
mov rcx, qword [rsi + 0x30]
movabs rax, 0xfffffffffffffff
cmp r15, rax
jae 0x1806114
lea rdi, [r15*8]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + SafeArrayCopy]
mov r14, rax
test rax, rax
je 0x1806114
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.MSVCR80.dll_memset
xor edi, edi
xor r13d, r13d
test r15, r15
jle 0x18060c7
mov rbx, qword [rsp + 0xb0]
add rbx, 0xfffffffffffffff8
nop
nop
nop
movzx eax, word [rbp]
cmp eax, 0x20
je 0x1806019
cmp eax, 0x25
je 0x1806019
cmp eax, 0x64
je 0x1805fd8
cmp eax, 0x73
je 0x1805fc7
add rbx, 8
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov edx, 2
call qword [rax + SafeArrayCopy]
mov qword [r14 + rdi*8], rax
test rax, rax
je 0x180602f
mov word [rax], 0
add rdi, 1
jmp 0x1806019
add rbx, 8
mov rax, qword [rbx]
mov qword [r14 + rdi*8], rax
add rdi, 1
jmp 0x1806019
add rbx, 8
movsxd r12, dword [rbx]
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov edx, 0x22
call qword [rax + SafeArrayCopy]
mov qword [r14 + rdi*8], rax
test rax, rax
je 0x1806092
mov r9d, 0xa
lea r8d, [r9 + 7]
mov rdx, rax
mov ecx, r12d
call qword [sym.imp.MSVCR80.dll__itow_s]
test eax, eax
jne 0x1806062
add rdi, 1
add r13, 1
add rbp, 2
cmp r13, r15
jge 0x18060c2
jmp 0x1805f80
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc1030001
call fcn.0124e580
mov edi, eax
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x40]
call qword [rax + 0x78]
mov eax, edi
jmp 0x1806140
lea r8, [0x01806158]
mov edx, 0x20a
lea rcx, [0x01581330]
call fcn.017eea00
mov edi, eax
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x40]
call qword [rax + 0x78]
mov eax, edi
jmp 0x1806140
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc1030001
call fcn.0124e580
mov edi, eax
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x40]
call qword [rax + 0x78]
mov eax, edi
jmp 0x1806140
mov r12, qword [rsp + 0x40]
mov qword [rsp + 0x20], r14
mov r9, rdi
mov r8d, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call fcn.01805140
mov edi, eax
test eax, eax
jns 0x1806103
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + 0x78]
mov eax, edi
jmp 0x1806140
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + 0x78]
mov eax, edi
jmp 0x1806140
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc1030001
call fcn.0124e580
mov edi, eax
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + 0x78]
mov eax, edi
mov rbx, qword [rsp + 0xa8]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret