Function at 0x1798e90
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x290
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x039f1190]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r12, r8
mov rbp, rdx
mov rbx, rcx
mov qword [rsp + 0x50], 0
mov rax, qword [0x039f1180]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1798ee6
lea rdi, [rax + 0x20]
jmp 0x1798ee8
xor edi, edi
mov qword [rsp + 0x50], rdi
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VarBstrFromCy]
mov rsi, rax
mov qword [rsp + 0x58], rax
mov word [rsp + 0x70], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x72]
call sub.MSVCR80.dll_memset
test rbx, rbx
jne 0x1798f4a
lea r8, [0x01799300]
mov edx, 0x1fb
lea rcx, [0x015804b0]
call fcn.017eea00
mov ebx, eax
mov rcx, qword [rdi + 0x30]
mov r8, qword [rcx]
mov rdx, rsi
call qword [r8 + 0x78]
jmp 0x17992de
mov r8d, 0x104
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1798f91
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc1010000
call fcn.0124e580
mov ebx, eax
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x17992de
lea rcx, [rsp + 0x30]
call fcn.0116a950
nop
lea rcx, [rsp + 0x48]
call fcn.0116a950
nop
lea rcx, [rsp + 0x40]
call fcn.0116a950
nop
lea rcx, [rsp + 0x38]
call fcn.0116a950
nop
xor r8d, r8d
mov rdx, qword [rdi + 0x28]
lea rcx, [rsp + 0x30]
call fcn.01174500
mov ebx, eax
test eax, eax
jns 0x1799012
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
lea rcx, [rsp + 0x40]
call fcn.0116a920
nop
lea rcx, [rsp + 0x48]
call fcn.0116a920
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x17992de
xor r8d, r8d
mov rdx, qword [rdi + 0x28]
lea rcx, [rsp + 0x48]
call fcn.01174500
mov ebx, eax
test eax, eax
jns 0x1799067
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
lea rcx, [rsp + 0x40]
call fcn.0116a920
nop
lea rcx, [rsp + 0x48]
call fcn.0116a920
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x17992de
xor r8d, r8d
mov rdx, qword [rdi + 0x28]
lea rcx, [rsp + 0x40]
call fcn.01174500
mov ebx, eax
test eax, eax
jns 0x17990bc
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
lea rcx, [rsp + 0x40]
call fcn.0116a920
nop
lea rcx, [rsp + 0x48]
call fcn.0116a920
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x17992de
xor r8d, r8d
mov rdx, qword [rdi + 0x28]
lea rcx, [rsp + 0x38]
call fcn.01174500
mov ebx, eax
test eax, eax
jns 0x1799111
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
lea rcx, [rsp + 0x40]
call fcn.0116a920
nop
lea rcx, [rsp + 0x48]
call fcn.0116a920
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x17992de
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.0122c660
mov ebx, eax
test eax, eax
jns 0x1799175
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
lea rcx, [rsp + 0x40]
call fcn.0116a920
nop
lea rcx, [rsp + 0x48]
call fcn.0116a920
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x17992de
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call fcn.0122c660
mov ebx, eax
test eax, eax
jns 0x17991d5
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
lea rcx, [rsp + 0x40]
call fcn.0116a920
nop
lea rcx, [rsp + 0x48]
call fcn.0116a920
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x17992de
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x17991f2
movzx ecx, byte [rax - 5]
test cl, 0x40
jne 0x17991ed
test cl, 0x20
je 0x17991f4
mov rax, qword [rax]
jmp 0x17991f4
xor eax, eax
mov r9, qword [rsp + 0x40]
test r9, r9
je 0x1799212
movzx ecx, byte [r9 - 5]
test cl, 0x40
jne 0x179920d
test cl, 0x20
je 0x1799215
mov r9, qword [r9]
jmp 0x1799215
xor r9d, r9d
mov r8, qword [rsp + 0x48]
test r8, r8
je 0x1799233
movzx ecx, byte [r8 - 5]
test cl, 0x40
jne 0x179922e
test cl, 0x20
je 0x1799236
mov r8, qword [r8]
jmp 0x1799236
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x1799253
movzx ecx, byte [rdx - 5]
test cl, 0x40
jne 0x179924e
test cl, 0x20
je 0x1799255
mov rdx, qword [rdx]
jmp 0x1799255
xor edx, edx
mov qword [rsp + 0x20], rax
mov rcx, r12
call fcn.0122c810
mov ebx, eax
test eax, eax
jns 0x17992a3
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
lea rcx, [rsp + 0x40]
call fcn.0116a920
nop
lea rcx, [rsp + 0x48]
call fcn.0116a920
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x17992de
xor ebx, ebx
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
lea rcx, [rsp + 0x40]
call fcn.0116a920
nop
lea rcx, [rsp + 0x48]
call fcn.0116a920
nop
lea rcx, [rsp + 0x30]
call fcn.0116a920
nop
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.01003340
add rsp, 0x290
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret