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

Disassembly:
push 0x2c8
mov eax, 0x5d2acd
call fcn.0059a07b
mov eax, ecx
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xe4], eax
lea ecx, [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0xf
push 0xc
mov dword [ebp - 0x44], eax
push str.SimpleLogger
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x44], al
call fcn.004057b8
and dword [ebp - 4], 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.00468a20
pop ecx
pop ecx
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 2
cmp eax, 0x10
jb 0x42a612
mov ecx, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], ecx
cmp eax, 0x1000
jb 0x42a609
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.004048a9
mov eax, dword [ebp - 0xc4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc0]
push eax
push ecx
call fcn.00599f8e
pop ecx
pop ecx
and dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0xd0]
mov byte [ebp - 0x44], 0
push 0xf
pop esi
mov dword [ebp - 0x30], esi
test ecx, ecx
je 0x42a671
push ecx
push ecx
mov eax, esp
mov dword [ebp - 0xdc], str.G:Projectsuninstall_toolUninstallToolUninstallerCache.cpp
push 2
sub esp, 0xc
mov dword [ebp - 0xd8], 0x8d
mov edi, esp
mov dword [ebp - 0xd4], str.CUninstallCache::Load
lea esi, [ebp - 0xdc]
mov dword [eax], str.Loading_cache
mov dword [eax + 4], 0xd
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004281d0
push 0xf
pop esi
mov ecx, dword [ebp - 0xcc]
test ecx, ecx
je 0x42a680
call fcn.00411e49
push 3
xor eax, eax
lea ecx, [ebp - 0x2d4]
pop edi
push eax
push 1
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xc4], eax
mov dword [ebp - 4], edi
call fcn.00469e50
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 4
push eax
mov ecx, 0x668598
call fcn.004060a2
mov eax, dword [eax]
xor ecx, ecx
and dword [ebp - 0x44], 0
and dword [ebp - 0x34], 0
mov word [ebp - 0x44], cx
lea ecx, [ebp - 0x44]
push eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x30], 7
call fcn.00404983
mov ecx, dword [ebp - 0xa8]
mov byte [ebp - 4], 7
lea ecx, [ecx - 0x10]
call fcn.00405641
push str.cache.dat
lea ecx, [ebp - 0x44]
call fcn.00406547
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
xor ecx, ecx
push ecx
push 0x80
push edi
push ecx
push ecx
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc4], eax
cmp eax, 0xffffffff
je 0x42aded
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.005649e3
and dword [ebp - 0xc0], 0
pop ecx
push 0
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xb0], eax
push ecx
push edi
push eax
push dword [ebp - 0xc4]
mov dword [ebp - 0xe0], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xc0], edi
jne 0x42aab2
mov ecx, dword [ebp - 0xb0]
cmp byte [ecx], 0x1f
je 0x42a79e
push str.cache_file_of_old_format__skip_it
lea ecx, [ebp - 0x114]
call fcn.0042a466
push 0x64360c
lea eax, [ebp - 0x114]
jmp 0x42ae08
xor eax, eax
mov dword [ebp - 0x60], esi
push edi
push ecx
mov dword [ebp - 0x74], eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x74], al
call fcn.004057b8
push 1
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.0042e9d4
add esp, 0xc
mov eax, dword [ebp - 0x60]
mov byte [ebp - 4], 0xa
cmp eax, 0x10
jb 0x42a81c
mov ecx, dword [ebp - 0x74]
inc eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], ecx
cmp eax, 0x1000
jb 0x42a813
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.004048a9
mov eax, dword [ebp - 0xac]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xa8]
push eax
push ecx
call fcn.00599f8e
pop ecx
pop ecx
and dword [ebp - 0x64], 0
mov dword [ebp - 0x60], esi
mov byte [ebp - 0x74], 0
cmp dword [ebp - 0xc0], edi
jne 0x42aaa7
cmp dword [ebp - 0x78], 0x10
lea eax, [ebp - 0x8c]
push 0xffffffffffffffff
cmovae eax, dword [ebp - 0x8c]
lea ecx, [ebp - 0x2d4]
push eax
call fcn.0046c3e0
test eax, eax
jne 0x42aaa7
push eax
lea ecx, [ebp - 0x2d4]
call fcn.0046b650
push 0
push str.version
mov ecx, eax
mov dword [ebp - 0xb8], eax
call fcn.0046ddd0
mov edi, eax
mov dword [ebp - 0x18], esi
xor eax, eax
mov dword [ebp - 0xcc], edi
push 0xc
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x2c]
push str.SimpleLogger
mov dword [ebp - 0xc8], edi
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
call fcn.004057b8
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0xd8]
push eax
call fcn.00468a20
pop ecx
pop ecx
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0xd
cmp eax, 0x10
jb 0x42a908
mov ecx, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xac], ecx
cmp eax, 0x1000
jb 0x42a8ff
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.004048a9
mov eax, dword [ebp - 0xa8]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xac]
push eax
push ecx
call fcn.00599f8e
pop ecx
pop ecx
and dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x2c], 0
test ecx, ecx
je 0x42a958
lea eax, [ebp - 0xc8]
mov dword [ebp - 0x50], str.G:Projectsuninstall_toolUninstallToolUninstallerCache.cpp
push eax
push 0xb
push str.Version:_
push 2
sub esp, 0xc
mov dword [ebp - 0x4c], 0xb2
mov edi, esp
mov dword [ebp - 0x48], str.CUninstallCache::Load
lea esi, [ebp - 0x50]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0040b9be
mov edi, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xd4]
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x42a96b
call fcn.00411e49
cmp edi, 3
jne 0x42aaa7
mov ecx, dword [ebp - 0xb8]
push str.CacheItem
call fcn.0046b650
mov esi, eax
test esi, esi
je 0x42aaa7
push 0
push 0x5ef4c8
mov ecx, esi
call fcn.0046b020
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00474980
pop ecx
pop ecx
push 0
push str.location
mov ecx, esi
mov byte [ebp - 4], 0xe
call fcn.0046b020
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00474980
pop ecx
pop ecx
push 0
push str.iconPath
mov ecx, esi
mov byte [ebp - 4], 0xf
call fcn.0046b020
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00474980
pop ecx
pop ecx
push 0
push str.iconIndex
mov ecx, esi
mov byte [ebp - 4], 0x10
call fcn.0046ddd0
push 0
push str.size
mov ecx, esi
mov dword [ebp - 0xb8], eax
call fcn.0046ddd0
push 0x10
mov edi, eax
call fcn.005649a6
mov edx, eax
pop ecx
mov dword [ebp - 0xcc], edx
mov byte [ebp - 4], 0x11
test edx, edx
je 0x42aa51
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
push edi
cmovae ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x5c]
push dword [ebp - 0xb8]
cmp dword [ebp - 0x48], 8
push ecx
cmovae eax, dword [ebp - 0x5c]
mov ecx, edx
push eax
call fcn.0042a3f4
mov edi, eax
jmp 0x42aa53
xor edi, edi
mov ecx, dword [ebp - 0xb4]
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 0x10
push eax
call fcn.00429e0c
push str.CacheItem
mov ecx, esi
mov eax, dword [eax]
mov dword [eax + 0x20], edi
call fcn.0046c2e0
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0040491b
lea ecx, [ebp - 0x5c]
call fcn.0040491b
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0xa
call fcn.0040491b
jmp 0x42a986
lea ecx, [ebp - 0x8c]
call fcn.00405792
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x42ab01
mov ecx, dword [ebp - 0x44]
lea eax, [eax*2 + 2]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xac], ecx
cmp eax, 0x1000
jb 0x42aaf8
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.004048a9
mov eax, dword [ebp - 0xa8]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xac]
push eax
push ecx
call fcn.00599f8e
pop ecx
pop ecx
and dword [ebp - 0x34], 0
lea ecx, [ebp - 0x2d4]
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.0046a260
mov eax, dword [ebp - 0xb0]
mov esi, dword [ebp - 0xb4]
jmp 0x42adc4
test eax, eax
je 0x42adcf
push eax
call fcn.005649de
pop ecx
mov eax, dword [ebp - 0xc4]
test eax, eax
je 0x42ade0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 8], 0
seta al
call fcn.00599fcd
ret
push str.unable_to_open_file
lea ecx, [ebp - 0x108]
call fcn.0042a466
push 0x64360c
lea eax, [ebp - 0x108]
push eax
call fcn.0059dd8c
int3