Function at 0x4c7a5080
Capabilities:
Check if file exists
Delete file
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x43c
push ebx
push esi
xor eax, eax
push edi
xor esi, esi
push 0x218
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov dword [ebp - 7], eax
mov word [ebp - 3], ax
mov byte [ebp - 1], al
lea eax, [ebp - 0x438]
push esi
push eax
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x10], 0
mov dword [ebp - 0x43c], esi
call sub.msvcrt.dll_memset
push 0x206
lea ecx, [ebp - 0x21e]
push esi
push ecx
mov word [ebp - 0x220], si
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
add esp, 0x18
add eax, 0x234
push eax
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x4c7a5117
push 0xc88
push 0x4c782890
call edi
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4c781d24
lea eax, [ebp - 0x220]
push eax
call esi
test eax, eax
jne 0x4c7a5149
push 0xc8e
push 0x4c782890
call edi
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x220]
push edx
call esi
test eax, eax
jne 0x4c7a5174
push 0xc94
push 0x4c782890
call edi
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
push 0x4c782884
lea eax, [ebp - 0x220]
push eax
call esi
test eax, eax
jne 0x4c7a51a0
push 0xc9a
push 0x4c782890
call edi
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
lea ecx, [ebp - 0x43c]
push ecx
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.msvcrt.dll__wfindfirst]
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp + 0xc], ebx
call dword [sym.imp.msvcrt.dll_time]
add esp, 0xc
cmp ebx, 0xffffffff
je 0x4c7a53cd
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x4c7a51e6
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x430]
cmp ecx, 0x15180
jle 0x4c7a5389
mov eax, dword [ebp + 8]
add eax, 0x234
push eax
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
test eax, eax
jne 0x4c7a522f
push 0xca5
push 0x4c782890
call edi
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
push 0x4c781d24
lea eax, [ebp - 0x220]
push eax
call esi
test eax, eax
jne 0x4c7a525b
push 0xcaa
push 0x4c782890
call edi
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x220]
push edx
call esi
test eax, eax
jne 0x4c7a5289
push 0xcaf
push 0x4c782890
call edi
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
push 0
push 0x100
push 3
push 0
push 0
push 0x80000000
lea eax, [ebp - 0x220]
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x4c7a5389
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0x10
lea edx, [ebp - 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4c7a52e0
push 0xcb7
push 0x4c782890
call edi
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4c7a5305
push 0xcbd
push 0x4c782890
call edi
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
push 0x10
lea eax, [ebp - 0x10]
push 0x4c78260c
push eax
call dword [sym.imp.msvcrt.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4c7a5389
mov ecx, dword [ebp + 8]
test byte [ecx + 8], 2
jne 0x4c7a536b
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4c7a536b
call edi
cmp eax, 2
je 0x4c7a5389
push 0xcc8
push 0x4c782890
call edi
push eax
push 0x4c78142c
call fcn.4c7c02b0
lea eax, [ebp - 0x220]
push eax
push 0x4c782788
call fcn.4c7c02b0
add esp, 0x18
jmp 0x4c7a5389
push 0xcd0
push 0x4c782890
lea ecx, [ebp - 0x220]
push ecx
push 0x4c782760
call fcn.4c7c02b0
add esp, 0x10
mov esi, dword [ebp + 0xc]
lea edx, [ebp - 0x43c]
push edx
push esi
call dword [sym.imp.msvcrt.dll__wfindnext]
add esp, 8
test eax, eax
je 0x4c7a51e0
push esi
call dword [sym.imp.msvcrt.dll__findclose]
add esp, 4
test eax, eax
je 0x4c7a53cd
push 0xcdc
push 0x4c782890
call edi
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8