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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e60a0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x53d9f8]
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]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x38], ecx
cmp dword [eax + 0x14], 8
jb 0x48a17c
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 esi, eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x48a338
cmp esi, 0xffffffff
je 0x48a338
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0x100000
jae 0x48a316
test ebx, ebx
je 0x48a316
lea edi, [ebx + 0x400]
push edi
call fcn.004bee3b
add esp, 4
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x48a1f8
push edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x2c]
add esp, 0xc
jmp 0x48a1fd
xor eax, eax
mov dword [ebp - 0x2c], eax
mov ecx, 0x400
cmp ebx, ecx
cmovb ecx, ebx
xor edi, edi
mov dword [ebp - 0x34], ecx
test ebx, ebx
je 0x48a23d
push 0
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push edx
push ecx
add eax, edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48a2c3
add edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
cmp edi, ebx
jb 0x48a210
mov ebx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ebx + 2]
mov ecx, edx
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48a260
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004033b0
push dword [ebp - 0x38]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push 0x4f1868
push eax
call fcn.00450930
mov edx, dword [ebp - 0x14]
add esp, 0xc
cmp edx, 8
jb 0x48a309
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48a2ff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x48a2ff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x48a2d8
movzx edi, di
or edi, 0x80070000
push edi
push str.Failed_read_file:_0x_08x.
push str.kupdate::KDiffVerify::_LoadItemsFromFile
push 0x3c
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcprotocolKProcedureImpl.cpp
push 0
call fcn.00412750
mov ebx, dword [ebp - 0x2c]
push ebx
call fcn.004bee44
add esp, 0x1c
jmp 0x48a369
push edx
push ecx
call fcn.004bee2d
add esp, 8
push ebx
call fcn.004bee44
add esp, 4
xor edi, edi
jmp 0x48a369
push str.File_size_too_long.
push str.kupdate::KDiffVerify::_LoadItemsFromFile
push 0x32
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcprotocolKProcedureImpl.cpp
push 0
call fcn.00412750
add esp, 0x14
mov edi, 0x80004005
jmp 0x48a369
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x48a34d
movzx edi, di
or edi, 0x80070000
push edi
push 0x505ff0
push str.kupdate::KDiffVerify::_LoadItemsFromFile
push 0x2b
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcprotocolKProcedureImpl.cpp
push 0
call fcn.00412750
add esp, 0x18
test esi, esi
je 0x48a379
cmp esi, 0xffffffff
je 0x48a379
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
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.004bee49
mov esp, ebp
pop ebp
ret