Function at 0x140005380
Capabilities:
Get disk information
Get file size
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x10268
call fcn.14001eae0
sub rsp, rax
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x14003c040]
xor rax, rsp
mov qword [rsp + 0x10260], rax
lea rcx, [rsp + 0x8260]
mov r8d, 0x20a
xor edx, edx
call fcn.14002b6d0
mov rcx, rbx
call fcn.140016e78
cmp rax, 0x105
jae 0x1400054f1
lea rsi, [rsp + 0x8260]
mov r8d, 0x104
mov rcx, rsi
mov rdx, rbx
call fcn.140017340
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathStripToRootW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x1400054f1
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400055a1
mov eax, dword [0x14003e370]
mov ecx, dword [0x14003cda0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140005b8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_set_no_write_sharing_access_on_file.____lu_
mov r8d, eax
call fcn.140008f50
mov rcx, rdi
mov edx, 0x20
call fcn.140008ce0
test eax, eax
jne 0x1400054d3
mov eax, dword [0x14003e370]
mov ecx, dword [0x14003cda0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140005bce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_write_update.status_service_update_failure.____lu_
mov r8d, eax
call fcn.140008f50
xor edi, edi
lea rax, [rsi + 1]
cmp rax, 2
jb 0x14000557b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000557b
mov eax, dword [0x14003e370]
mov ecx, dword [0x14003cda0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140005b0b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Filesystem_in_path__ls_is_not_supported___lu_
mov r8, rbx
mov r9d, eax
call fcn.140008f50
mov rcx, rdi
mov edx, 0x1f
call fcn.140008ce0
test eax, eax
jne 0x140005579
mov eax, dword [0x14003e370]
mov ecx, dword [0x14003cda0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140005b4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_write_update.status_service_update_failure.____lu_
mov r8d, eax
call fcn.140008f50
xor edi, edi
mov rcx, qword [rsp + 0x10260]
xor rcx, rsp
call fcn.14001af70
mov eax, edi
add rsp, 0x10268
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor r13d, r13d
lea r15, [rsp + 0x50]
mov r8d, 0x20a
mov rcx, r15
xor edx, edx
call fcn.14002b6d0
mov r8d, 0x104
mov rcx, r15
mov rdx, r14
call fcn.140017340
lea rdx, str.updater.exe
mov rcx, r15
call fcn.14002c170
test eax, eax
je 0x140005774
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
mov ebp, 0
cmp rax, 0xffffffffffffffff
je 0x140005867
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r13d, r13d
lea rcx, [rsp + 0x50]
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
mov ebp, 0
cmp rax, 0xffffffffffffffff
je 0x140005852
mov rbp, qword [sym.imp.KERNEL32.dll_GetFileSize]
xor r13d, r13d
mov rcx, r15
xor edx, edx
call rbp
mov rcx, r12
mov r12d, eax
mov qword [rsp + 0x40], rcx
xor edx, edx
call rbp
cmp r12d, 0xffffffff
je 0x14000584b
cmp eax, 0xffffffff
je 0x14000584b
mov ecx, r12d
mov ebp, 1
cmp r12d, eax
mov r12, qword [rsp + 0x40]
jne 0x140005852
mov r12d, ecx
cmp ecx, 0x8000
jae 0x1400057aa
and r12d, 0x7fff
je 0x140005764
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x8260]
lea r9, [rsp + 0x4c]
mov rcx, r15
mov ebp, r12d
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor r13d, r13d
test eax, eax
je 0x14000584b
cmp dword [rsp + 0x4c], ebp
jne 0x14000584b
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x260]
lea r9, [rsp + 0x4c]
mov rcx, qword [rsp + 0x40]
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000584b
cmp dword [rsp + 0x4c], ebp
jne 0x14000584b
mov r8d, ebp
lea rcx, [rsp + 0x8260]
lea rdx, [rsp + 0x260]
call fcn.14002b5d0
mov ebp, 1
test eax, eax
jne 0x14000584d
mov r13d, 1
mov ebp, 1
jmp 0x14000584d
mov eax, dword [0x14003e370]
mov ecx, dword [0x14003cda0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140005c0f
lea rdx, str.Install_directory_updater_could_not_be_determined.
call fcn.140008f50
jmp 0x1400054d3
mov ebp, r12d
shr ebp, 0xf
mov qword [rsp + 0x20], 0
mov rcx, r15
lea rdx, [rsp + 0x8260]
mov r8d, 0x8000
lea r9, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor r13d, r13d
test eax, eax
je 0x14000584b
cmp dword [rsp + 0x4c], 0x8000
jne 0x14000584b
mov qword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x260]
mov r8d, 0x8000
lea r9, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000584b
cmp dword [rsp + 0x4c], 0x8000
jne 0x14000584b
mov r8d, 0x8000
lea rcx, [rsp + 0x8260]
lea rdx, [rsp + 0x260]
call fcn.14002b5d0
test eax, eax
jne 0x14000576a
dec ebp
jne 0x1400057b0
jmp 0x1400056c2
xor ebp, ebp
mov r12, qword [rsp + 0x40]
mov rax, r12
inc rax
cmp rax, 2
jb 0x140005867
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, r15
inc rax
cmp rax, 2
jb 0x14000587c
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x140005991
mov eax, dword [0x14003e370]
mov ecx, dword [0x14003cda0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov ecx, dword [rcx + 4]
test r13d, r13d
je 0x1400059cf
cmp eax, ecx
jg 0x140005c50
lea rdx, str.updater.exe_was_compared_successfully_to_the_installation_directory_updater.exe.
call fcn.140008e30
mov rcx, rbx
xor edx, edx
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x140005a31
mov r15, rax
lea r8, [rsp + 0x8260]
mov rcx, rax
mov edx, 0x3ee
mov r9d, 0x40
call qword [sym.imp.USER32.dll_LoadStringA]
mov ebp, eax
test eax, eax
jne 0x140005930
mov eax, dword [0x14003e370]
mov ecx, dword [0x14003cda0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140005dd6
lea rdx, str.The_updater.exe_application_does_not_contain_the_Mozilla_updater_identity.
call fcn.140008f50
lea rdx, str.moz_updater.exe_4cdccec4_5ee0_4a06_9817_4cd899a9db49
lea rcx, [rsp + 0x8260]
mov r8d, 0x35
call fcn.14002b5d0
test eax, eax
je 0x140005ab1
mov eax, dword [0x14003e370]
mov ecx, dword [0x14003cda0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140005d13
lea rdx, str.The_updater.exe_identity_string_is_not_valid.
call fcn.140008f50
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140005a6b
mov eax, dword [0x14003e370]
mov ecx, dword [0x14003cda0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140005c91
lea rdx, str.Error_checking_if_the_updaters_are_the_same._nPath_1:__ls_nPath_2:__ls
lea r9, [rsp + 0x50]
mov r8, rbx
call fcn.140008f50
jmp 0x1400054d3
cmp eax, ecx
jg 0x140005cd2
lea rdx, str.The_updaters_do_not_match__updater_will_not_run._nPath_1:__ls_nPath_2:__ls
lea r9, [rsp + 0x50]
mov r8, rbx
call fcn.140008f50
mov rcx, rdi
mov edx, 0x1b
call fcn.140008ce0
test eax, eax
jne 0x1400054d3
mov eax, dword [0x14003e370]
mov ecx, dword [0x14003cda0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140005e17
lea rdx, str.Could_not_write_update.status_updater_compare_failure.
jmp 0x1400057a0
mov eax, dword [0x14003e370]
mov ecx, dword [0x14003cda0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140005d54
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.updater.exe_module_could_not_be_loaded.___lu_
mov r8d, eax
call fcn.140008f50
mov rcx, rdi
mov edx, 0x1c
call fcn.140008ce0
test eax, eax
jne 0x1400054d3
mov eax, dword [0x14003e370]
mov ecx, dword [0x14003cda0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140005d95
lea rdx, str.Could_not_write_update.status_no_updater_identity.
jmp 0x1400057a0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebp, ebp
je 0x140005a6b
mov eax, dword [0x14003e370]
mov ecx, dword [0x14003cda0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140005e58
lea rdx, str.The_updater.exe_application_contains_the_Mozilla_updater_identity.
call fcn.140008e30
mov rcx, r14
mov rdx, rbx
mov r8d, 1
call fcn.140009390
test eax, eax
setne dil
jmp 0x1400054d5
lea rcx, [0x14003e370]
call fcn.14000a76c
cmp dword [0x14003e370], 0xffffffff
jne 0x140005516
mov qword [0x14003e160], 0
lea rcx, [fcn.140001d00]
call fcn.14000a850
lea rcx, [0x14003e370]
call fcn.14000a7e4
jmp 0x140005516
lea rcx, [0x14003e370]
call fcn.14000a76c
cmp dword [0x14003e370], 0xffffffff
jne 0x140005564
mov qword [0x14003e160], 0
lea rcx, [fcn.140001d00]
call fcn.14000a850
lea rcx, [0x14003e370]
call fcn.14000a7e4
jmp 0x140005564
lea rcx, [0x14003e370]
call fcn.14000a76c
cmp dword [0x14003e370], 0xffffffff
jne 0x140005473
mov qword [0x14003e160], 0
lea rcx, [fcn.140001d00]
call fcn.14000a850
lea rcx, [0x14003e370]
call fcn.14000a7e4
jmp 0x140005473
lea rcx, [0x14003e370]
call fcn.14000a76c
cmp dword [0x14003e370], 0xffffffff
jne 0x1400054be
mov qword [0x14003e160], 0
lea rcx, [fcn.140001d00]
call fcn.14000a850
lea rcx, [0x14003e370]
call fcn.14000a7e4
jmp 0x1400054be
lea rcx, [0x14003e370]
call fcn.14000a76c
cmp dword [0x14003e370], 0xffffffff
jne 0x140005799
mov qword [0x14003e160], 0
lea rcx, [fcn.140001d00]
call fcn.14000a850
lea rcx, [0x14003e370]
call fcn.14000a7e4
jmp 0x140005799
lea rcx, [0x14003e370]
call fcn.14000a76c
cmp dword [0x14003e370], 0xffffffff
jne 0x1400058b4
mov qword [0x14003e160], 0
lea rcx, [fcn.140001d00]
call fcn.14000a850
lea rcx, [0x14003e370]
call fcn.14000a7e4
jmp 0x1400058b4
lea rcx, [0x14003e370]
call fcn.14000a76c
cmp dword [0x14003e370], 0xffffffff
jne 0x1400059b6
mov qword [0x14003e160], 0
lea rcx, [fcn.140001d00]
call fcn.14000a850
lea rcx, [0x14003e370]
call fcn.14000a7e4
jmp 0x1400059b6
lea rcx, [0x14003e370]
call fcn.14000a76c
cmp dword [0x14003e370], 0xffffffff
jne 0x1400059d7
mov qword [0x14003e160], 0
lea rcx, [fcn.140001d00]
call fcn.14000a850
lea rcx, [0x14003e370]
call fcn.14000a7e4
jmp 0x1400059d7
lea rcx, [0x14003e370]
call fcn.14000a76c
cmp dword [0x14003e370], 0xffffffff
jne 0x140005977
mov qword [0x14003e160], 0
lea rcx, [fcn.140001d00]
call fcn.14000a850
lea rcx, [0x14003e370]
call fcn.14000a7e4
jmp 0x140005977
lea rcx, [0x14003e370]
call fcn.14000a76c
cmp dword [0x14003e370], 0xffffffff
jne 0x140005a56
mov qword [0x14003e160], 0
lea rcx, [fcn.140001d00]
call fcn.14000a850
lea rcx, [0x14003e370]
call fcn.14000a7e4
jmp 0x140005a56
lea rcx, [0x14003e370]
call fcn.14000a76c
cmp dword [0x14003e370], 0xffffffff
jne 0x140005aa5
mov qword [0x14003e160], 0
lea rcx, [fcn.140001d00]
call fcn.14000a850
lea rcx, [0x14003e370]
call fcn.14000a7e4
jmp 0x140005aa5
lea rcx, [0x14003e370]
call fcn.14000a76c
cmp dword [0x14003e370], 0xffffffff
jne 0x140005924
mov qword [0x14003e160], 0
lea rcx, [fcn.140001d00]
call fcn.14000a850
lea rcx, [0x14003e370]
call fcn.14000a7e4
jmp 0x140005924
lea rcx, [0x14003e370]
call fcn.14000a76c
cmp dword [0x14003e370], 0xffffffff
jne 0x140005a25
mov qword [0x14003e160], 0
lea rcx, [fcn.140001d00]
call fcn.14000a850
lea rcx, [0x14003e370]
call fcn.14000a7e4
jmp 0x140005a25
lea rcx, [0x14003e370]
call fcn.14000a76c
cmp dword [0x14003e370], 0xffffffff
jne 0x140005ae3
mov qword [0x14003e160], 0
lea rcx, [fcn.140001d00]
call fcn.14000a850
lea rcx, [0x14003e370]
call fcn.14000a7e4
jmp 0x140005ae3