Function at 0x140053d5c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4270]
mov eax, 0x4370
call fcn.140092250
sub rsp, rax
mov rax, qword [0x1400d33c0]
xor rax, rsp
mov qword [rbp + 0x4260], rax
xor r12d, r12d
mov qword [rbp - 0x50], r8
mov qword [rbp - 0x48], rdx
mov dword [rsp + 0x54], r12d
mov rax, qword [rcx]
mov qword [rbp - 0x80], rcx
mov r15d, r12d
test rax, rax
jne 0x140053dbb
mov eax, 6
jmp 0x140054411
mov qword [rbp + 0x10], rax
lea rax, [0x140053cc4]
lea rcx, [rbp + 0x1c0]
mov qword [rbp], rax
lea rax, [0x140053cd0]
xor edx, edx
mov qword [rbp + 8], rax
call fcn.14008a890
lea rax, [rbp]
mov qword [rbp + 0x1e0], rax
lea rax, [0x14008cc4c]
mov qword [rsp + 0x68], rax
lea rax, [0x14008cc5c]
mov qword [rsp + 0x70], rax
lea rax, [0x14008cc4c]
mov qword [rbp - 0x40], rax
lea rax, [0x14008cc5c]
mov qword [rbp - 0x38], rax
call fcn.14008cc88
lea rcx, [rbp + 0x30]
call fcn.14008af10
lea r9, [rbp - 0x40]
lea r8, [rsp + 0x68]
lea rdx, [rbp + 0x1c0]
lea rcx, [rbp + 0x30]
call fcn.14008af4c
mov ebx, eax
test eax, eax
je 0x140053eac
call fcn.1400096a0
mov esi, 2
cmp eax, esi
jg 0x140053e91
lea rdx, str.c:_b_build_slavewin64_build_srcchromeinstallerutillzma_util.cc
lea rcx, [rbp + 0xb0]
mov r9d, esi
mov r8d, 0x97
lea r15d, [rsi - 1]
call fcn.1400097c0
lea rdx, str.Error_returned_by_SzArchiveOpen:
lea rcx, [rax + 8]
call fcn.14000a0a0
mov edx, ebx
mov rcx, rax
call fcn.14000a360
test r15b, 1
je 0x140053db1
lea rcx, [rbp + 0xb0]
call fcn.140009830
jmp 0x140053db1
or dword [rsp + 0x58], 0xffffffff
mov qword [rsp + 0x60], r12
mov qword [rbp - 0x28], r12
mov r13d, r12d
cmp dword [rbp + 0x60], r12d
jbe 0x1400543f3
mov esi, 2
lea rax, [rbp - 0x40]
mov edi, r13d
lea r9, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x68]
shl rdi, 5
add rdi, qword [rbp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x30]
lea rdx, [rbp + 0x1c0]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x28]
lea rcx, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov r8d, r13d
mov r14d, r13d
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x20], rax
call fcn.14008aa48
mov ebx, eax
test eax, eax
jne 0x14005439b
lea rcx, [rbp + 0x30]
xor r8d, r8d
mov edx, r14d
call fcn.14008aed0
mov r12, rax
cmp rax, 1
jb 0x14005435a
xorps xmm0, xmm0
xor eax, eax
lea rcx, [rbp - 0x70]
mov rdx, r12
mov qword [rbp - 0x60], rax
movdqu xmmword [rbp - 0x70], xmm0
call fcn.140054688
mov r14, qword [rbp - 0x70]
xor ecx, ecx
test al, al
je 0x140053f99
test r12, r12
je 0x140053f8f
movzx eax, cx
mov rdi, r14
mov rcx, r12
rep stosw word [rdi], ax
mov rdi, qword [rsp + 0x78]
mov rax, qword [rbp - 0x68]
lea r12, [rax + r12*2]
jmp 0x140053f9d
mov r12, qword [rbp - 0x68]
lea rcx, [rbp + 0x30]
mov r8, r14
mov edx, r13d
call fcn.14008aed0
mov r9b, byte [rsp + 0x50]
xor eax, eax
lea r8, [r12 - 2]
lea rcx, [rbp + 0x4220]
mov rdx, r14
mov qword [rbp + 0x4238], 7
mov qword [rbp + 0x4230], rax
mov word [rbp + 0x4220], ax
call fcn.140053a08
cmp qword [rbp + 0x4238], 8
mov r12, qword [rbp - 0x48]
lea rax, [rbp + 0x4220]
cmovae rax, qword [rbp + 0x4220]
cmp qword [r12 + 0x18], 8
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x4230]
mov qword [rbp - 8], rax
movaps xmm0, xmmword [rbp - 0x10]
movdqa xmmword [rbp - 0x70], xmm0
jb 0x140054021
mov rax, qword [r12]
jmp 0x140054024
mov rax, r12
mov qword [rbp - 0x20], rax
mov rax, qword [r12 + 0x10]
lea rdx, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea rcx, [rbp + 0x4240]
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp + 0x20], xmm0
call fcn.140004530
lea r8, [rbp - 0x70]
lea rdx, [rbp + 0x4200]
mov rcx, rax
call fcn.140005570
lea rcx, [rbp + 0x4240]
call fcn.1400045a0
cmp qword [rbp + 0x4238], 8
jb 0x14005407f
mov rcx, qword [rbp + 0x4220]
call fcn.1400910f4
mov rax, qword [rbp - 0x50]
xor r12d, r12d
test rax, rax
je 0x1400540ad
lea rcx, [rbp + 0x4200]
cmp rax, rcx
je 0x1400540ad
lea rdx, [rbp + 0x4200]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, rax
call fcn.140007850
cmp byte [rdi + 0x19], r12b
je 0x1400540c8
mov rcx, qword [rbp - 0x80]
lea rdx, [rbp + 0x4200]
call fcn.140053b54
jmp 0x14005419d
lea rdx, [rbp + 0x4240]
lea rcx, [rbp + 0x4200]
call fcn.1400052d0
mov rcx, qword [rbp - 0x80]
mov rdx, rax
call fcn.140053b54
lea rcx, [rbp + 0x4240]
call fcn.1400045a0
cmp qword [rbp + 0x4218], 8
mov qword [rsp + 0x30], r12
lea rcx, [rbp + 0x4200]
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
cmovae rcx, qword [rbp + 0x4200]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400542d9
mov rdx, qword [rbp - 0x30]
mov r8d, dword [rbp - 0x78]
lea r9, [rsp + 0x54]
add rdx, qword [rsp + 0x60]
mov rcx, rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14005427d
mov eax, dword [rsp + 0x54]
cmp rax, qword [rbp - 0x78]
jne 0x14005427d
mov r9, qword [rsp + 0x78]
cmp byte [r9 + 0x1c], r12b
je 0x14005418c
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x1400541c8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140054227
lea rcx, [rbp + 0x4200]
call fcn.1400045a0
test r14, r14
je 0x1400541b6
mov rcx, r14
call fcn.1400910f4
inc r13d
cmp r13d, dword [rbp + 0x60]
jae 0x1400543f3
jmp 0x140053ecc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1400096a0
cmp eax, esi
jg 0x14005421e
lea rdx, str.c:_b_build_slavewin64_build_srcchromeinstallerutillzma_util.cc
lea rcx, [rbp + 0xb0]
mov r9d, esi
mov r8d, 0xdb
mov r15d, 0x20
call fcn.1400097c0
lea rdx, str.Error_returned_by_SetFileTime:
lea rcx, [rax + 8]
call fcn.14000a0a0
mov edx, ebx
mov rcx, rax
call fcn.14000a360
test r15b, 0x20
jmp 0x14005432a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.1400096a0
cmp eax, esi
jg 0x140054274
lea rdx, str.c:_b_build_slavewin64_build_srcchromeinstallerutillzma_util.cc
lea rcx, [rbp + 0xb0]
mov r9d, esi
mov r8d, 0xe1
mov r15d, 0x40
call fcn.1400097c0
lea rdx, str.Error_returned_by_CloseHandle:
lea rcx, [rax + 8]
call fcn.14000a0a0
mov edx, ebx
mov rcx, rax
call fcn.14000a360
test r15b, 0x40
jmp 0x14005432a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1400096a0
cmp eax, esi
jg 0x1400542d3
lea rdx, str.c:_b_build_slavewin64_build_srcchromeinstallerutillzma_util.cc
lea rcx, [rbp + 0xb0]
mov r9d, esi
mov r8d, 0xd2
mov r15d, 0x10
call fcn.1400097c0
lea rdx, str.Error_returned_by_WriteFile:
lea rcx, [rax + 8]
call fcn.14000a0a0
mov edx, ebx
mov rcx, rax
call fcn.14000a360
test r15b, 0x10
jmp 0x14005432a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.1400096a0
cmp eax, esi
jg 0x140054326
lea rdx, str.c:_b_build_slavewin64_build_srcchromeinstallerutillzma_util.cc
lea rcx, [rbp + 0xb0]
mov r9d, esi
mov r8d, 0xc9
mov r15d, 8
call fcn.1400097c0
lea rdx, str.Error_returned_by_CreateFile:
lea rcx, [rax + 8]
call fcn.14000a0a0
mov edx, ebx
mov rcx, rax
call fcn.14000a360
test r15b, 8
je 0x140054338
lea rcx, [rbp + 0xb0]
call fcn.140009830
lea rcx, [rbp + 0x4200]
call fcn.1400045a0
test r14, r14
je 0x1400543f3
mov rcx, r14
call fcn.1400910f4
jmp 0x1400543f3
call fcn.1400096a0
cmp eax, esi
jg 0x140054395
lea rdx, str.c:_b_build_slavewin64_build_srcchromeinstallerutillzma_util.cc
lea rcx, [rbp + 0xb0]
mov r9d, esi
mov r8d, 0xaf
mov r15d, 4
call fcn.1400097c0
lea rdx, str.Couldnt_get_file_name
lea rcx, [rax + 8]
call fcn.14000a0a0
test r15b, 4
jmp 0x1400543e0
call fcn.1400096a0
cmp eax, esi
jg 0x1400543dd
lea rdx, str.c:_b_build_slavewin64_build_srcchromeinstallerutillzma_util.cc
lea rcx, [rbp + 0xb0]
mov r9d, esi
mov r8d, 0xa8
mov r15d, esi
call fcn.1400097c0
lea rdx, str.Error_returned_by_SzExtract:
lea rcx, [rax + 8]
call fcn.14000a0a0
mov edx, ebx
mov rcx, rax
call fcn.14000a360
test sil, r15b
je 0x1400543ee
lea rcx, [rbp + 0xb0]
call fcn.140009830
mov ebx, 6
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x68]
call qword [rsp + 0x70]
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x30]
call fcn.14008ae64
mov eax, ebx
mov rcx, qword [rbp + 0x4260]
xor rcx, rsp
call fcn.140091a70
mov rbx, qword [rsp + 0x43b8]
add rsp, 0x4370
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret