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

Disassembly:
push 0xb8
mov eax, 0x5a0e51
call fcn.00598680
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xbc], eax
and dword [ebp - 4], 0
call fcn.0042691e
test al, al
je 0x428b38
push ebp
push edx
pop ecx
pop edi
push eax
push edi
push esp
pop ecx
pop edx
push eax
push edx
pop ecx
push eax
push ecx
push eax
pop edi
pop ecx
pop edx
push esi
pop esp
pop eax
push edx
pop ebp
pop ebx
push ecx
push ebx
push edx
pop edi
push edx
push ecx
pop ecx
push ebx
call fcn.00426bd0
test al, al
je 0x428b5e
pop ebp
pop esp
push edx
push ebx
push ebp
pop esp
push eax
push edx
push eax
pop ecx
push ebp
pop esp
pop edx
pop ebx
push ebx
pop edx
pop edi
push ebp
push edx
push edi
pop ebp
pop ebp
push ebx
push ecx
pop eax
pop eax
pop esi
push ebx
pop ebx
call fcn.00426558
test al, al
je 0x428b80
pop eax
pop esp
pop ecx
pop edi
push ebp
pop ebp
push ecx
pop esp
push edi
pop edx
push ecx
push ebp
push ecx
push eax
pop esi
pop edi
pop eax
pop ebx
pop esi
push esi
push ebp
push esp
push edx
push edi
pop edi
call fcn.004266b1
test al, al
je 0x428b9e
push edx
pop eax
push ebx
pop ebx
push eax
pop ebx
push ebx
pop edx
pop edx
push esp
push ebx
push esi
pop edx
push ebx
push edx
push ecx
pop ebx
push ecx
push edi
push edx
pop ebx
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x14], 7
push eax
push 0x5a355c
mov word [ebp - 0x28], ax
call fcn.00402400
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 1
call fcn.0043a6a9
xor ebx, ebx
call fcn.00426b01
test al, al
je 0x428bf0
push ebx
pop esi
push edx
push ecx
push ebp
pop esp
pop ebp
pop edx
pop ecx
pop edi
push esp
pop ebp
pop edi
push esi
pop ecx
pop esi
push ecx
pop ebp
pop eax
push eax
pop ebp
pop ecx
push ebx
push eax
push edi
call fcn.00426489
test al, al
je 0x428c0a
push edx
pop edx
push eax
pop edi
pop eax
pop esp
pop esi
push eax
push edi
pop edi
pop ebp
pop eax
pop ecx
push eax
push edi
push esp
push ebx
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x428cfe
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push 0x80
push 4
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0xb8], esi
cmp esi, 0xffffffff
je 0x428cfc
call fcn.0042691e
test al, al
je 0x428c83
pop ebx
push ebx
push ecx
pop ecx
push eax
pop edi
push edi
pop ebx
pop edx
push edx
pop ebp
pop edi
pop esp
push eax
push esp
pop esi
push esp
pop esp
push ecx
push esi
push ebx
pop ebx
push edi
pop esp
pop ebx
pop edi
pop esp
mov esi, dword [ebp - 0xb8]
call fcn.0042659d
test al, al
je 0x428c9c
pop ebx
pop eax
push esp
push esi
push eax
pop esp
push ebx
push edx
push ebp
pop ebx
push edi
pop edi
push esi
pop ecx
pop edx
pop edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [ebp - 0xbc]
push eax
mov dword [ebx], eax
call fcn.004257d3
mov esi, eax
mov dword [ebp - 0xc0], esi
pop ecx
test esi, esi
jne 0x428d1e
call fcn.00426b01
test al, al
je 0x428ce2
push ebx
pop esi
push edx
push ecx
push ebp
pop esp
pop ebp
pop edx
pop ecx
pop edi
push esp
pop ebp
pop edi
push esi
pop ecx
pop esi
push ecx
pop ebp
pop eax
push eax
pop ebp
pop ecx
push ebx
push eax
push edi
call fcn.00426489
test al, al
je 0x428cfc
push edx
pop edx
push eax
pop edi
pop eax
pop esp
pop esi
push eax
push edi
pop edi
pop ebp
pop eax
pop ecx
push eax
push edi
push esp
push ebx
xor ebx, ebx
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00427631
push 0
push 1
lea ecx, [ebp + 8]
call fcn.00427631
mov eax, ebx
call fcn.0059863b
ret
push dword [ebx]
push 0
push esi
call fcn.00442fd0
add esp, 0xc
call fcn.0042691e
test al, al
je 0x428d55
pop ebx
push ebx
push ecx
pop ecx
push eax
pop edi
push edi
pop ebx
pop edx
push edx
pop ebp
pop edi
pop esp
push eax
push esp
pop esi
push esp
pop esp
push ecx
push esi
push ebx
pop ebx
push edi
pop esp
pop ebx
pop edi
pop esp
mov esi, dword [ebp - 0xc0]
call fcn.0042659d
test al, al
je 0x428d6e
pop ebx
pop eax
push esp
push esi
push eax
pop esp
push ebx
push edx
push ebp
pop ebx
push edi
pop edi
push esi
pop ecx
pop edx
pop edi
push 0
lea eax, [ebp - 0xc4]
push eax
mov eax, dword [ebp - 0xbc]
push dword [eax]
push esi
push dword [ebp - 0xb8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
call fcn.004265e2
test al, al
je 0x428dad
pop ecx
push eax
push esi
push edx
push esi
push ebx
push edi
pop ebp
push ecx
push edi
push esp
push edx
push ebp
pop ebp
push ecx
pop ecx
pop esi
push edx
pop edi
pop ebp
pop esi
pop esi
pop ebp
pop eax
call fcn.00426444
test al, al
je 0x428dd5
pop eax
push esi
push eax
pop ebp
push ebx
pop esi
push ecx
push eax
push esi
push ebx
pop esi
pop esp
pop ebp
pop esi
push edi
pop esi
push eax
pop eax
push esp
push edx
pop esp
pop edx
push esp
pop edi
push eax
pop ebp
pop ebx
pop ebx
push eax
pop ebx
pop eax
push dword [ebp - 0xb8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0xc0]
jmp 0x428cfe