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

Disassembly:
push 0x2c
mov eax, 0x472be2
call fcn.00470dac
mov ebx, ecx
mov dword [ebp - 0x30], ebx
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x40e180
mov eax, dword [ebx]
push 0
push 0x80
push 3
push 0
xor esi, esi
inc esi
push esi
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x40e374
cmp edi, 0xffffffff
je 0x40e374
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
jne 0x40e1ef
push 0x4e
push str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerIncludeSHA256Gen.cpp
push 2
lea ecx, [ebp - 0x30]
call fcn.0040808d
mov edx, str._CSHA256Gen::cal_FileMapping__check_file_size_error
mov dword [ebp - 4], esi
mov ecx, 0x49f450
call fcn.0040c787
lea ecx, [ebp - 0x30]
call fcn.0040822b
jmp 0x40e3b9
and dword [ebp - 0x34], 0
push 2
pop eax
push 0
push 0
push 0
push eax
push 0
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
je 0x40e32a
cmp esi, 0xffffffff
je 0x40e32a
xor eax, eax
push eax
push eax
push eax
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x40e27c
push 0x5a
push str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerIncludeSHA256Gen.cpp
push 2
lea ecx, [ebp - 0x30]
call fcn.0040808d
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, str._CSHA256Gen::cal_FileMapping__MapViewOfFile_fail__error:
mov ecx, 0x49f450
call fcn.0040c787
pop ecx
mov ecx, eax
call fcn.00406084
lea ecx, [ebp - 0x30]
call fcn.0040822b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e3b9
push dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040e835
add ebx, 0x18
push eax
mov ecx, ebx
call fcn.0040239d
lea ecx, [ebp - 0x28]
call fcn.00402c2b
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x28], 0
jne 0x40e2e3
push 0x60
push str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerIncludeSHA256Gen.cpp
push 2
lea ecx, [ebp - 0x2c]
call fcn.0040808d
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, str._CSHA256Gen::cal_FileMapping__sha256_crypt_fail__error:
mov ecx, 0x49f450
call fcn.0040c787
pop ecx
mov ecx, eax
call fcn.00406084
lea ecx, [ebp - 0x2c]
call fcn.0040822b
jmp 0x40e312
cmp dword [ebx + 0x14], 0x10
jb 0x40e2f1
mov edx, dword [ebx]
mov eax, ebx
mov ecx, edx
jmp 0x40e2f7
mov ecx, ebx
mov edx, ebx
mov eax, ecx
mov eax, dword [eax + 0x10]
add eax, ecx
cmp dword [ebx + 0x14], 0x10
jb 0x40e304
mov ebx, dword [ebx]
push edx
push eax
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0040f926
add esp, 0xc
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x30]
jmp 0x40e3b9
push 0x54
push str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerIncludeSHA256Gen.cpp
push 2
lea ecx, [ebp - 0x2c]
call fcn.0040808d
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, str._CSHA256Gen::cal_FileMapping__CreateFileMapping_fail__error:
mov ecx, 0x49f450
call fcn.0040c787
pop ecx
mov ecx, eax
call fcn.00406084
lea ecx, [ebp - 0x2c]
call fcn.0040822b
test esi, esi
je 0x40e3b9
cmp esi, 0xffffffff
je 0x40e3b9
jmp 0x40e270
push 0x47
push str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerIncludeSHA256Gen.cpp
push 2
lea ecx, [ebp - 0x2c]
call fcn.0040808d
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, str._CSHA256Gen::cal_FileMapping__cannot_open_file__error:
mov ecx, 0x49f450
call fcn.0040c787
pop ecx
mov ecx, eax
call fcn.00406084
lea ecx, [ebp - 0x2c]
call fcn.0040822b
test edi, edi
je 0x40e3c0
cmp edi, 0xffffffff
je 0x40e3c0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x28], 0
setne al
call fcn.00470d5b
ret