Function at 0x45f590
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52b296
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x590cc0]
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, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x830], ebx
mov dword [ebp - 0x818], 7
mov dword [ebp - 0x81c], ebx
mov word [ebp - 0x82c], cx
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], ebx
jb 0x45f5f0
mov eax, dword [eax]
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
mov dword [ebp - 0x838], edi
mov byte [ebp - 4], 1
cmp edi, ebx
je 0x45f61b
cmp edi, 0xffffffff
jne 0x45f681
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, ebx
jle 0x45f62f
and eax, 0xffff
or eax, 0x80070000
push eax
push str.Failed_CreateFile:_0x_08x.
push str.kupdate::KSendInfoThread::_ReadSavedSendInfo
push 0xe7
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcinfocollectSendInfoToSvr.cpp
push 5
call fcn.0041a9b0
add esp, 0x18
lea eax, [ebp - 0x82c]
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov word [esi], dx
call fcn.00402630
cmp edi, ebx
je 0x45f7b6
cmp edi, 0xffffffff
je 0x45f7b6
jmp 0x45f7af
push ebx
push edi
mov dword [ebp - 0x834], ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 0x830], eax
cmp eax, 0x400
jb 0x45f6bf
push str.Send_info_file_exceed_max_filesize.
push str.kupdate::KSendInfoThread::_ReadSavedSendInfo
push 0xf0
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcinfocollectSendInfoToSvr.cpp
push 5
call fcn.0041a9b0
add esp, 0x14
jmp 0x45f792
push 0x7fe
lea eax, [ebp - 0x80e]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x810], dx
call fcn.004ba010
mov edx, dword [ebp - 0x830]
add esp, 0xc
push ebx
lea ecx, [ebp - 0x834]
push ecx
push edx
lea eax, [ebp - 0x810]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x45f767
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, ebx
jle 0x45f712
and eax, 0xffff
or eax, 0x80070000
push eax
push str.Failed_ReadFile:_0x_08x.
push str.kupdate::KSendInfoThread::_ReadSavedSendInfo
push 0xf6
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcinfocollectSendInfoToSvr.cpp
push 5
call fcn.0041a9b0
xor ecx, ecx
add esp, 0x18
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
lea edx, [ebp - 0x82c]
mov word [esi], cx
push edx
mov ecx, esi
call fcn.00402630
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x818], 8
jb 0x45f7ce
mov eax, dword [ebp - 0x82c]
push eax
jmp 0x45f7c6
lea eax, [ebp - 0x810]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45f770
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [ebp - 0x82c]
call fcn.00402460
lea eax, [ebp - 0x82c]
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov word [esi], dx
call fcn.00402630
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x818], 8
jb 0x45f7ce
mov ecx, dword [ebp - 0x82c]
push ecx
call fcn.004b9008
add esp, 4
mov eax, esi
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.004b9ff3
mov esp, ebp
pop ebp
ret 8