Function at 0x18013d1b0
Capabilities:
Allocate thread local storage
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x548
mov qword [rsp + 0xd0], 0xfffffffffffffffe
mov rax, qword [0x180208090]
xor rax, rsp
mov qword [rsp + 0x530], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x180208ef4], eax
lea rcx, [rsp + 0x120]
call fcn.180003c60
nop
lea rax, [rsp + 0x320]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
mov eax, 2
imul rax, rax, 0x104
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0x20a
jae 0x18013d224
jmp 0x18013d229
call fcn.1800d86e0
xor eax, eax
mov rcx, qword [rsp + 0x70]
mov word [rsp + rcx + 0x320], ax
mov edx, 0x104
lea rcx, [rsp + 0x320]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x18013d2a5
lea rax, [rsp + 0x320]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x40], 0xffffffffffffffff
inc qword [rsp + 0x40]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x40]
cmp word [rax + rcx*2], 0
jne 0x18013d265
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x80], rax
mov r8, qword [rsp + 0x80]
lea rdx, [rsp + 0x320]
lea rcx, [rsp + 0x120]
call fcn.1800040d0
lea rcx, [0x18019a0a0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x18013d33c
lea rcx, str.shdocvw.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x18013d33a
mov byte [0x18020e344], 1
lea rax, str._shdocvw.dll
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x48], 0xffffffffffffffff
inc qword [rsp + 0x48]
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
cmp word [rax + rcx*2], 0
jne 0x18013d2f8
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x90], rax
mov r8, qword [rsp + 0x90]
lea rdx, str._shdocvw.dll
lea rcx, [rsp + 0x120]
call fcn.180012ea0
jmp 0x18013d396
lea rax, str.Ieframe.dll
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x50], 0xffffffffffffffff
inc qword [rsp + 0x50]
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x50]
cmp word [rax + rcx*2], 0
jne 0x18013d354
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xa0], rax
mov r8, qword [rsp + 0xa0]
lea rdx, str.Ieframe.dll
lea rcx, [rsp + 0x120]
call fcn.180012ea0
lea rcx, [rsp + 0x160]
call fcn.180025420
nop
lea rcx, [rsp + 0x120]
call fcn.180003a80
mov rdx, rax
lea rcx, [rsp + 0x140]
call fcn.180003bb0
nop
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x160]
call fcn.1800255b0
mov byte [rsp + 0x30], al
lea rcx, [rsp + 0x140]
call fcn.180003f40
nop
lea rax, [rsp + 0x140]
mov qword [rsp + 0xd8], rax
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x18013d4ed
mov edx, 3
lea rcx, [rsp + 0x160]
call fcn.180025f00
mov word [0x18020e360], ax
mov edx, 3
lea rcx, [rsp + 0x160]
call fcn.180025f00
movzx eax, ax
cmp eax, 9
jg 0x18013d494
lea rax, str.about:blank
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x58], 0xffffffffffffffff
inc qword [rsp + 0x58]
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x58]
cmp word [rax + rcx*2], 0
jne 0x18013d451
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xb0], rax
mov r8, qword [rsp + 0xb0]
lea rdx, str.about:blank
lea rcx, [0x18020d678]
call fcn.1800040d0
jmp 0x18013d4ed
lea rax, str.about:Tabs
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x60], 0xffffffffffffffff
inc qword [rsp + 0x60]
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x60]
cmp word [rax + rcx*2], 0
jne 0x18013d4ac
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xc0], rax
mov r8, qword [rsp + 0xc0]
lea rdx, str.about:Tabs
lea rcx, [0x18020d678]
call fcn.1800040d0
cmp qword [rsp + 0x38], 0
je 0x18013d50c
mov edx, QISearch
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18020d780], rax
cmp qword [0x18020d780], 0
je 0x18013d58a
lea rax, [0x180141110]
mov qword [0x18020d790], rax
mov rax, qword [0x18020d1f0]
mov rax, qword [rax]
lea rdx, [0x18020d770]
mov rcx, qword [0x18020d1f0]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov byte [rsp + 0x31], al
movzx eax, byte [rsp + 0x31]
test eax, eax
je 0x18013d58a
mov byte [0x18020d798], 1
lea rax, [rsp + 0xf0]
lea rcx, [0x18020d770]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x30
rep movsb byte [rdi], byte [rsi]
call fcn.180021700
mov r8d, 5
lea rdx, [rsp + 0xf0]
mov rcx, rax
call fcn.180021790
movzx eax, word [0x18020e360]
cmp eax, 8
jne 0x18013d5e7
movabs rax, 0x800000000000014b
mov qword [rsp + 0xc8], rax
lea rcx, [0x1801999c8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov byte [rsp + 0x28], 1
lea rcx, [0x18013d640]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0xc8]
lea r8, [0x18019a0f0]
mov rdx, rax
lea rcx, [0x18020d698]
call fcn.180148b60
movzx eax, al
mov dword [rsp + 0x68], 0
lea rcx, [rsp + 0x160]
call fcn.1800254f0
nop
lea rcx, [rsp + 0x120]
call fcn.180003f40
nop
lea rax, [rsp + 0x120]
mov qword [rsp + 0xe0], rax
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.1800d8050
add rsp, 0x548
pop rdi
pop rsi
ret