Function at 0x14004f512
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x44d8
call fcn.14011ba80
sub rsp, rax
lea rbp, [rsp + 0x80]
movdqa xmmword [rbp + 0x4440], xmm7
movaps xmmword [rbp + 0x4430], xmm6
mov r13, rdx
mov r15, rcx
mov rax, qword [rcx]
test rax, rax
je 0x14004f655
mov qword [rbp + 0x43d0], r8
lea rsi, [rbp + 0x40e8]
mov qword [rsi + 0x10], rax
lea rax, [0x140050278]
mov qword [rsi], rax
lea rax, [0x140050329]
mov qword [rsi + 8], rax
lea rdi, [rbp - 0x28]
xor r12d, r12d
xor edx, edx
mov rcx, rdi
call fcn.14008f3fb
mov qword [rdi + 0x20], rsi
lea rax, [0x14008f5b8]
lea rbx, [rbp + 0x4288]
mov qword [rbx], rax
lea rax, [0x14006240d]
mov qword [rbx + 8], rax
lea rax, [0x14008f5b8]
lea rsi, [rbp + 0x4298]
mov qword [rsi], rax
lea rax, [0x14006240d]
mov qword [rsi + 8], rax
call fcn.14006243e
lea r14, [rbp + 0x4010]
mov rcx, r14
call fcn.14008f5c8
mov rcx, r14
mov rdx, rdi
mov r8, rbx
mov r9, rsi
call fcn.14008fc10
mov ebx, eax
test eax, eax
je 0x14004f680
mov ecx, 2
call fcn.140037700
test al, al
je 0x14004f64d
lea rdx, str..._.._chrome_installer_util_lzma_util.cc
lea rcx, [rbp + 0x42a8]
mov r8d, 0xb8
mov r9d, 2
call fcn.1400377b0
lea rcx, [rbp + 0x42b0]
lea rdx, str.Error_returned_by_SzArchiveOpen:
call fcn.140038e50
mov rcx, rax
mov edx, ebx
call fcn.140005ee8
lea rcx, [rbp + 0x42a8]
call fcn.140037c30
mov dword [r15 + 0x18], 3
mov r12d, 6
mov eax, r12d
movaps xmm6, xmmword [rbp + 0x4430]
movaps xmm7, xmmword [rbp + 0x4440]
add rsp, 0x44d8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rax, [rbp + 0x43f0]
mov qword [rax], r12
lea rax, [rbp + 0x43e8]
mov dword [rax], 0xffffffff
lea rax, [rbp + 0x43c8]
mov qword [rax], r12
lea rcx, [rbp + 0x4100]
mov rdx, r13
call fcn.1400924f8
mov qword [rbp + 0x4428], r15
mov dword [r15 + 0x18], 0
xorps xmm6, xmm6
mov eax, 7
movq xmm7, rax
pslldq xmm7, 8
xor r15d, r15d
xor r12d, r12d
mov r14, qword [rbp + 0x43d0]
mov qword [rbp + 0x43d8], r13
cmp r15d, dword [rbp + 0x4070]
jae 0x14004fd7c
xor eax, eax
mov qword [rbp + 0x43e0], rax
mov qword [rbp + 0x43f8], rax
mov dword [rbp + 0x441c], 0
mov qword [rsp + 0x48], rsi
lea rax, [rbp + 0x4100]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x43f8]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x43e0]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x43c8]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x43f0]
mov qword [rsp + 0x20], rax
lea rsi, [rbp + 0x4010]
mov rcx, rsi
lea rdx, [rbp - 0x28]
mov r8d, r15d
lea r9, [rbp + 0x43e8]
call fcn.140090e94
mov ebx, eax
test eax, eax
jne 0x14004fc1f
test r12d, r12d
jne 0x14004fd7c
mov ebx, r15d
xor r8d, r8d
mov rcx, rsi
mov rdx, rbx
call fcn.14009107d
mov rdi, rax
test rax, rax
je 0x14004fca0
movaps xmmword [rbp + 0x4400], xmm6
mov qword [rbp + 0x4410], 0
lea rcx, [rbp + 0x4400]
mov rdx, rdi
call fcn.1400504d6
test al, al
je 0x14004f7e5
mov rcx, qword [rbp + 0x4400]
lea rsi, [rcx + rdi*2]
add rdi, rdi
xor edx, edx
mov r8, rdi
call fcn.14011eed0
mov qword [rbp + 0x4408], rsi
lea rsi, [rbp + 0x4010]
mov r8, qword [rbp + 0x4400]
mov rcx, rsi
mov rdx, rbx
call fcn.14009107d
mov rdx, qword [rbp + 0x4400]
mov r8, qword [rbp + 0x4408]
add r8, 0xfffffffffffffffe
movdqu xmmword [rbp + 0x42b8], xmm7
mov word [rbp + 0x42a8], 0
lea rsi, [rbp + 0x42a8]
mov rcx, rsi
call fcn.14005055c
mov rax, qword [rbp + 0x42b8]
cmp qword [rbp + 0x42c0], 7
mov rcx, rsi
jbe 0x14004f844
mov rcx, qword [rbp + 0x42a8]
mov qword [rbp + 0x43b8], rcx
mov qword [rbp + 0x43c0], rax
mov rcx, r13
lea rdx, [rbp + 0x4180]
lea r8, [rbp + 0x43b8]
call fcn.1400307e0
mov rcx, rsi
call fcn.140006a9a
test r14, r14
je 0x14004f884
mov rcx, r14
lea rdx, [rbp + 0x4180]
call fcn.14002eea0
mov rax, qword [rbp + 0x4080]
mov rdi, rbx
shr rdi, 3
movzx eax, byte [rax + rdi]
mov ecx, r15d
and cl, 7
mov esi, 0x80
shr esi, cl
test esi, eax
je 0x14004f8c5
mov rcx, qword [rbp + 0x4428]
lea rdx, [rbp + 0x4180]
call fcn.14005040c
xor r12d, r12d
mov sil, 4
jmp 0x14004fb39
lea rcx, [rbp + 0x4180]
lea rdx, [rbp + 0x42a8]
call fcn.14002fcd0
mov rcx, qword [rbp + 0x4428]
lea r12, [rbp + 0x42a8]
mov rdx, r12
call fcn.14005040c
mov rcx, r12
call fcn.14002ee30
cmp qword [rbp + 0x4198], 7
lea rcx, [rbp + 0x4180]
jbe 0x14004f90e
mov rcx, qword [rbp + 0x4180]
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 r13, rax
cmp rax, 0xffffffffffffffff
je 0x14004fac8
mov r8d, dword [rbp + 0x43f8]
mov rdx, qword [rbp + 0x43f0]
add rdx, qword [rbp + 0x43e0]
mov qword [rsp + 0x20], 0
mov rcx, r13
lea r9, [rbp + 0x43ec]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14004fa51
mov eax, dword [rbp + 0x43ec]
cmp qword [rbp + 0x43f8], rax
jne 0x14004fa51
mov rax, qword [rbp + 0x40a8]
test rax, rax
je 0x14004f9c7
movzx eax, byte [rax + rdi]
test esi, eax
je 0x14004f9c7
lea r9, [rbx*8]
add r9, qword [rbp + 0x40b0]
xor edx, edx
xor r8d, r8d
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x14004fba5
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov r12d, 0
test eax, eax
jne 0x14004fb39
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
mov ecx, 2
call fcn.140037700
test al, al
je 0x14004fa3e
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
mov r8d, 0x11b
mov r9d, 2
lea rcx, [rbp + 0x42a8]
lea rdx, str..._.._chrome_installer_util_lzma_util.cc
call fcn.140038c40
lea rcx, [rbp + 0x42b8]
lea rdx, str.Error_returned_by_CloseHandle
call fcn.140038e50
lea rcx, [rbp + 0x42a8]
call fcn.140038d80
mov rax, qword [rbp + 0x4428]
mov dword [rax + 0x18], 0xa
jmp 0x14004fb36
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
mov ecx, 2
call fcn.140037700
test al, al
je 0x14004faaf
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
mov r8d, 0x109
mov r9d, 2
lea rcx, [rbp + 0x42a8]
lea rdx, str..._.._chrome_installer_util_lzma_util.cc
call fcn.140038c40
lea rcx, [rbp + 0x42b8]
lea rdx, str.Error_returned_by_WriteFile
call fcn.140038e50
lea rcx, [rbp + 0x42a8]
call fcn.140038d80
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x4428]
mov dword [rax + 0x18], 8
jmp 0x14004fb36
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
mov ecx, 2
call fcn.140037700
test al, al
je 0x14004fb28
mov r8d, 0x100
mov r9d, 2
lea rcx, [rbp + 0x42a8]
lea rdx, str..._.._chrome_installer_util_lzma_util.cc
call fcn.1400377b0
lea rcx, [rbp + 0x42b0]
lea rdx, str.Error_returned_by_CreateFile:
call fcn.140038e50
mov rcx, rax
mov edx, r12d
call fcn.140011bd2
lea rcx, [rbp + 0x42a8]
call fcn.140037c30
mov rax, qword [rbp + 0x4428]
mov dword [rax + 0x18], 7
mov sil, 2
lea rcx, [rbp + 0x4180]
call fcn.14002ee30
mov r13, qword [rbp + 0x43d8]
mov rdx, qword [rbp + 0x4400]
test rdx, rdx
je 0x14004fb83
mov r8, qword [rbp + 0x4410]
sub r8, rdx
sar r8, 1
lea rcx, [rbp + 0x4400]
call fcn.14000622c
movaps xmmword [rbp + 0x4400], xmm6
mov qword [rbp + 0x4410], 0
or sil, 4
and sil, 7
mov al, 4
cmp sil, al
jne 0x14004fd7c
inc r15d
lea rsi, [rbp + 0x4298]
jmp 0x14004f6e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
mov ecx, 2
call fcn.140037700
test al, al
je 0x14004fc03
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
mov r8d, 0x113
mov r9d, 2
lea rcx, [rbp + 0x42a8]
lea rdx, str..._.._chrome_installer_util_lzma_util.cc
call fcn.140038c40
lea rcx, [rbp + 0x42b8]
lea rdx, str.Error_returned_by_SetFileTime
call fcn.140038e50
lea rcx, [rbp + 0x42a8]
call fcn.140038d80
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x4428]
mov dword [rax + 0x18], 9
jmp 0x14004fb36
mov ecx, 2
call fcn.140037700
mov r12d, 6
mov esi, 4
test al, al
je 0x14004fd72
lea rdx, str..._.._chrome_installer_util_lzma_util.cc
lea rcx, [rbp + 0x42a8]
mov r8d, 0xd1
mov r9d, 2
call fcn.1400377b0
lea rcx, [rbp + 0x42a8]
call fcn.14004f47a
lea rdx, str.Error_returned_by_SzExtract:
mov rcx, rax
call fcn.140038e50
mov rcx, rax
mov edx, ebx
call fcn.140005ee8
lea rcx, [rbp + 0x4420]
mov rdx, rax
call fcn.14000f680
lea rcx, [rbp + 0x42a8]
call fcn.140037c30
jmp 0x14004fd72
mov ecx, 2
call fcn.140037700
mov esi, 6
test al, al
je 0x14004fcf1
lea rdx, str..._.._chrome_installer_util_lzma_util.cc
lea rcx, [rbp + 0x42a8]
mov r8d, 0xe4
mov r9d, 2
call fcn.1400377b0
lea rcx, [rbp + 0x42b0]
lea rdx, str.Couldnt_get_file_name
call fcn.140038e50
lea rcx, [rbp + 0x42a8]
call fcn.140037c30
mov r12d, 6
jmp 0x14004fd72
mov rax, qword [rbp + 0x4428]
mov dword [rax + 0x18], esi
mov rdx, qword [rbp + 0x43f0]
lea rcx, [rbp + 0x4100]
call qword [rcx + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rbp + 0x4010]
lea rdx, [rbp + 0x4288]
call fcn.14008f619
lea rcx, [rbp + 0x4100]
call fcn.14009259e
jmp 0x14004f65b