Function at 0x180013c18
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x150
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x18010e350]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor r13d, r13d
cmp rcx, r13
je 0x18001410c
cmp word [rcx], r13w
je 0x18001410c
mov ebp, r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r13 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180014101
mov dword [rsp + 0x40], r13d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
add eax, 1
mov ebx, eax
mov ecx, eax
call fcn.1800605e0
mov r12, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.180086e90
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, r13d
je 0x180014101
lea r15d, [r13 + 0xf]
mov qword [rsp + 0x98], r15
mov qword [rsp + 0x90], r13
mov byte [rsp + 0x80], r13b
mov rcx, r12
call fcn.180088f40
mov r8, rax
mov rdx, r12
lea rcx, [rsp + 0x78]
call fcn.18000abc4
nop
mov qword [rsp + 0xe8], r15
mov qword [rsp + 0xe0], r13
mov byte [rsp + 0xd0], r13b
lea rcx, str.user_pref__extensions.bootstrappedAddons_
call fcn.180088f40
mov r8, rax
lea rdx, str.user_pref__extensions.bootstrappedAddons_
lea rcx, [rsp + 0xc8]
call fcn.18000abc4
nop
lea rdx, [rsp + 0xd0]
cmp qword [rsp + 0xe8], 0x10
cmovae rdx, qword [rsp + 0xd0]
mov r9, qword [rsp + 0xe0]
xor r8d, r8d
lea rcx, [rsp + 0x78]
call fcn.18000e098
mov rbx, rax
or rdi, 0xffffffffffffffff
cmp rax, rdi
je 0x1800140b9
mov r9, rdi
mov r8, rax
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0x78]
call fcn.180011f38
nop
lea rcx, [0x1800d8e4c]
call fcn.180088f40
mov r9, rax
xor r8d, r8d
lea rdx, [0x1800d8e4c]
lea rcx, [rsp + 0x118]
call fcn.18000e098
lea r12, [rax + 2]
mov r9, r12
mov r8, rbx
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x78]
call fcn.180011f38
nop
mov r9, rdi
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x118]
call fcn.18000aab4
nop
cmp qword [rsp + 0x110], 0x10
jb 0x180013e25
mov rcx, qword [rsp + 0xf8]
call fcn.180086560
mov qword [rsp + 0xc0], r15
mov qword [rsp + 0xb8], r13
mov byte [rsp + 0xa8], r13b
lea rcx, str._websecurity_ati.org_:
call fcn.180088f40
mov r8, rax
lea rdx, str._websecurity_ati.org_:
lea rcx, [rsp + 0xa0]
call fcn.18000abc4
nop
lea rdx, [rsp + 0xa8]
cmp qword [rsp + 0xc0], 0x10
cmovae rdx, qword [rsp + 0xa8]
mov r9, qword [rsp + 0xb8]
xor r8d, r8d
lea rcx, [rsp + 0x118]
call fcn.18000e098
cmp rax, rdi
jne 0x180014070
mov qword [rsp + 0x110], r15
mov qword [rsp + 0x108], r13
mov byte [rsp + 0xf8], r13b
lea rcx, str._websecurity_ati.org_:_version_:_1.1___type_:_webextension___descriptor_:_
call fcn.180088f40
mov r8, rax
lea rdx, str._websecurity_ati.org_:_version_:_1.1___type_:_webextension___descriptor_:_
lea rcx, [rsp + 0xf0]
call fcn.18000abc4
nop
lea rcx, [rsp + 0x50]
call fcn.18001388c
nop
mov r9, rdi
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0xf0]
call fcn.18000fd54
nop
cmp qword [rsp + 0x70], 0x10
jb 0x180013f0c
mov rcx, qword [rsp + 0x58]
call fcn.180086560
lea rcx, str.___multiprocessCompatible_:true__runInSafeMode_:true
call fcn.180088f40
mov r8, rax
lea rdx, str.___multiprocessCompatible_:true__runInSafeMode_:true
lea rcx, [rsp + 0xf0]
call fcn.18000fe70
lea rcx, [0x1800d8d88]
call fcn.180088f40
mov r9, rax
xor r8d, r8d
lea rdx, [0x1800d8d88]
lea rcx, [rsp + 0x118]
call fcn.18000e098
mov rdi, rax
lea rcx, [0x1800d8d84]
call fcn.180088f40
mov r9, rax
xor r8d, r8d
lea rdx, [0x1800d8d84]
lea rcx, [rsp + 0x118]
call fcn.18000e098
sub rax, rdi
cmp rax, 2
jbe 0x180013faa
lea rcx, [0x1800d8d80]
call fcn.180088f40
mov r8, rax
lea rdx, [0x1800d8d80]
lea rcx, [rsp + 0xf0]
call fcn.18000fe70
lea rdx, [rdi + 1]
or qword [rsp + 0x20], 0xffffffffffffffff
xor r9d, r9d
lea r8, [rsp + 0xf0]
lea rcx, [rsp + 0x118]
call fcn.1800100a8
or qword [rsp + 0x28], 0xffffffffffffffff
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x118]
mov r8, r12
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.180010254
lea rcx, [rsp + 0x80]
cmp qword [rsp + 0x98], 0x10
cmovae rcx, qword [rsp + 0x80]
call fcn.180088f40
mov rbx, rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rdx, [rsp + 0x80]
cmp qword [rsp + 0x98], 0x10
cmovae rdx, qword [rsp + 0x80]
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x44]
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebp, 0x800705bb
cmp qword [rsp + 0x110], 0x10
jb 0x180014070
mov rcx, qword [rsp + 0xf8]
call fcn.180086560
nop
cmp qword [rsp + 0xc0], 0x10
jb 0x180014088
mov rcx, qword [rsp + 0xa8]
call fcn.180086560
mov qword [rsp + 0xc0], r15
mov qword [rsp + 0xb8], r13
mov byte [rsp + 0xa8], r13b
cmp qword [rsp + 0x138], 0x10
jb 0x1800140b9
mov rcx, qword [rsp + 0x120]
call fcn.180086560
nop
cmp qword [rsp + 0xe8], 0x10
jb 0x1800140d1
mov rcx, qword [rsp + 0xd0]
call fcn.180086560
mov qword [rsp + 0xe8], r15
mov qword [rsp + 0xe0], r13
mov byte [rsp + 0xd0], r13b
cmp qword [rsp + 0x98], 0x10
jb 0x180014101
mov rcx, qword [rsp + 0x80]
call fcn.180086560
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180014111
mov ebp, 0x80070057
mov eax, ebp
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180086e60
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret