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

Disassembly:
push 0xb8
mov eax, 0x5903f6
call fcn.005892d1
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xc0], eax
and dword [ebp - 4], 0
call fcn.0041cd9c
test al, al
je 0x41a354
push eax
push esp
push ebp
push esi
pop ebp
push ecx
push edi
pop edx
pop edi
pop edi
push ebp
pop eax
push esp
pop ebx
pop esi
push ebx
push edi
pop esp
pop edi
pop ebp
push esi
pop edi
pop esi
call fcn.0041cef5
test al, al
je 0x41a37d
pop edx
pop eax
pop edi
pop ebx
push ebx
pop eax
pop esp
pop esp
push ebx
push eax
pop esp
pop ebx
push esi
push ebp
push esp
push ebx
push edx
pop esp
pop esp
pop esp
push eax
pop eax
push edx
pop esp
push ebx
pop ebx
pop edi
push ebx
pop edx
push esp
pop ecx
pop eax
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x14], 7
push eax
push 0x60dbc0
mov word [ebp - 0x28], ax
call fcn.00403020
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 1
call fcn.0042b3cd
and dword [ebp - 0xb8], 0
call fcn.0041caea
test al, al
je 0x41a3d3
push esi
pop edx
push ecx
pop eax
push edi
push eax
pop ebp
push ecx
push ebx
push esp
pop eax
push ebx
push esi
push edx
pop eax
pop ebx
push esi
pop ecx
push ecx
push eax
pop ebp
push edx
push esp
push esi
call fcn.0041d093
test al, al
je 0x41a3ee
pop edx
pop ecx
pop ebp
pop edx
push ebp
push edi
pop esp
push eax
pop esi
pop ebp
push eax
push esp
pop ecx
pop ebp
pop edx
push esi
pop edx
pop ecx
call fcn.0041cef5
test al, al
je 0x41a408
push esi
pop edi
push eax
pop edi
push esi
push eax
push edx
pop esi
pop ebx
pop esi
push esp
pop ebx
pop esp
pop esi
push edi
push edi
push eax
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 0x41a548
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 dword [ebp - 0xbc], eax
cmp eax, 0xffffffff
je 0x41a541
call fcn.0041cf7f
test al, al
je 0x41a474
pop esp
push ebx
pop edx
pop esp
pop edi
push edi
pop ecx
pop esp
pop ecx
push eax
push edx
push edx
pop esp
push esi
push ebx
push ebx
pop eax
push edi
pop ebp
push esp
push esp
push esi
call fcn.0041ceb0
test al, al
je 0x41a499
push ebp
push edx
pop ebx
pop ebx
push esp
push eax
push edx
pop edx
push ebp
pop ecx
push edx
pop edx
pop esp
push edx
push ebx
pop ebx
push eax
push ecx
pop edx
push ebp
pop edi
pop esi
push esi
pop ecx
push edi
push eax
pop esi
push ebp
call fcn.0041cc43
test al, al
je 0x41a4c0
pop edi
pop edx
pop ebx
push ecx
push edx
pop esi
push edx
push esi
push esp
push edx
pop eax
pop eax
push edx
pop edi
pop ebp
pop esi
push edi
pop edi
push esp
pop esi
push esp
push esp
pop ecx
pop eax
push edi
push ebp
push edi
pop ebp
pop ebp
push esp
push 0
push dword [ebp - 0xbc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [ebp - 0xc0]
push eax
mov dword [ebx], eax
call fcn.00414530
mov dword [ebp - 0xb8], eax
pop ecx
test eax, eax
jne 0x41a56c
call fcn.0041caea
test al, al
je 0x41a50c
push esi
pop edx
push ecx
pop eax
push edi
push eax
pop ebp
push ecx
push ebx
push esp
pop eax
push ebx
push esi
push edx
pop eax
pop ebx
push esi
pop ecx
push ecx
push eax
pop ebp
push edx
push esp
push esi
call fcn.0041d093
test al, al
je 0x41a527
pop edx
pop ecx
pop ebp
pop edx
push ebp
push edi
pop esp
push eax
pop esi
pop ebp
push eax
push esp
pop ecx
pop ebp
pop edx
push esi
pop edx
pop ecx
call fcn.0041cef5
test al, al
je 0x41a541
push esi
pop edi
push eax
pop edi
push esi
push eax
push edx
pop esi
pop ebx
pop esi
push esp
pop ebx
pop esp
pop esi
push edi
push edi
push eax
and dword [ebp - 0xb8], 0
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00402ec0
push 0
push 1
lea ecx, [ebp + 8]
call fcn.00402ec0
mov eax, dword [ebp - 0xb8]
call fcn.0058928c
ret
push dword [ebx]
push 0
push eax
call fcn.00434140
add esp, 0xc
call fcn.0041cf7f
test al, al
je 0x41a598
pop esp
push ebx
pop edx
pop esp
pop edi
push edi
pop ecx
pop esp
pop ecx
push eax
push edx
push edx
pop esp
push esi
push ebx
push ebx
pop eax
push edi
pop ebp
push esp
push esp
push esi
call fcn.0041ceb0
test al, al
je 0x41a5bd
push ebp
push edx
pop ebx
pop ebx
push esp
push eax
push edx
pop edx
push ebp
pop ecx
push edx
pop edx
pop esp
push edx
push ebx
pop ebx
push eax
push ecx
pop edx
push ebp
pop edi
pop esi
push esi
pop ecx
push edi
push eax
pop esi
push ebp
call fcn.0041cc43
test al, al
je 0x41a5e4
pop edi
pop edx
pop ebx
push ecx
push edx
pop esi
push edx
push esi
push esp
push edx
pop eax
pop eax
push edx
pop edi
pop ebp
pop esi
push edi
pop edi
push esp
pop esi
push esp
push esp
pop ecx
pop eax
push edi
push ebp
push edi
pop ebp
pop ebp
push esp
push 0
lea eax, [ebp - 0xc4]
push eax
mov eax, dword [ebp - 0xc0]
push dword [eax]
push dword [ebp - 0xb8]
push dword [ebp - 0xbc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
call fcn.0041ceb0
test al, al
je 0x41a630
push edx
push edi
pop esp
push edx
push esp
pop ebx
pop ecx
pop edi
push esp
push esi
pop edi
push eax
pop ebp
push eax
push edi
push ebx
pop ecx
push esi
pop ebx
pop ebx
push esi
pop ecx
push esi
pop esp
push edx
push ecx
push eax
pop ebp
pop edi
push ebx
push ecx
pop ecx
call fcn.0041d093
test al, al
je 0x41a64f
push eax
push ecx
pop eax
pop edi
pop esi
pop esp
pop ecx
pop ebx
push ebp
push edi
pop esi
pop edx
pop ebx
pop ebx
pop ebx
push eax
push ebp
push edx
push esi
push esi
pop esp
pop ebx
push dword [ebp - 0xbc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41a548