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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d2b0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
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 eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x3c], ecx
jb 0x473acc
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
mov dword [ebp - 0x40], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x473afa
cmp edi, 0xffffffff
jne 0x473b43
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jle 0x473b0e
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push esi
push str.Failed_open_file:_0x_08x.
push str.kupdate::KDiffVerify::_LoadItemsFromFile
push 0x2a
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcprotocolKProcedureImpl.cpp
push 0
call fcn.0041a9b0
add esp, 0x18
test edi, edi
je 0x473b3c
cmp edi, 0xffffffff
je 0x473b3c
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
jmp 0x473c7c
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
mov dword [ebp - 0x30], esi
cmp esi, 0x100000
jae 0x473c55
test esi, esi
je 0x473c55
lea eax, [esi + 0x400]
push eax
call fcn.004b7ad5
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x473b8e
lea eax, [esi + 0x400]
push eax
push 0
push ebx
call fcn.004ba010
add esp, 0xc
jmp 0x473b90
xor ebx, ebx
mov dword [ebp - 0x38], esi
cmp esi, 0x400
jb 0x473ba2
mov dword [ebp - 0x38], 0x400
xor esi, esi
cmp dword [ebp - 0x30], esi
jbe 0x473bd1
mov eax, dword [ebp - 0x38]
push 0
lea edx, [ebp - 0x34]
push edx
push eax
lea ecx, [esi + ebx]
push ecx
push edi
mov dword [ebp - 0x34], 0
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x473c12
add esi, dword [ebp - 0x34]
cmp esi, dword [ebp - 0x30]
jb 0x473ba9
lea edx, [ebx + 2]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00402580
mov eax, dword [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
push 0x5516a8
push ecx
mov byte [ebp - 4], 1
call fcn.004130e0
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.0051c7a0
push ebx
call fcn.004b9ded
add esp, 4
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x473c7c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jle 0x473c26
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push esi
push str.Failed_read_file:_0x_08x.
push str.kupdate::KDiffVerify::_LoadItemsFromFile
push 0x3b
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcprotocolKProcedureImpl.cpp
push 0
call fcn.0041a9b0
push ebx
call fcn.004b9ded
add esp, 0x1c
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
jmp 0x473c7c
push str.File_size_too_long.
push str.kupdate::KDiffVerify::_LoadItemsFromFile
push 0x31
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcprotocolKProcedureImpl.cpp
push 0
call fcn.0041a9b0
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, 0x80004005
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