Function at 0x404e00
Capabilities:
Check if file exists
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40bc98
push eax
mov al, byte [esp + 0x1c]
mov dword fs:[0], esp
sub esp, 0x10
test al, al
push ebp
push esi
push edi
mov ebp, ecx
jne 0x404e33
mov ecx, dword [esp + 0x2c]
push 0x414764
call fcn.0040a0ca
lea ecx, [esp + 0xc]
call fcn.00409f2c
push str.LOCAL.DAT
lea eax, [esp + 0x1c]
push 0x4164e4
push eax
mov dword [esp + 0x30], 0
call sub.MFC42u.DLL_operator
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 0
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ecx
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x404f4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x405064
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call sub.MFC42u.DLL_CString::CString_2
mov ecx, ebp
call fcn.00404bc0
mov eax, dword [esp + 0xc]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call edi
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x404ef1
mov dword [esp + 0x24], edi
jmp 0x40506c
push 0x414764
lea ecx, [esp + 0x3c]
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esp + 0x2c]
push 1
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
mov ecx, ebp
mov byte [esp + 0x34], 2
mov dword [esp + 0x40], 0x1a0e
mov dword [esp + 0x3c], 0x1a0f
call fcn.00404e00
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x38]
mov byte [esp + 0x24], 0
call sub.MFC42u.DLL_CString::CString
mov dword [esp + 0x24], edi
jmp 0x40506c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x1000
je 0x404f89
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call sub.MFC42u.DLL_CString::CString_2
mov ecx, ebp
call fcn.00404bc0
jmp 0x405064
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0x32
push esi
call edi
mov al, byte [esp + 0x38]
test al, al
je 0x404ffd
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
push eax
call fcn.0040b3d0
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 4
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push 0
push ecx
push 4
push edx
push esi
mov dword [esp + 0x28], eax
call ebp
push 0
push 0
push 0x3c
push esi
call edi
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x10]
push 0
push eax
push 4
push ecx
push esi
call ebp
push 0
push 0
push 0x46
push esi
call edi
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x10]
push 0
push edx
push 4
push eax
jmp 0x40505a
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x1c]
push 4
push edx
push esi
call ebp
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [esp + 0x2c]
push eax
call fcn.0040a268
push 0
push 0
push 0x3c
push esi
call edi
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push 0
push ecx
push 4
push edx
push esi
call ebp
push 0
push 0
push 0x46
push esi
call edi
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x10]
push 0
push eax
push 4
push ecx
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x1c
ret 0x10