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

Disassembly:
push 0x34
mov eax, 0x4b6551
call fcn.004935c5
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x40], ecx
jb 0x44fec3
mov eax, dword [eax]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x30], edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
call fcn.0047b7a6
test al, al
je 0x44ff38
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x44ff04
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push esi
push str.Failed_open_file:_0x_08x.
push str.kupdate::KDiffVerify::_LoadItemsFromFile
push 0x26
push str.S:_func_improvement_20150701_branchCoding_supportwpsupdateUpdateClientupdateprotocolKProcedureImpl.cpp
push ebx
call fcn.0042f683
add esp, 0x18
cmp edi, ebx
je 0x44ff31
cmp edi, 0xffffffff
je 0x44ff31
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x450088
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp esi, 0x100000
jae 0x450059
cmp esi, ebx
je 0x450059
lea edi, [esi + 2]
push edi
call fcn.004912f9
pop ecx
mov dword [ebp - 0x34], eax
cmp eax, ebx
je 0x44ff7a
push edi
push ebx
push eax
call fcn.00492b40
mov edi, dword [ebp - 0x34]
add esp, 0xc
jmp 0x44ff7c
xor edi, edi
mov eax, 0x400
mov dword [ebp - 0x38], esi
cmp esi, eax
jb 0x44ff8b
mov dword [ebp - 0x38], eax
xor esi, esi
cmp dword [ebp - 0x3c], ebx
jbe 0x44ffb6
push ebx
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x38]
lea eax, [esi + edi]
push eax
push dword [ebp - 0x30]
mov dword [ebp - 0x34], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x450007
add esi, dword [ebp - 0x34]
cmp esi, dword [ebp - 0x3c]
jb 0x44ff92
lea eax, [edi + 2]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042e48d
push dword [ebp - 0x40]
lea eax, [ebp - 0x2c]
push 0x4bdf34
push eax
mov byte [ebp - 4], 1
call fcn.0043d6a4
add esp, 0xc
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0042e109
push edi
call fcn.004926f3
pop ecx
cmp dword [ebp - 0x30], ebx
je 0x450000
cmp dword [ebp - 0x30], 0xffffffff
je 0x450000
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x450088
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x45001b
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push esi
push str.Failed_read_file:_0x_08x.
push str.kupdate::KDiffVerify::_LoadItemsFromFile
push 0x37
push str.S:_func_improvement_20150701_branchCoding_supportwpsupdateUpdateClientupdateprotocolKProcedureImpl.cpp
push ebx
call fcn.0042f683
push edi
call fcn.004926f3
add esp, 0x1c
cmp dword [ebp - 0x30], ebx
je 0x44ff31
cmp dword [ebp - 0x30], 0xffffffff
je 0x44ff31
push dword [ebp - 0x30]
jmp 0x44ff2b
push str.File_size_too_long.
push str.kupdate::KDiffVerify::_LoadItemsFromFile
push 0x2d
push str.S:_func_improvement_20150701_branchCoding_supportwpsupdateUpdateClientupdateprotocolKProcedureImpl.cpp
push ebx
call fcn.0042f683
add esp, 0x14
cmp edi, ebx
je 0x450083
cmp edi, 0xffffffff
je 0x450083
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80004005
call fcn.00493648
ret