Function at 0x15c4ed0
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
push r12
sub rsp, 0x270
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x039f1190]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov r12, rcx
mov qword [rsp + 0x38], 0
mov rax, qword [0x039f1180]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x15c4f2e
lea rdi, [rax + 0x20]
jmp 0x15c4f30
xor edi, edi
mov qword [rsp + 0x38], rdi
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VarBstrFromCy]
mov rsi, rax
mov qword [rsp + 0x40], rax
mov rcx, qword [0x039f11b0]
cmp byte [rcx + 0xbb4], 0
je 0x15c4f6f
mov rcx, qword [rdi + 0x30]
mov r8, qword [rcx]
mov rdx, rax
call qword [r8 + 0x78]
mov eax, 1
jmp 0x15c5153
mov qword [rsp + 0x30], 0
lea rcx, [0x015c5188]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x15c4fff
mov word [rsp + 0x50], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x52]
call sub.MSVCR80.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, eax
mov word [rsp + 0x256], 0
test eax, eax
je 0x15c4fe8
cmp eax, 0x104
je 0x15c4fe8
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x30], rax
jmp 0x15c5025
mov ebx, 0xc1010000
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x15c5151
mov rax, qword [0x039f11b0]
lea r8, [rsp + 0x30]
lea rdx, [0x015c5188]
mov rcx, qword [rax + 0x1e8]
call fcn.017980f0
mov ebx, eax
mov rax, qword [rsp + 0x30]
test ebx, ebx
js 0x15c511d
test rax, rax
je 0x15c511d
lea rdx, [0x015c51a8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rax, rax
jne 0x15c506d
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc1010000
call fcn.0124e580
mov ebx, eax
jmp 0x15c506f
xor ebx, ebx
test ebx, ebx
jns 0x15c50af
cmp byte [r12 + 8], 0
je 0x15c509d
mov rax, qword [0x039f11b0]
mov byte [rax + 0xbb4], 1
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
xor eax, eax
jmp 0x15c5153
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x15c5151
test rbp, rbp
je 0x15c50bf
mov rcx, qword [0x039f11b0]
call rbp
mov ebx, eax
test ebx, ebx
jns 0x15c50f9
cmp byte [r12 + 8], 0
je 0x15c50ea
mov rax, qword [0x039f11b0]
mov byte [rax + 0xbb4], 1
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
xor eax, eax
jmp 0x15c5153
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
jmp 0x15c5151
mov rcx, qword [rsp + 0x30]
mov rax, qword [0x039f11b0]
mov qword [rax + 0x1f0], rcx
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
xor eax, eax
jmp 0x15c5153
cmp byte [r12 + 8], 0
je 0x15c5144
mov rax, qword [0x039f11b0]
mov byte [rax + 0xbb4], 1
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
xor eax, eax
jmp 0x15c5153
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x78]
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.01003340
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret