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

Disassembly:
push 0xf4
mov eax, 0x59043e
call fcn.005892d1
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0xf4], ebx
mov dword [ebp - 0xfc], esi
push esi
xor eax, eax
mov dword [ebp - 4], esi
push 0x60dbc0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], esi
mov word [ebp - 0x28], ax
call fcn.00403020
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 1
call fcn.0042b3cd
call fcn.0041cb2f
test al, al
je 0x41a6cb
pop ecx
pop ecx
push esi
pop edx
push ebp
push ebx
pop edi
push ebx
push esi
pop ecx
push esp
pop edx
pop esi
push ecx
pop edx
push edi
xor esi, 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 0x41a9ad
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push esi
cmovae eax, dword [ebp + 0xc]
push 0x80
push 4
push esi
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xe8], eax
cmp eax, 0xffffffff
jne 0x41a723
push 0x60dbc0
mov ecx, ebx
call fcn.00402db0
jmp 0x41a9b8
call fcn.0041cb2f
test al, al
je 0x41a746
push ecx
pop ebp
push ecx
push ecx
pop ebx
push edx
pop edx
pop esi
push edx
push ebx
push esi
pop edx
pop eax
push edx
pop edi
pop ebp
pop ebx
push ebx
pop edx
push esi
pop eax
push ebp
push ebp
pop edx
pop ebx
push esi
call fcn.0041d093
test al, al
je 0x41a76a
push esp
push ebx
push ebp
pop edx
pop edi
push esi
pop edi
pop ebx
pop esi
push edx
push eax
push ebx
pop eax
push edx
push ebp
pop esi
push edi
push esi
push ecx
pop esp
push ecx
pop esi
push ecx
pop eax
push edi
push ebx
pop edi
xor ebx, ebx
push ebx
push dword [ebp - 0xe8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xec], eax
inc eax
push eax
mov dword [ebp - 0xf8], eax
call fcn.00414530
mov dword [ebp - 0xf0], eax
pop ecx
test eax, eax
jne 0x41a7c8
mov ecx, dword [ebp - 0xf4]
push 0x60dbc0
call fcn.00402db0
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00402ec0
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.00402ec0
mov eax, dword [ebp - 0xf4]
jmp 0x41a9d0
call fcn.0041cd57
test al, al
je 0x41a7f0
pop ebx
pop esi
push edx
push edi
pop edi
push ecx
push eax
push ebp
push ebx
push edi
push eax
pop ebp
push edx
pop esi
push ebx
push esp
pop esi
pop ebx
pop edi
push ecx
pop esp
push eax
push ecx
push edx
pop ebx
pop esi
pop eax
push esp
pop edx
pop esp
pop esi
call fcn.0041cc88
test al, al
je 0x41a80a
push eax
push esp
pop eax
push esp
push eax
push edx
pop eax
pop ebp
pop eax
push esi
pop edi
push eax
pop edx
push esp
push edx
push ebp
push edx
call fcn.0041ca60
test al, al
je 0x41a82b
push ebp
pop ebp
push ecx
push edx
pop edi
push edi
push eax
push esp
pop esi
push esp
pop ebx
pop esp
push edx
pop ecx
push edi
push esi
pop edi
push edi
pop edi
pop ebp
push ebx
push esp
pop esi
push esp
push dword [ebp - 0xf8]
mov esi, dword [ebp - 0xf0]
push 0
push esi
call fcn.00434140
add esp, 0xc
lea eax, [ebp - 0x100]
push 0
push eax
push dword [ebp - 0xec]
push esi
push dword [ebp - 0xe8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
call fcn.0041ce26
test al, al
je 0x41a87e
pop ebx
push ebp
push ebx
pop esi
push ecx
push edx
pop ecx
pop esi
pop esp
pop ecx
pop edx
push eax
pop edx
pop esi
pop ecx
push ecx
push esi
pop edi
push esi
push edi
push ebp
push edi
pop ecx
call fcn.0041ce6b
test al, al
je 0x41a8a6
push ecx
pop ecx
pop ebp
push esp
pop edi
pop ebx
pop esi
pop esi
pop ebp
pop ebp
pop edx
push ebx
pop esi
push esi
push ecx
pop ebp
pop eax
push esp
push edi
pop esi
pop edi
pop edx
push ebx
push edx
pop eax
pop esp
push ebp
push edi
pop esi
push eax
push esp
push dword [ebp - 0xe8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xec]
mov ebx, dword [ebp - 0xf0]
lea ecx, [ebp - 0xe4]
push ebx
call fcn.0042bd9b
push ebx
call fcn.004144ea
pop ecx
call fcn.0041cd9c
test al, al
je 0x41a8f7
pop ebp
pop ecx
push esi
push ebp
pop eax
pop esi
pop edx
push ebx
push edx
pop esi
pop edi
push ecx
pop esp
push eax
pop ebp
push eax
push ebx
push ecx
pop edi
push ebx
pop ecx
pop edx
pop ebp
push eax
push esp
pop ebx
push esi
pop esi
push edi
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xe4]
call fcn.0042b5e6
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.0042c00f
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.004032b0
call fcn.0041cf3a
test al, al
je 0x41a942
pop esp
push edx
pop edx
pop esi
pop ebx
pop edx
push eax
pop edx
push edx
push ebp
push edx
push esi
pop eax
push ecx
push ebp
push eax
pop eax
pop esp
pop edi
call fcn.0041d162
test al, al
je 0x41a966
push esi
pop eax
pop esp
pop esi
push edi
pop edx
push eax
push ecx
pop esi
pop edi
push ecx
push ebp
push edi
pop esi
push ecx
pop eax
push ecx
push ebx
pop esp
push esp
pop eax
push eax
pop edx
pop esp
push eax
pop esp
pop esp
call fcn.0041caa5
test al, al
je 0x41a986
pop ebx
push esp
pop ecx
pop ebx
pop ebp
pop esp
pop eax
pop ecx
pop edx
push ebp
pop edx
push esi
push esp
push esi
pop esp
push esp
push ebp
push esp
push edx
push edi
push edi
push eax
push ebx
xor esi, esi
cmp dword [ebp - 0x30], esi
jbe 0x41a99c
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403120
push esi
push 1
lea ecx, [ebp - 0x40]
call fcn.00402ec0
mov ebx, dword [ebp - 0xf4]
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.00405f90
push esi
push 1
lea ecx, [ebp - 0x28]
call fcn.00402ec0
push esi
push 1
lea ecx, [ebp + 0xc]
call fcn.00402ec0
mov eax, ebx
call fcn.0058928c
ret