Function at 0x140053b50
Capabilities:
Read file via mapping

Disassembly:
push rbx
push rsi
push r13
sub rsp, 0x3e0
mov rax, qword [0x140112ac0]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
xor ebx, ebx
cmp qword [rcx + 0x20], 8
mov r13, rdx
mov dword [rsp + 0x40], ebx
jb 0x140053b84
mov rcx, qword [rcx + 8]
jmp 0x140053b88
add rcx, 8
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov edx, 0x80000000
lea r8d, [r9 + 7]
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140053f18
test rax, rax
je 0x140053f18
xor r9d, r9d
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 2]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x410], rbp
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140053eaf
test rax, rax
je 0x140053eaf
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
mov qword [rsp + 0x3d0], r12
mov qword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r12, rax
test rax, rax
jne 0x140053d29
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140053c99
cmp byte [0x1401148b0], bl
je 0x140053c84
call fcn.14003e110
cmp eax, 3
jg 0x140053c84
lea r9d, [r12 + 3]
lea r8d, [r12 + 0x49]
lea rdx, str.d:_b_build_slavechrome_official_build_src_base_scoped_handle_win.h
lea rcx, [rsp + 0x98]
lea ebx, [r12 + 0x20]
call fcn.1400403f0
lea rdx, str.Check_failed:_false.
lea rcx, [rax + 8]
call fcn.140005bd0
test bl, 0x20
je 0x140053c99
lea rcx, [rsp + 0x98]
and ebx, 0xffffffdf
call fcn.14003feb0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140053cfb
cmp byte [0x1401148b0], al
je 0x140053ce9
call fcn.14003e110
cmp eax, 3
jg 0x140053ce9
mov r9d, 3
lea rdx, str.d:_b_build_slavechrome_official_build_src_base_scoped_handle_win.h
lea rcx, [rsp + 0x98]
lea r8d, [r9 + 0x46]
or ebx, 0x40
call fcn.1400403f0
lea rdx, str.Check_failed:_false.
lea rcx, [rax + 8]
call fcn.140005bd0
test bl, 0x40
je 0x140053cfb
lea rcx, [rsp + 0x98]
call fcn.14003feb0
xor al, al
mov r12, qword [rsp + 0x3d0]
mov rbp, qword [rsp + 0x410]
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.1400ac220
add rsp, 0x3e0
pop r13
pop rsi
pop rbx
ret
mov qword [rsp + 0x3d8], rdi
xor dil, dil
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x1a0]
mov r9d, 0x10e
mov rdx, r12
mov rcx, rax
call sub.PSAPI.DLL_GetMappedFileNameW
test eax, eax
je 0x140053dcd
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x1a0]
repne scasw ax, word [rdi]
lea rdx, [rsp + 0x1a0]
mov qword [rsp + 0x68], 7
not rcx
mov qword [rsp + 0x60], rbx
mov word [rsp + 0x50], bx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x48]
call fcn.1400041c0
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x70]
call fcn.140069770
mov rcx, r13
mov rdx, rax
call fcn.140069f80
lea rcx, [rsp + 0x70]
call fcn.140069390
cmp qword [rsp + 0x68], 8
jb 0x140053dca
mov rcx, qword [rsp + 0x50]
call fcn.1400ab7f0
mov dil, 1
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140053e3b
cmp byte [0x1401148b0], bl
je 0x140053e26
call fcn.14003e110
cmp eax, 3
jg 0x140053e26
mov ebx, 0x80
lea rdx, str.d:_b_build_slavechrome_official_build_src_base_scoped_handle_win.h
lea rcx, [rsp + 0x98]
lea r9d, [rbx - 0x7d]
lea r8d, [rbx - 0x37]
call fcn.1400403f0
lea rdx, str.Check_failed:_false.
lea rcx, [rax + 8]
call fcn.140005bd0
test bl, bl
jns 0x140053e3b
lea rcx, [rsp + 0x98]
btr ebx, 7
call fcn.14003feb0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140053e9f
cmp byte [0x1401148b0], al
je 0x140053e8c
call fcn.14003e110
cmp eax, 3
jg 0x140053e8c
mov r9d, 3
lea rdx, str.d:_b_build_slavechrome_official_build_src_base_scoped_handle_win.h
lea rcx, [rsp + 0x98]
lea r8d, [r9 + 0x46]
bts ebx, 8
call fcn.1400403f0
lea rdx, str.Check_failed:_false.
lea rcx, [rax + 8]
call fcn.140005bd0
bt ebx, 8
jae 0x140053e9f
lea rcx, [rsp + 0x98]
call fcn.14003feb0
mov al, dil
mov rdi, qword [rsp + 0x3d8]
jmp 0x140053cfd
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140053f11
cmp byte [0x1401148b0], bl
je 0x140053eff
call fcn.14003e110
cmp eax, 3
jg 0x140053eff
mov ebx, 0x10
lea rdx, str.d:_b_build_slavechrome_official_build_src_base_scoped_handle_win.h
lea rcx, [rsp + 0x98]
lea r9d, [rbx - 0xd]
lea r8d, [rbx + 0x39]
call fcn.1400403f0
lea rdx, str.Check_failed:_false.
lea rcx, [rax + 8]
call fcn.140005bd0
test bl, 0x10
je 0x140053f11
lea rcx, [rsp + 0x98]
call fcn.14003feb0
xor al, al
jmp 0x140053d05
xor al, al
jmp 0x140053d0d