Function at 0x424788
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0xf4
mov eax, 0x5999a9
call fcn.00591d11
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xfc], ecx
push ecx
mov dword [ebp - 4], ecx
xor eax, eax
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x28]
push 0x617ad8
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004029e0
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 1
call fcn.00433401
call fcn.0042c45f
test al, al
je 0x424801
pop edx
push esi
pop edx
push esi
push ebp
push esp
pop edi
push eax
pop edi
push edx
pop esi
pop esi
push ecx
pop ebx
pop ebx
push ebp
pop esp
push esi
pop ebp
pop eax
pop ecx
push ecx
push eax
pop edi
push esi
pop ebp
push esi
pop ebx
pop ecx
push eax
pop ebp
push edi
call fcn.0042c4a4
test al, al
je 0x42481b
pop esi
push esp
push ecx
pop edx
push ebp
pop edx
push eax
pop eax
push esp
pop ebx
push ebp
push eax
pop esi
pop eax
pop ebx
push edi
push esp
call fcn.0042c79b
test al, al
je 0x424844
push edx
push esp
pop esp
pop esi
push ebx
pop eax
pop edi
push eax
push ecx
pop esp
pop edi
push edi
pop esp
pop ebp
pop ecx
pop ecx
push eax
push eax
push ecx
pop edi
pop ebp
pop ebp
push esp
pop ebx
push ebp
push eax
push ecx
push ebx
pop ebp
pop esp
pop eax
pop ecx
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x424aba
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
xor edi, edi
push edi
push 0x80
push 4
push edi
push 1
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xe8], eax
cmp eax, 0xffffffff
jne 0x4248ae
mov ecx, dword [ebp - 0xec]
push 0x617ad8
call fcn.004026c0
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.00402920
push edi
jmp 0x424ad7
call fcn.0042c306
test al, al
je 0x4248d7
pop esp
pop edx
pop ebx
push esp
push esp
pop esp
push ecx
push ebp
push eax
push eax
push ebx
pop ebx
push ecx
push ecx
push esi
pop edx
pop esi
pop ebp
push eax
push ebx
push ecx
push eax
push edx
pop eax
push esi
push eax
push esp
pop ebx
pop edx
pop esi
pop ecx
push edi
call fcn.0042c5fd
test al, al
je 0x4248f8
push ebp
pop edi
pop edi
push edi
push ebp
pop edi
pop eax
pop edx
pop esp
pop esp
pop edi
pop eax
push ebx
push esi
pop ebx
push ebx
push esp
pop esi
pop ebp
pop ebp
push esi
pop eax
xor edi, edi
push edi
push dword [ebp - 0xe8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xf4], eax
inc eax
push eax
mov dword [ebp - 0xf8], eax
call fcn.0041b9a8
mov esi, eax
mov dword [ebp - 0xf0], esi
pop ecx
test esi, esi
je 0x42488d
call fcn.0042c52e
test al, al
je 0x42494b
push eax
push eax
pop edx
push esp
pop ebp
push esp
push edx
push edi
pop esp
pop ecx
pop esi
push ebx
pop ebp
push esi
pop esi
push eax
pop esi
pop edx
pop edx
mov esi, dword [ebp - 0xf0]
call fcn.0042c34b
test al, al
je 0x424971
push edx
push esi
pop ebx
push esi
push eax
pop edi
push esi
pop ecx
push ecx
pop edi
pop ebx
pop edx
push edx
pop ebx
push edi
push ebx
pop ebp
pop edi
pop esp
push edx
push esp
push esi
pop ecx
push esp
pop ebx
push esi
pop ebp
xor edi, edi
push dword [ebp - 0xf8]
push edi
push esi
call fcn.0043c880
add esp, 0xc
lea eax, [ebp - 0x100]
push edi
push eax
push dword [ebp - 0xf4]
push esi
push dword [ebp - 0xe8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
call fcn.0042c306
test al, al
je 0x4249cc
pop ebp
push esi
push esp
pop esp
push ecx
pop esp
push ecx
push eax
pop eax
pop esp
push edx
push esp
pop edx
push esp
push edi
push ebx
pop edi
pop esp
pop ecx
pop ebx
push ebx
push edx
push ebx
pop esp
push edx
push esi
pop esi
push edi
push edx
push esp
pop esi
mov esi, dword [ebp - 0xf0]
xor edi, edi
push dword [ebp - 0xe8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xf4]
lea ecx, [ebp - 0xe4]
push esi
call fcn.00433dcf
push esi
call fcn.0041b970
pop ecx
call fcn.0042c6cc
test al, al
je 0x424a0b
push edx
push edi
push edx
pop eax
pop esi
push ebx
pop edx
push ebx
push eax
push esi
pop ebp
pop edx
pop eax
push esi
push ebx
pop ebp
push ebp
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xe4]
call fcn.0043361a
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.00420365
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.00402c70
call fcn.0042c4a4
test al, al
je 0x424a5f
push eax
pop esi
pop edi
pop esp
push esi
pop edi
pop ecx
pop ebp
push ebx
pop ebp
push ecx
push ecx
push eax
push edi
push ebx
pop esi
pop eax
pop edx
push esi
push esp
push edi
pop ecx
pop ebx
push ecx
pop ebx
push edx
pop edx
pop esp
pop edx
call fcn.0042c0de
test al, al
je 0x424a7e
push ebp
pop ecx
push esp
pop edx
push ecx
push ebx
push edi
push esp
pop ebx
pop eax
pop edx
pop edx
push ebx
pop esi
pop ecx
push ebx
push esi
pop ecx
push ebx
push edx
push ebp
pop edi
call fcn.0042c2c1
test al, al
je 0x424a98
push edi
pop esp
pop edx
push eax
push edx
pop ebp
push ebx
push esp
push esp
pop esi
pop esp
pop eax
push ebx
push ecx
push esp
push esp
pop ecx
cmp dword [ebp - 0x30], 0
jbe 0x424aae
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402ae0
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00402920
mov ecx, dword [ebp - 0xec]
lea eax, [ebp - 0x28]
push eax
call fcn.004038b0
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00402920
push 0
push 1
lea ecx, [ebp + 0xc]
call fcn.00402920
mov eax, dword [ebp - 0xec]
call fcn.00591ccc
ret