Function at 0x140065240
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x4518
call fcn.140147f60
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x4480], xmm6
mov r13, r8
mov r14, rdx
mov qword [rbp + 0x4478], rcx
call fcn.14000c3a0
lea rdi, [rbp + 0x4140]
mov qword [rdi + 0x10], rax
lea rax, [0x140065fb0]
mov qword [rdi], rax
lea rax, [0x140066080]
mov qword [rdi + 8], rax
lea r12, [rbp - 0x30]
xor r15d, r15d
mov rcx, r12
xor edx, edx
call fcn.1400a923b
mov qword [r12 + 0x20], rdi
lea rax, [0x1400a9430]
lea rdi, [rbp + 0x42a0]
mov qword [rdi], rax
lea rax, [0x14007bbd0]
mov qword [rdi + 8], rax
lea rax, [0x1400a9430]
lea rsi, [rbp + 0x42b0]
mov qword [rsi], rax
lea rax, [0x14007bbd0]
mov qword [rsi + 8], rax
call fcn.14007bbfb
lea rbx, [rbp + 0x4158]
mov rcx, rbx
call fcn.1400a9440
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbx
mov rdx, r12
mov r8, rdi
mov r9, rsi
call fcn.1400a9a74
test eax, eax
je 0x1400653a2
mov edi, eax
mov ecx, 2
call fcn.1400481e0
test al, al
je 0x140065375
lea rdx, str..._.._chrome_installer_util_lzma_util.cc
lea rcx, [rbp + 0x42c0]
mov r8d, 0xb2
mov r9d, 2
call fcn.140048290
lea rcx, [rbp + 0x42c8]
lea rdx, str.Error_returned_by_SzArchiveOpen:
call fcn.1400490b0
mov rcx, rax
mov edx, edi
call fcn.14001174c
lea rcx, [rbp + 0x42c0]
call fcn.1400486f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, 3
test eax, eax
je 0x140065b42
mov rcx, qword [rbp + 0x4478]
cmp byte [rcx + 0x48], 0
jne 0x14006539a
mov byte [rcx + 0x48], 1
mov dword [rcx + 0x4c], eax
jmp 0x140065b42
lea rax, [rbp + 0x4448]
mov qword [rax], r15
lea rax, [rbp + 0x4440]
mov dword [rax], 0xffffffff
lea rax, [rbp + 0x4418]
mov qword [rax], r15
lea rcx, [rbp + 0x4230]
mov qword [rbp + 0x4420], r14
mov rdx, r14
call fcn.1400ac308
mov eax, 0x10
lea r12, [rbp + 0x42c0]
add rax, r12
mov qword [rbp + 0x4468], rax
xorps xmm6, xmm6
mov r14d, 2
xor r15d, r15d
xor eax, eax
mov qword [rbp + 0x4438], r13
cmp eax, dword [rbp + 0x41b8]
jae 0x140065b12
mov dword [rbp + 0x4474], eax
xor eax, eax
mov qword [rbp + 0x4428], rax
mov qword [rbp + 0x4430], rax
mov dword [rbp + 0x4470], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, [rbp + 0x42b0]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x4230]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x4430]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x4428]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x4418]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x4448]
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x4158]
lea rdx, [rbp - 0x30]
mov r8d, dword [rbp + 0x4474]
lea r9, [rbp + 0x4440]
call fcn.1400aad44
mov edi, eax
test eax, eax
jne 0x140065a11
test r15d, r15d
jne 0x140065b12
mov r15d, dword [rbp + 0x4474]
lea rcx, [rbp + 0x4158]
mov rdx, r15
xor r8d, r8d
call fcn.1400aaf2a
test rax, rax
je 0x140065ac0
lea rcx, [rbp + 0x4008]
mov rdx, rax
call fcn.140066178
mov r8, qword [rbp + 0x4008]
lea rcx, [rbp + 0x4158]
mov rdx, r15
call fcn.1400aaf2a
mov rsi, qword [rbp + 0x4008]
mov rdi, qword [rbp + 0x4010]
add rdi, 0xfffffffffffffffe
movaps xmmword [rbp + 0x42c0], xmm6
mov qword [rbp + 0x42d0], 0
mov rbx, rdi
sub rbx, rsi
sar rbx, 1
movabs rax, 0x7ffffffffffffff0
cmp rbx, rax
jae 0x140065b60
cmp rbx, 0xa
ja 0x140065549
mov byte [rbp + 0x42d7], bl
mov rax, r12
jmp 0x140065581
lea r12, [rbx + 8]
and r12, 0xfffffffffffffff8
js 0x140065b6c
lea rcx, [r12 + r12]
call fcn.140147c20
mov qword [rbp + 0x42c0], rax
bts r12, 0x3f
mov qword [rbp + 0x42d0], r12
mov qword [rbp + 0x42c8], rbx
lea r12, [rbp + 0x42c0]
cmp rdi, rsi
je 0x140065597
movzx ecx, word [rsi]
mov word [rax], cx
add rsi, r14
add rax, r14
cmp rsi, rdi
jne 0x140065586
mov word [rax], 0
movzx eax, byte [rbp + 0x42d7]
test al, al
mov rcx, qword [rbp + 0x42c0]
cmovns rcx, r12
mov qword [rbp + 0x4408], rcx
cmovs rax, qword [rbp + 0x42c8]
mov qword [rbp + 0x4410], rax
mov rcx, qword [rbp + 0x4420]
lea rdx, [rbp + 0x4450]
lea r8, [rbp + 0x4408]
call fcn.140044ef0
cmp byte [rbp + 0x42d7], 0
jns 0x1400655f5
mov rcx, qword [rbp + 0x42c0]
call fcn.140147c5c
test r13, r13
je 0x14006560d
mov rcx, qword [rbp + 0x4438]
lea rdx, [rbp + 0x4450]
call fcn.140043db0
mov rax, qword [rbp + 0x41c8]
mov rdi, r15
shr rdi, 3
movzx eax, byte [rax + rdi]
mov ecx, dword [rbp + 0x4474]
and cl, 7
mov r12d, 0x80
shr r12d, cl
test r12d, eax
je 0x14006565e
mov rcx, qword [rbp + 0x4478]
lea rdx, [rbp + 0x4450]
call fcn.1400661c4
test al, al
je 0x1400657bb
xor r15d, r15d
mov esi, 4
jmp 0x1400657e0
lea rcx, [rbp + 0x4450]
lea rdx, [rbp + 0x42c0]
call fcn.140044860
mov rcx, qword [rbp + 0x4478]
lea rsi, [rbp + 0x42c0]
mov rdx, rsi
call fcn.1400661c4
mov rcx, rsi
call fcn.140043da0
cmp byte [rbp + 0x4467], 0
lea rcx, [rbp + 0x4450]
jns 0x1400656a6
mov rcx, qword [rbp + 0x4450]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14006582e
xor r13d, r13d
mov rsi, qword [rbp + 0x4430]
sub rsi, r13
jbe 0x1400658b1
mov eax, 0x800000
cmp rsi, rax
cmovae rsi, rax
mov rdx, qword [rbp + 0x4448]
add rdx, qword [rbp + 0x4428]
add rdx, r13
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov r8d, esi
lea r9, [rbp + 0x4444]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14006573b
mov eax, dword [rbp + 0x4444]
add r13, rsi
cmp rsi, rax
je 0x1400656e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp + 0x4478]
cmp byte [rcx + 0x48], 0
jne 0x140065752
mov byte [rcx + 0x48], 1
mov dword [rcx + 0x4c], eax
mov ecx, 2
call fcn.1400481e0
test al, al
je 0x1400657aa
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rcx, [rbp + 0x42c0]
lea rdx, str..._.._chrome_installer_util_lzma_util.cc
mov r8d, 0x10f
mov r9d, 2
call fcn.140048f30
mov rcx, qword [rbp + 0x4468]
lea rdx, str.Error_returned_by_WriteFile
call fcn.1400490b0
lea rcx, [rbp + 0x42c0]
call fcn.140049000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15d, 8
jmp 0x1400657db
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp + 0x4478]
cmp byte [rcx + 0x48], 0
jne 0x1400657d2
mov byte [rcx + 0x48], 1
mov dword [rcx + 0x4c], eax
mov r15d, 7
mov esi, 2
lea r12, [rbp + 0x42c0]
lea rcx, [rbp + 0x4450]
call fcn.140043da0
mov r13, qword [rbp + 0x4438]
mov rcx, qword [rbp + 0x4008]
test rcx, rcx
je 0x140065812
mov qword [rbp + 0x4010], rcx
call fcn.140147c5c
mov eax, 4
or esi, eax
cmp esi, eax
jne 0x140065b12
mov eax, dword [rbp + 0x4474]
inc eax
jmp 0x140065404
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp + 0x4478]
cmp byte [rcx + 0x48], 0
jne 0x140065845
mov byte [rcx + 0x48], 1
mov dword [rcx + 0x4c], eax
mov ecx, 2
call fcn.1400481e0
mov r15d, 7
mov esi, 2
test al, al
je 0x1400657e0
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rcx, [rbp + 0x42c0]
lea rdx, str..._.._chrome_installer_util_lzma_util.cc
mov r8d, 0xff
mov r9d, 2
call fcn.140048f30
mov rcx, qword [rbp + 0x4468]
lea rdx, str.CreateFile_failed
call fcn.1400490b0
lea rcx, [rbp + 0x42c0]
call fcn.140049000
jmp 0x1400657e0
mov rax, qword [rbp + 0x41f0]
test rax, rax
je 0x1400658eb
movzx eax, byte [rax + rdi]
test r12d, eax
je 0x1400658eb
lea r9, [r15*8]
add r9, qword [rbp + 0x41f8]
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x14006598e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov r15d, 0
test eax, eax
lea r12, [rbp + 0x42c0]
jne 0x1400657e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp + 0x4478]
cmp byte [rcx + 0x48], 0
jne 0x140065922
mov byte [rcx + 0x48], 1
mov dword [rcx + 0x4c], eax
mov ecx, 2
call fcn.1400481e0
mov r15d, 0xa
mov esi, 2
test al, al
je 0x1400657e0
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rcx, [rbp + 0x42c0]
lea rdx, str..._.._chrome_installer_util_lzma_util.cc
mov r8d, 0x127
mov r9d, 2
call fcn.140048f30
mov rcx, qword [rbp + 0x4468]
lea rdx, str.Error_returned_by_CloseHandle
call fcn.1400490b0
lea rcx, [rbp + 0x42c0]
call fcn.140049000
jmp 0x1400657e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp + 0x4478]
cmp byte [rcx + 0x48], 0
jne 0x1400659a5
mov byte [rcx + 0x48], 1
mov dword [rcx + 0x4c], eax
mov ecx, 2
call fcn.1400481e0
test al, al
je 0x1400659fd
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rcx, [rbp + 0x42c0]
lea rdx, str..._.._chrome_installer_util_lzma_util.cc
mov r8d, 0x11f
mov r9d, 2
call fcn.140048f30
mov rcx, qword [rbp + 0x4468]
lea rdx, str.Error_returned_by_SetFileTime
call fcn.1400490b0
lea rcx, [rbp + 0x42c0]
call fcn.140049000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15d, 9
jmp 0x1400657db
mov ecx, 2
call fcn.1400481e0
test al, al
je 0x140065a7e
lea rdx, str..._.._chrome_installer_util_lzma_util.cc
lea rcx, [rbp + 0x42c0]
mov r8d, 0xcc
mov r9d, 2
call fcn.140048290
lea rcx, [rbp + 0x42c0]
call fcn.1400651c0
lea rdx, str.Error_returned_by_SzExtract:
mov rcx, rax
call fcn.1400490b0
mov rcx, rax
mov edx, edi
call fcn.14001174c
lea rcx, [rbp + 0x4450]
mov rdx, rax
call fcn.14000e300
lea rcx, [rbp + 0x42c0]
call fcn.1400486f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x4450], eax
test eax, eax
je 0x140065ab8
lea rcx, [rbp + 0x42c0]
lea rdx, [rbp + 0x4450]
call fcn.140066108
mov rax, qword [rbp + 0x4478]
lea rcx, [rax + 0x48]
lea rdx, [rbp + 0x42c0]
call fcn.140065f8a
mov r15d, 4
jmp 0x140065b12
mov ecx, 2
call fcn.1400481e0
mov r15d, 6
test al, al
je 0x140065b12
lea rdx, str..._.._chrome_installer_util_lzma_util.cc
lea rcx, [rbp + 0x42c0]
mov r8d, 0xdf
mov r9d, 2
call fcn.140048290
lea rcx, [rbp + 0x42c8]
lea rdx, str.Couldnt_get_file_name
call fcn.1400490b0
lea rcx, [rbp + 0x42c0]
call fcn.1400486f0
mov rdx, qword [rbp + 0x4448]
lea rcx, [rbp + 0x4230]
call qword [rcx + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rbp + 0x4158]
lea rdx, [rbp + 0x42a0]
call fcn.1400a9491
lea rcx, [rbp + 0x4230]
call fcn.1400ac3c6
mov eax, r15d
movaps xmm6, xmmword [rbp + 0x4480]
add rsp, 0x4518
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0x42c0]
call fcn.140029cdc
call fcn.14015acbc
mov eax, dword [rbp + 0x4470]
mov rcx, qword [rbp + 0x4478]
cmp byte [rcx + 0x50], 0
jne 0x140065b8f
mov rcx, qword [rbp + 0x4478]
mov byte [rcx + 0x50], 1
mov rcx, qword [rbp + 0x4478]
mov dword [rcx + 0x54], eax
mov ecx, 2
call fcn.1400481e0
mov r15d, 5
test al, al
je 0x140065b12
lea rdx, str..._.._chrome_installer_util_lzma_util.cc
lea rcx, [rbp + 0x4008]
mov r8d, 0xd6
mov r9d, 2
call fcn.140048290
lea rcx, [rbp + 0x4010]
lea rdx, str.EXCEPTION_IN_PAGE_ERROR_while_accessing_mapped_memory__NTSTATUS_
call fcn.1400490b0
mov edx, dword [rbp + 0x4470]
mov rcx, rax
call fcn.14001174c
lea rcx, [rbp + 0x4008]
call fcn.1400486f0
jmp 0x140065b12