Function at 0x1801418d0
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x180208090]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0x80]
call fcn.180003bb0
nop
lea rcx, [rsp + 0x80]
call fcn.180141bd0
movzx eax, al
test eax, eax
jne 0x180141930
mov dword [rsp + 0x34], 1
jmp 0x180141938
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
mov byte [rsp + 0x30], al
lea rcx, [rsp + 0x80]
call fcn.180003f40
nop
lea rax, [rsp + 0x80]
mov qword [rsp + 0x78], rax
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x1801419fc
lea rax, [0x18020e774]
mov ecx, 1
lock xadd dword [rax], ecx
inc ecx
mov eax, ecx
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0x14
jl 0x1801419b4
mov qword [0x18020e338], 0
mov dword [0x18020d1e8], 1
mov byte [0x180208ef1], 0
xor edx, edx
mov ecx, dword [0x180208ef4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x1801419fc
mov eax, dword [rsp + 0x38]
cdq
and eax, 1
xor eax, edx
sub eax, edx
test eax, eax
jne 0x1801419d7
mov edx, 1
mov ecx, dword [0x180208ef4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x1801419fc
mov edx, 2
mov ecx, dword [0x180208ef4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rcx, [0x18020d678]
call fcn.180003a80
mov qword [rsp + 0xc8], rax
mov rax, qword [0x18020e358]
cmp qword [rsp + 0xc0], rax
je 0x180141a12
jmp 0x180141baf
cmp qword [0x18020d9c0], 0
je 0x180141b6e
cmp qword [rsp + 0xc0], 0
je 0x180141b6a
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc0]
call qword [rax + 0x128]
test eax, eax
jne 0x180141b25
mov eax, 8
mov word [rsp + 0x58], ax
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x180141a99
cmp qword [rsp + 0xc8], 0
je 0x180141a99
mov ecx, 0x8007000e
call fcn.1800d7eb0
nop
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0xc0]
call qword [0x18020d9c0]
mov dword [rsp + 0x3c], eax
call qword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [rsp + 0x3c], 0x80004005
jne 0x180141b1a
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xc0]
call qword [rax + 0x58]
mov dword [rsp + 0x3c], eax
lea rcx, [rsp + 0x58]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x58]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x180141b6a
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax]
cmp eax, 0xe9
jne 0x180141b6a
mov edx, 0x14
mov rcx, qword [rsp + 0x40]
call fcn.180147920
nop
jmp 0x180141b6c
jmp 0x180141baf
cmp qword [rsp + 0xc0], 0
je 0x180141baf
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xc0]
call qword [rax + 0x58]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1800d8050
add rsp, 0xb8
ret