Function at 0x140053760
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x170
xor esi, esi
mov r13d, r8d
mov r12, rdx
mov dword [rsp + 0x190], esi
cmp qword [rcx + 0x20], 8
mov rdi, rcx
lea rbx, [rcx + 8]
jb 0x14005379d
mov rcx, qword [rbx]
jmp 0x1400537a0
mov rcx, rbx
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140053a59
test rax, rax
je 0x140053a59
lea r9, [rsp + 0x190]
mov r8d, r13d
mov rdx, r12
mov rcx, rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140053911
mov r12d, dword [rsp + 0x190]
cmp r12d, r13d
jne 0x14005386e
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140053866
cmp byte [0x1401148b0], sil
je 0x140053857
call fcn.14003e110
cmp eax, 3
jg 0x140053857
mov esi, 0x80
lea rdx, str.d:_b_build_slavechrome_official_build_src_base_scoped_handle_win.h
lea rcx, [rsp + 0x68]
lea r9d, [rsi - 0x7d]
lea r8d, [rsi - 0x37]
call fcn.1400403f0
lea rdx, str.Check_failed:_false.
lea rcx, [rax + 8]
call fcn.140005bd0
test sil, sil
jns 0x140053866
lea rcx, [rsp + 0x68]
call fcn.14003feb0
mov eax, r12d
jmp 0x140053b33
call fcn.14003e110
cmp eax, 1
jg 0x1400538f5
mov esi, 0x10
lea rdx, str.._file_util_win.cc
lea rcx, [rsp + 0x68]
lea r9d, [rsi - 0xf]
mov r8d, 0x2ce
call fcn.1400403f0
lea rdx, str.wrote
lea rcx, [rax + 8]
call fcn.140005bd0
mov edx, dword [rsp + 0x190]
mov rcx, rax
call fcn.14003f600
lea rdx, str._bytes_to
mov rcx, rax
call fcn.140005bd0
cmp qword [rdi + 0x20], 8
jb 0x1400538d0
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.14003f370
lea rdx, str._expected
mov rcx, rax
call fcn.140005bd0
mov edx, r13d
mov rcx, rax
call fcn.14003f420
test sil, 0x10
je 0x1400539ee
lea rcx, [rsp + 0x68]
and esi, 0xffffffef
call fcn.14003feb0
jmp 0x1400539ee
call fcn.14003e110
cmp eax, 1
jg 0x1400539c0
mov esi, 0xc
lea rdx, str.._file_util_win.cc
lea rcx, [rsp + 0x68]
lea r9d, [rsi - 0xb]
mov r8d, 0x2c9
call fcn.1400403f0
lea rdx, str.writing_file
lea rcx, [rax + 8]
call fcn.140005bd0
cmp qword [rdi + 0x20], 8
jb 0x140053959
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.14003f370
lea rcx, [rsp + 0x40]
mov rdi, rax
call fcn.140042120
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._failed__error_code
mov rcx, rdi
mov ebx, eax
call fcn.140005bd0
mov edx, ebx
mov rcx, rax
call fcn.14003f600
lea rdx, str._description
mov rcx, rax
call fcn.140005bd0
cmp qword [r12 + 0x20], 8
jb 0x1400539b3
mov rdx, qword [r12 + 8]
jmp 0x1400539b8
lea rdx, [r12 + 8]
mov rcx, rax
call fcn.14003f370
test sil, 8
je 0x1400539d3
lea rcx, [rsp + 0x68]
and esi, 0xfffffff7
call fcn.14003feb0
test sil, 4
je 0x1400539ee
and esi, 0xfffffffb
cmp qword [rsp + 0x60], 8
jb 0x1400539ee
mov rcx, qword [rsp + 0x48]
call fcn.1400ab7f0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140053b30
cmp byte [0x1401148b0], al
je 0x140053a40
call fcn.14003e110
cmp eax, 3
jg 0x140053a40
mov r9d, 3
lea rdx, str.d:_b_build_slavechrome_official_build_src_base_scoped_handle_win.h
lea rcx, [rsp + 0x68]
lea r8d, [r9 + 0x46]
bts esi, 8
call fcn.1400403f0
lea rdx, str.Check_failed:_false.
lea rcx, [rax + 8]
call fcn.140005bd0
bt esi, 8
jae 0x140053b30
lea rcx, [rsp + 0x68]
call fcn.14003feb0
jmp 0x140053b30
call fcn.14003e110
cmp eax, 1
jg 0x140053b05
mov esi, 3
lea rdx, str.._file_util_win.cc
lea rcx, [rsp + 0x68]
lea r9d, [rsi - 2]
mov r8d, 0x2bc
call fcn.1400403f0
lea rdx, str.CreateFile_failed_for_path
lea rcx, [rax + 8]
call fcn.140005bd0
cmp qword [rdi + 0x20], 8
jb 0x140053aa1
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.14003f370
lea rcx, [rsp + 0x40]
mov rdi, rax
call fcn.140042120
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._error_code
mov rcx, rdi
mov ebx, eax
call fcn.140005bd0
mov edx, ebx
mov rcx, rax
call fcn.14003f600
lea rdx, str._error_text
mov rcx, rax
call fcn.140005bd0
cmp qword [rbp + 0x20], 8
jb 0x140053af9
mov rdx, qword [rbp + 8]
jmp 0x140053afd
lea rdx, [rbp + 8]
mov rcx, rax
call fcn.14003f370
test sil, 2
je 0x140053b18
lea rcx, [rsp + 0x68]
and esi, 0xfffffffd
call fcn.14003feb0
test sil, 1
je 0x140053b30
cmp qword [rsp + 0x60], 8
jb 0x140053b30
mov rcx, qword [rsp + 0x48]
call fcn.1400ab7f0
or eax, 0xffffffff
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret