Function at 0x45c460
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5391f9
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x58ab78]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 4]
lea ecx, [esi + 4]
mov ebx, dword [ebp + 8]
add ecx, dword [edi + 4]
mov eax, dword [ecx + 4]
test eax, eax
je 0x45c4a8
mov eax, dword [eax + 0x1c]
jmp 0x45c4aa
xor eax, eax
and eax, 1
jne 0x45c5b4
mov eax, dword [ecx + 4]
test eax, eax
je 0x45c4be
mov edx, dword [eax]
jmp 0x45c4c1
or edx, 0xffffffff
test eax, eax
je 0x45c4ca
mov edi, dword [eax + 0x20]
jmp 0x45c4cc
xor edi, edi
test eax, eax
je 0x45c4d5
mov ebx, dword [eax + 0x1c]
jmp 0x45c4d7
xor ebx, ebx
mov dword [ebp - 0x4c], vtable.cptboost::error_info_struct_cptlib::tag_errinfo_file_op__enum_cptlib::FileOp_.0
mov dword [ebp - 0x48], 1
mov dword [ebp - 4], 0
mov dword [ebp - 0x5c], vtable.cptboost::error_info_struct_cptlib::tag_errinfo_handle__int_.0
mov dword [ebp - 0x58], edx
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.0045b440
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.004387e0
mov esi, eax
mov dword [ebp - 0x54], vtable.cptboost::error_info_struct_cptlib::tag_errinfo_sharemode__enum_cptlib::FileShareMode_.0
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x70], vtable.cptboost::error_info_struct_cptlib::tag_errinfo_openmode__enum_cptlib::FileOpenMode_.0
mov dword [ebp - 0x6c], ebx
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 5
push eax
push str.cannot_read_from_file_that_was_opened_in_write_only_mode
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x80], 0x16
mov dword [ebp - 0x7c], 0x58a550
call fcn.004576a0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 6
push ecx
push eax
mov dword [eax + 0x1c], str.__int64___thiscall_cptlib::FileDeviceIn_char_::read_char____int64_
mov dword [eax + 0x20], str.C:workmsiGitMxMSI_Master_Externalscptlibincludecptlib_io_SystemFile.h
mov dword [eax + 0x24], 0x14c
call fcn.00454970
lea ecx, [ebp - 0x54]
push ecx
push eax
call fcn.00454b40
push esi
push eax
call fcn.00437b00
lea ecx, [ebp - 0x5c]
push ecx
push eax
call fcn.004547a0
lea ecx, [ebp - 0x4c]
push ecx
push eax
call fcn.004545d0
add esp, 0x28
push eax
lea ecx, [ebp - 0xa8]
call fcn.00457600
push 0x57950c
lea eax, [ebp - 0xa8]
push eax
call fcn.004a06b8
mov edx, dword [ebp + 0xc]
xor eax, eax
cmp edx, edx
jne 0x45c730
cmp eax, dword [ebp + 0x10]
jne 0x45c730
mov dword [ebp - 0x68], eax
mov eax, dword [edi + 4]
mov eax, dword [eax + esi + 8]
test eax, eax
je 0x45c5dc
mov eax, dword [eax]
jmp 0x45c5df
or eax, 0xffffffff
push 0
lea ecx, [ebp - 0x68]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45c70d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ecx + 4]
add ecx, 4
add ecx, esi
mov edx, dword [ecx + 4]
test edx, edx
je 0x45c615
mov edx, dword [edx]
jmp 0x45c618
or edx, 0xffffffff
mov eax, dword [ecx + 4]
test eax, eax
je 0x45c624
mov ebx, dword [eax + 0x20]
jmp 0x45c626
xor ebx, ebx
test eax, eax
je 0x45c62f
mov edi, dword [eax + 0x1c]
jmp 0x45c631
xor edi, edi
mov dword [ebp - 0x64], vtable.cptboost::error_info_struct_cptboost::errinfo_api_function___char_const__.0
mov dword [ebp - 0x60], 0x54a56c
mov dword [ebp - 4], 0xe
mov dword [ebp - 0x78], vtable.cptboost::error_info_struct_cptlib::tag_errinfo_file_op__enum_cptlib::FileOp_.0
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x70], vtable.cptboost::error_info_struct_cptlib::tag_errinfo_handle__int_.0
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x10
push eax
call fcn.0045b440
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x11
call fcn.004387e0
mov esi, eax
mov dword [ebp - 0x54], vtable.cptboost::error_info_struct_cptlib::tag_errinfo_sharemode__enum_cptlib::FileShareMode_.0
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x5c], vtable.cptboost::error_info_struct_cptlib::tag_errinfo_openmode__enum_cptlib::FileOpenMode_.0
mov dword [ebp - 0x58], edi
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push eax
push str.Could_not_read_file
mov byte [ebp - 4], 0x14
mov dword [ebp - 0x48], 0x58a554
call fcn.004576a0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x15
push ecx
push eax
mov dword [eax + 0x1c], str.__int64___thiscall_cptlib::FileDeviceIn_char_::read_char____int64_
mov dword [eax + 0x20], str.C:workmsiGitMxMSI_Master_Externalscptlibincludecptlib_io_SystemFile.h
mov dword [eax + 0x24], 0x161
call fcn.00454970
lea ecx, [ebp - 0x54]
push ecx
push eax
call fcn.00454b40
push esi
push eax
call fcn.00437b00
lea ecx, [ebp - 0x70]
push ecx
push eax
call fcn.004547a0
lea ecx, [ebp - 0x78]
push ecx
push eax
call fcn.004545d0
lea ecx, [ebp - 0x64]
push ecx
push eax
call fcn.00454230
add esp, 0x30
jmp 0x45c597
mov eax, dword [ebp - 0x68]
xor edx, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049f3ce
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 4]
test eax, eax
je 0x45c73b
mov edx, dword [eax]
jmp 0x45c73e
or edx, 0xffffffff
test eax, eax
je 0x45c747
mov edi, dword [eax + 0x20]
jmp 0x45c749
xor edi, edi
test eax, eax
je 0x45c752
mov ebx, dword [eax + 0x1c]
jmp 0x45c754
xor ebx, ebx
mov dword [ebp - 0x54], vtable.cptboost::error_info_struct_cptlib::tag_errinfo_file_op__enum_cptlib::FileOp_.0
mov dword [ebp - 0x50], 1
mov dword [ebp - 4], 7
mov dword [ebp - 0x5c], vtable.cptboost::error_info_struct_cptlib::tag_errinfo_handle__int_.0
mov dword [ebp - 0x58], edx
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 8
push eax
call fcn.0045b440
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 9
call fcn.004387e0
mov esi, eax
mov dword [ebp - 0x4c], vtable.cptboost::error_info_struct_cptlib::tag_errinfo_sharemode__enum_cptlib::FileShareMode_.0
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x78], vtable.cptboost::error_info_struct_cptlib::tag_errinfo_openmode__enum_cptlib::FileOpenMode_.0
mov dword [ebp - 0x74], ebx
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 0xc
push eax
push str.cannot_read_more_than_4_GiB_at_once
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x64], 0x16
mov dword [ebp - 0x60], 0x58a550
call fcn.004576a0
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xd
push ecx
push eax
mov dword [eax + 0x1c], str.__int64___thiscall_cptlib::FileDeviceIn_char_::read_char____int64_
mov dword [eax + 0x20], str.C:workmsiGitMxMSI_Master_Externalscptlibincludecptlib_io_SystemFile.h
mov dword [eax + 0x24], 0x154
call fcn.00454970
lea ecx, [ebp - 0x4c]
push ecx
push eax
call fcn.00454b40
push esi
push eax
call fcn.00437b00
lea ecx, [ebp - 0x5c]
push ecx
push eax
call fcn.004547a0
lea ecx, [ebp - 0x54]
jmp 0x45c58d