Function at 0x140013020
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400c4a20]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rcx
cmp qword [rcx + 0x18], 8
jb 0x14001305d
mov rcx, qword [rcx]
xor r13d, r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r13 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400132f6
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400130e5
lea r9d, [r13 + 0x4e]
lea r8, str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerIncludeSHA256Gen.cpp
lea edx, [r13 + 2]
lea rcx, [rbp - 0x40]
call fcn.14000b798
nop
lea rdx, str._CSHA256Gen::cal_FileMapping__check_file_size_error
lea rcx, [0x1400c7310]
call fcn.14001119c
nop
lea rcx, [rbp - 0x40]
call fcn.14000b9c4
jmp 0x14001334a
mov qword [rbp - 0x30], r13
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea r14d, [r9 + 2]
mov r8d, r14d
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
mov qword [rbp - 0x38], rax
lea rcx, [rax + 1]
test rcx, 0xfffffffffffffffe
jne 0x140013177
lea r9d, [r14 + 0x52]
lea r8, str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerIncludeSHA256Gen.cpp
mov edx, r14d
lea rcx, [rbp - 0x40]
call fcn.14000b798
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str._CSHA256Gen::cal_FileMapping__CreateFileMapping_fail__error:
lea rcx, [0x1400c7310]
call fcn.14001119c
mov rcx, rax
mov edx, ebx
call fcn.14000856c
nop
lea rcx, [rbp - 0x40]
call fcn.14000b9c4
nop
lea rax, [rsi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001334a
jmp 0x1400132eb
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r12, rax
mov qword [rbp - 0x30], rax
test rax, rax
jne 0x1400131e8
lea r9d, [rax + 0x5a]
lea r8, str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerIncludeSHA256Gen.cpp
mov edx, r14d
lea rcx, [rbp - 0x40]
call fcn.14000b798
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str._CSHA256Gen::cal_FileMapping__MapViewOfFile_fail__error:
lea rcx, [0x1400c7310]
call fcn.14001119c
mov rcx, rax
mov edx, ebx
call fcn.14000856c
nop
lea rcx, [rbp - 0x40]
call fcn.14000b9c4
nop
jmp 0x1400132eb
mov r9d, ebx
mov r8, r12
lea rdx, [rbp - 0x28]
call fcn.140013a00
lea rbx, [rdi + 0x20]
cmp rbx, rax
je 0x14001320e
mov r8b, r13b
mov rdx, rax
mov rcx, rbx
call fcn.1400036d0
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x140013249
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013244
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013387
call fcn.1400222c0
cmp qword [rdi + 0x30], r13
jne 0x14001329a
mov r9d, 0x60
lea r8, str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerIncludeSHA256Gen.cpp
mov edx, r14d
lea rcx, [rbp - 0x40]
call fcn.14000b798
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str._CSHA256Gen::cal_FileMapping__sha256_crypt_fail__error:
lea rcx, [0x1400c7310]
call fcn.14001119c
mov rcx, rax
mov edx, ebx
call fcn.14000856c
nop
lea rcx, [rbp - 0x40]
call fcn.14000b9c4
jmp 0x1400132e2
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400132ac
mov r14, qword [rbx]
mov rcx, r14
jmp 0x1400132b2
mov rcx, rbx
mov r14, rbx
mov r13, qword [rax + 0x10]
add r13, rcx
cmp qword [rbx + 0x18], 0x10
jb 0x1400132c3
mov rbx, qword [rbx]
cmp rbx, r13
je 0x1400132df
sub r14, rbx
movsx ecx, byte [rbx]
call fcn.140067214
mov byte [r14 + rbx], al
inc rbx
cmp rbx, r13
jne 0x1400132cb
xor r13d, r13d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001334a
mov r9d, 0x47
lea r8, str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerIncludeSHA256Gen.cpp
lea edx, [r9 - 0x45]
lea rcx, [rbp - 0x40]
call fcn.14000b798
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str._CSHA256Gen::cal_FileMapping__cannot_open_file__error:
lea rcx, [0x1400c7310]
call fcn.14001119c
mov rcx, rax
mov edx, ebx
call fcn.14000856c
nop
lea rcx, [rbp - 0x40]
call fcn.14000b9c4
lea rax, [r15 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140013353
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rdi + 0x30], r13
setne al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140080bf0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140065e1c
nop
int3