Function at 0x17980f0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x290
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x039f1190]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbp, r8
mov r12, rdx
mov rbx, rcx
mov qword [rsp + 0x58], 0
mov rax, qword [0x039f1180]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1798146
lea rdi, [rax + 0x20]
jmp 0x1798148
xor edi, edi
mov qword [rsp + 0x58], rdi
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VarBstrFromCy]
mov rsi, rax
mov qword [rsp + 0x60], 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 0x17981aa
lea r8, [0x017986b8]
mov edx, 0x1bf
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 0x1798695
mov r8d, 0x104
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x17981f1
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 0x1798695
lea rcx, [rsp + 0x38]
call fcn.0116a950
nop
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 + 0x50]
call fcn.0116a950
nop
xor r8d, r8d
mov rdx, qword [rdi + 0x28]
lea rcx, [rsp + 0x38]
call fcn.01174500
mov ebx, eax
test eax, eax
jns 0x1798288
lea rcx, [rsp + 0x50]
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
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x1798695
xor r8d, r8d
mov rdx, qword [rdi + 0x28]
lea rcx, [rsp + 0x30]
call fcn.01174500
mov ebx, eax
test eax, eax
jns 0x17982e8
lea rcx, [rsp + 0x50]
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
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x1798695
xor r8d, r8d
mov rdx, qword [rdi + 0x28]
lea rcx, [rsp + 0x48]
call fcn.01174500
mov ebx, eax
test eax, eax
jns 0x1798348
lea rcx, [rsp + 0x50]
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
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x1798695
xor r8d, r8d
mov rdx, qword [rdi + 0x28]
lea rcx, [rsp + 0x40]
call fcn.01174500
mov ebx, eax
test eax, eax
jns 0x17983a8
lea rcx, [rsp + 0x50]
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
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x1798695
xor r8d, r8d
mov rdx, qword [rdi + 0x28]
lea rcx, [rsp + 0x50]
call fcn.01174500
mov ebx, eax
test eax, eax
jns 0x1798408
lea rcx, [rsp + 0x50]
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
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x1798695
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 0x1798477
lea rcx, [rsp + 0x50]
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
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x1798695
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov rcx, r12
call fcn.0122c660
mov ebx, eax
test eax, eax
jns 0x17984e2
lea rcx, [rsp + 0x50]
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
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x1798695
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x17984ff
movzx ecx, byte [rax - 5]
test cl, 0x40
jne 0x17984fa
test cl, 0x20
je 0x1798501
mov rax, qword [rax]
jmp 0x1798501
xor eax, eax
mov r9, qword [rsp + 0x40]
test r9, r9
je 0x179851f
movzx ecx, byte [r9 - 5]
test cl, 0x40
jne 0x179851a
test cl, 0x20
je 0x1798522
mov r9, qword [r9]
jmp 0x1798522
xor r9d, r9d
mov r8, qword [rsp + 0x48]
test r8, r8
je 0x1798540
movzx ecx, byte [r8 - 5]
test cl, 0x40
jne 0x179853b
test cl, 0x20
je 0x1798543
mov r8, qword [r8]
jmp 0x1798543
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x1798560
movzx ecx, byte [rdx - 5]
test cl, 0x40
jne 0x179855b
test cl, 0x20
je 0x1798562
mov rdx, qword [rdx]
jmp 0x1798562
xor edx, edx
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x38]
call fcn.0122c810
mov ebx, eax
test eax, eax
jns 0x17985c0
lea rcx, [rsp + 0x50]
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
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x1798695
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x17985db
movzx eax, byte [rcx - 5]
test al, 0x40
jne 0x17985d6
test al, 0x20
je 0x17985dd
mov rcx, qword [rcx]
jmp 0x17985dd
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbp], rax
test rax, rax
jne 0x179864f
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
mov r8, r12
xor edx, edx
mov ecx, 0xc1010001
call fcn.0124e580
mov ebx, eax
lea rcx, [rsp + 0x50]
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
lea rcx, [rsp + 0x38]
call fcn.0116a920
nop
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x1798695
xor ebx, ebx
lea rcx, [rsp + 0x50]
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
lea rcx, [rsp + 0x38]
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