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

Disassembly:
push 0xf0
mov eax, 0x59cd4d
call fcn.00594fd1
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xf8], ecx
push ecx
mov dword [ebp - 4], ecx
xor eax, eax
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x28]
push 0x619730
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00401820
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 1
call fcn.0043823c
call fcn.00427347
test al, al
je 0x424fc3
push ebx
pop esi
pop edx
push eax
pop edi
push esi
push esp
push esp
pop eax
push edx
push esp
push ebp
pop esi
pop ebx
push ebx
push ebp
push eax
push esp
push esp
push ebx
pop ebp
pop ebx
pop ebx
push ecx
pop ecx
push edx
pop esi
push esp
push esi
push edx
pop eax
pop ebp
call fcn.00427683
test al, al
je 0x424fdc
pop eax
push esp
pop edx
push ebx
pop ecx
pop ebx
pop eax
push eax
pop esi
push edi
push edi
pop esi
push edx
pop ebp
pop esp
push ecx
call fcn.0042738c
test al, al
je 0x424ff5
pop ebx
pop ecx
pop esp
pop ebp
pop esp
pop edi
pop ecx
pop eax
push ecx
push esp
push edi
push ebx
push eax
push ebx
pop ecx
pop esi
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 0x4252ba
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 bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0xe8], ebx
cmp ebx, 0xffffffff
jne 0x425061
mov ecx, dword [ebp - 0xec]
push 0x619730
call fcn.004015d0
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.00401760
push edi
jmp 0x4252d7
call fcn.0042752a
test al, al
je 0x42508c
push esi
push ebx
pop edi
pop ebp
pop ecx
pop edx
push ecx
pop edx
pop ebx
push esi
pop ecx
pop ecx
pop edi
pop eax
push ecx
pop ebx
pop ecx
pop esi
pop edi
pop ebx
pop edx
pop esp
push edi
push ecx
pop esi
pop ecx
pop esi
push esi
mov ebx, dword [ebp - 0xe8]
call fcn.0042752a
test al, al
je 0x4250b1
pop esp
push esi
pop edx
pop esp
pop esi
push edx
push edi
push ecx
pop ecx
push esi
push ecx
push ecx
pop eax
pop esi
pop ecx
pop ecx
push eax
push edx
pop esi
push esi
pop edi
pop esp
push ebp
pop esi
pop edx
pop ebp
pop esi
pop ebp
call fcn.00427347
test al, al
je 0x4250ce
pop eax
pop ecx
pop edi
pop edi
push ecx
push edi
pop ecx
pop ebp
pop ecx
pop ecx
pop esp
push edx
push ebx
push esi
pop eax
pop edi
push esi
push eax
pop ecx
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp - 0xf4], ebx
lea eax, [ebx + 1]
push eax
call fcn.0041efa8
mov edi, eax
mov dword [ebp - 0xf0], edi
pop ecx
test edi, edi
jne 0x42510a
mov ecx, dword [ebp - 0xec]
push 0x619730
call fcn.004015d0
jmp 0x4252c9
call fcn.004278ab
test al, al
je 0x425133
pop ecx
pop esi
push edx
pop esp
pop eax
push esi
push edi
pop esp
push edi
push esi
push esi
push eax
push ebx
pop eax
pop eax
pop ecx
pop eax
push esp
push esp
pop ecx
push eax
push edx
pop ecx
push esp
push esp
push edi
push ebp
push ebx
push edx
pop esi
push esi
push edx
lea eax, [ebx + 1]
push eax
push 0
push edi
call fcn.0043ffd0
add esp, 0xc
lea eax, [ebp - 0xfc]
push 0
push eax
push ebx
push edi
push dword [ebp - 0xe8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
call fcn.004277dc
test al, al
je 0x42517c
pop esp
pop ebp
pop edx
push esp
pop ecx
push ecx
pop esp
pop ecx
pop eax
pop ebx
push eax
pop esi
pop edx
push eax
pop ebp
push edx
pop ebp
push esp
push ebp
push ecx
pop ebx
push ecx
push edi
push eax
push ebp
push ebx
call fcn.00427a04
test al, al
je 0x42519b
push ebx
push edi
push ebp
pop ebx
push eax
push ebp
push eax
push ecx
push esi
pop esp
push esp
pop eax
pop ebx
pop esp
push ecx
pop ebx
pop eax
pop esi
pop ecx
pop eax
push esp
pop esp
call fcn.00427797
test al, al
je 0x4251c5
pop edx
push esp
pop ebx
push edi
push ecx
push ebp
push ecx
push edx
push ebx
pop edx
push edx
pop edi
pop ebp
push esp
push edx
pop ebx
push ecx
push edi
pop esi
push edx
pop ebx
pop edx
push eax
pop ebp
pop esi
push esp
pop ebp
mov edi, dword [ebp - 0xf0]
push dword [ebp - 0xe8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xf4]
lea ecx, [ebp - 0xe4]
push edi
call fcn.00438c0a
push edi
call fcn.0041efa3
pop ecx
call fcn.00427416
test al, al
je 0x425206
pop ebx
push ebx
pop edx
pop ebp
pop ebx
push ebx
pop edi
pop esp
pop edx
push ebp
pop esi
push edx
pop ecx
push esi
push esp
pop ecx
push ebp
pop esp
pop ebx
call fcn.004276c8
test al, al
je 0x42522b
push edi
push eax
pop esp
push esi
push eax
push ebx
pop ebx
pop eax
push edx
push ebp
push esi
push edx
push edi
pop ebp
pop edi
pop ebx
push edx
pop esp
push esp
pop esi
pop ebx
push eax
push esi
pop esi
push ecx
push ebx
pop esi
push ecx
call fcn.004277dc
test al, al
je 0x42524c
pop esp
push edx
push esp
pop edi
push esi
push ebx
pop ebp
pop ebp
push ebx
pop ebp
push esp
push edi
pop ecx
pop ecx
push esp
push esp
pop ecx
push edi
pop edx
pop ebp
push esp
pop eax
push edx
push ecx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xe4]
call fcn.00438455
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.0042c372
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.00404850
call fcn.00427797
test al, al
je 0x425298
push edx
push ebx
pop edi
push esp
pop ecx
push ecx
push edi
pop ebx
pop ebp
pop ebx
pop ebx
push esp
pop edi
pop eax
pop eax
push ebx
push esi
push esp
push ebx
push eax
cmp dword [ebp - 0x30], 0
jbe 0x4252ae
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401920
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00401760
mov ecx, dword [ebp - 0xec]
lea eax, [ebp - 0x28]
push eax
call fcn.00408850
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401760
push 0
push 1
lea ecx, [ebp + 0xc]
call fcn.00401760
mov eax, dword [ebp - 0xec]
call fcn.00594f8c
ret