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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66d490
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x718924]
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 0x483f0c
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 0x4840c8
cmp esi, 0xffffffff
je 0x4840c8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0x100000
jae 0x4840a6
test ebx, ebx
je 0x4840a6
lea edi, [ebx + 0x400]
push edi
call fcn.004cba04
add esp, 4
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x483f88
push edi
push 0
push eax
call fcn.004e30c0
mov eax, dword [ebp - 0x2c]
add esp, 0xc
jmp 0x483f8d
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 0x483fcd
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 0x484053
add edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
cmp edi, ebx
jb 0x483fa0
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 0x483ff0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0044e920
push dword [ebp - 0x38]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push 0x67d768
push eax
call fcn.0046f5c0
mov edx, dword [ebp - 0x14]
add esp, 0xc
cmp edx, 8
jb 0x484099
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48408f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x484127
jmp 0x48408f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x484068
movzx edi, di
or edi, 0x80070000
push edi
push str.Failed_read_file:_0x_08x.
push str.kupdate::KDiffVerify::_LoadItemsFromFile
push 0x3d
push str.D:publish_283488_rc_2404Coding_supportwpsupdateUpdateClient_srcprotocolKProcedureImpl.cpp
push 0
call fcn.0048ffd0
mov ebx, dword [ebp - 0x2c]
push ebx
call fcn.004cb4e9
add esp, 0x1c
jmp 0x4840f9
push edx
push ecx
call fcn.004cb4db
add esp, 8
push ebx
call fcn.004cb4e9
add esp, 4
xor edi, edi
jmp 0x4840f9
push str.File_size_too_long.
push str.kupdate::KDiffVerify::_LoadItemsFromFile
push 0x33
push str.D:publish_283488_rc_2404Coding_supportwpsupdateUpdateClient_srcprotocolKProcedureImpl.cpp
push 0
call fcn.0048ffd0
add esp, 0x14
mov edi, 0x80004005
jmp 0x4840f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x4840dd
movzx edi, di
or edi, 0x80070000
push edi
push 0x67fa74
push str.kupdate::KDiffVerify::_LoadItemsFromFile
push 0x2c
push str.D:publish_283488_rc_2404Coding_supportwpsupdateUpdateClient_srcprotocolKProcedureImpl.cpp
push 0
call fcn.0048ffd0
add esp, 0x18
test esi, esi
je 0x484109
cmp esi, 0xffffffff
je 0x484109
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.004cb998
mov esp, ebp
pop ebp
ret
call fcn.004e6589
int3