Function at 0x1400130e8
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 [0x1400bba20]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rcx
cmp qword [rcx + 0x18], 8
jb 0x140013125
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 0x1400133be
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400131ad
lea r9d, [r13 + 0x4e]
lea r8, str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerIncludeSHA256Gen.cpp
lea edx, [r13 + 2]
lea rcx, [rbp - 0x40]
call fcn.14000b3b8
nop
lea rdx, str._CSHA256Gen::cal_FileMapping__check_file_size_error
lea rcx, [0x1400be210]
call fcn.14001117c
nop
lea rcx, [rbp - 0x40]
call fcn.14000b5e4
jmp 0x140013412
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 0x14001323f
lea r9d, [r14 + 0x52]
lea r8, str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerIncludeSHA256Gen.cpp
mov edx, r14d
lea rcx, [rbp - 0x40]
call fcn.14000b3b8
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str._CSHA256Gen::cal_FileMapping__CreateFileMapping_fail__error:
lea rcx, [0x1400be210]
call fcn.14001117c
mov rcx, rax
mov edx, ebx
call fcn.1400081a8
nop
lea rcx, [rbp - 0x40]
call fcn.14000b5e4
nop
lea rax, [rsi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140013412
jmp 0x1400133b3
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 0x1400132b0
lea r9d, [rax + 0x5a]
lea r8, str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerIncludeSHA256Gen.cpp
mov edx, r14d
lea rcx, [rbp - 0x40]
call fcn.14000b3b8
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str._CSHA256Gen::cal_FileMapping__MapViewOfFile_fail__error:
lea rcx, [0x1400be210]
call fcn.14001117c
mov rcx, rax
mov edx, ebx
call fcn.1400081a8
nop
lea rcx, [rbp - 0x40]
call fcn.14000b5e4
nop
jmp 0x1400133b3
mov r9d, ebx
mov r8, r12
lea rdx, [rbp - 0x28]
call fcn.140013ac8
lea rbx, [rdi + 0x20]
cmp rbx, rax
je 0x1400132d6
mov r8b, r13b
mov rdx, rax
mov rcx, rbx
call fcn.1400045a8
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x140013311
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001330c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001344f
call fcn.140028090
cmp qword [rdi + 0x30], r13
jne 0x140013362
mov r9d, 0x60
lea r8, str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerIncludeSHA256Gen.cpp
mov edx, r14d
lea rcx, [rbp - 0x40]
call fcn.14000b3b8
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str._CSHA256Gen::cal_FileMapping__sha256_crypt_fail__error:
lea rcx, [0x1400be210]
call fcn.14001117c
mov rcx, rax
mov edx, ebx
call fcn.1400081a8
nop
lea rcx, [rbp - 0x40]
call fcn.14000b5e4
jmp 0x1400133aa
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140013374
mov r14, qword [rbx]
mov rcx, r14
jmp 0x14001337a
mov rcx, rbx
mov r14, rbx
mov r13, qword [rax + 0x10]
add r13, rcx
cmp qword [rbx + 0x18], 0x10
jb 0x14001338b
mov rbx, qword [rbx]
cmp rbx, r13
je 0x1400133a7
sub r14, rbx
movsx ecx, byte [rbx]
call fcn.14005f9e4
mov byte [r14 + rbx], al
inc rbx
cmp rbx, r13
jne 0x140013393
xor r13d, r13d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140013412
mov r9d, 0x47
lea r8, str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerIncludeSHA256Gen.cpp
lea edx, [r9 - 0x45]
lea rcx, [rbp - 0x40]
call fcn.14000b3b8
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str._CSHA256Gen::cal_FileMapping__cannot_open_file__error:
lea rcx, [0x1400be210]
call fcn.14001117c
mov rcx, rax
mov edx, ebx
call fcn.1400081a8
nop
lea rcx, [rbp - 0x40]
call fcn.14000b5e4
lea rax, [r15 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001341b
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.1400793d0
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.14005e65c
nop
int3