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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431881
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x484
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
test eax, eax
jne 0x425d30
mov dword [ebp - 0x24], eax
jmp 0x425d36
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x24], ecx
mov edi, dword [eax + 0x58]
mov ebx, vtable.SaFile.0
or esi, 0xffffffff
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], esi
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov dword [ebp - 0x30], vtable.SaFileWriter.0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], esi
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov dword [ebp - 0x20], vtable.SaFileReader.0
xor eax, eax
push 0xfe
xor edx, edx
push eax
lea ecx, [ebp - 0x38a]
push ecx
mov word [ebp - 0x34], dx
mov byte [ebp - 0x32], dl
mov word [ebp - 0x38c], ax
call sub.MSVCR90.dll_memset
xor edx, edx
push 0xfe
push edx
lea eax, [ebp - 0x28a]
push eax
mov word [ebp - 0x28c], dx
call sub.MSVCR90.dll_memset
xor ecx, ecx
push 0xfe
push ecx
lea edx, [ebp - 0x48a]
push edx
mov word [ebp - 0x48c], cx
call sub.MSVCR90.dll_memset
mov eax, dword [edi + 4]
push 0x100
lea ecx, [ebp - 0x48c]
push ecx
push 0x100
lea edx, [ebp - 0x28c]
push edx
push 0x100
lea ecx, [ebp - 0x38c]
push ecx
push 3
lea edx, [ebp - 0x34]
push edx
push eax
call dword [sym.imp.MSVCR90.dll__splitpath_s]
add esp, 0x48
push 0x11f
lea eax, [ebp - 0x18b]
push 0
mov byte [ebp - 4], 2
push eax
mov byte [ebp - 0x18c], 0
call sub.MSVCR90.dll_memset
mov esi, dword [edi + 4]
add esp, 0xc
call fcn.004160d0
cmp eax, 0x8004200d
jne 0x425e46
push 0x43c408
lea ecx, [ebp - 0x60]
push ecx
mov dword [ebp - 0x60], eax
call sub.MSVCR90.dll__CxxThrowException
mov esi, dword [edi]
test esi, esi
jne 0x425e62
mov eax, 0x80070057
push 0x43c408
lea edx, [ebp - 0x64]
push edx
mov dword [ebp - 0x64], eax
call sub.MSVCR90.dll__CxxThrowException
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
call ebx
cmp eax, 0xffffffff
jne 0x425e89
mov eax, 0x80042001
jmp 0x425e51
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.mfc90.dll_Ordinal_820]
mov esi, dword [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x425edd
shr eax, 4
not al
and al, 1
je 0x425edd
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x425edd
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x425edd
push 0x43c408
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x58], 0x80004005
call sub.MSVCR90.dll__CxxThrowException
mov edi, dword [edi + 4]
test edi, edi
jne 0x425efa
mov eax, 0x80070057
push 0x43c408
lea ecx, [ebp - 0x44]
push ecx
mov dword [ebp - 0x44], eax
call sub.MSVCR90.dll__CxxThrowException
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push edi
call ebx
cmp eax, 0xffffffff
jne 0x425f1b
mov eax, 0x80042001
jmp 0x425ee9
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.mfc90.dll_Ordinal_820]
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
je 0x425f3f
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
jne 0x425f54
push 0x43c408
lea edx, [ebp - 0x54]
push edx
mov dword [ebp - 0x54], 0x80042009
call sub.MSVCR90.dll__CxxThrowException
mov edi, ebx
test edi, edi
je 0x426086
mov esi, edi
cmp edi, 0x120
jb 0x425f6d
mov esi, 0x120
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], 0
cmp eax, 0xffffffff
jne 0x425f83
mov eax, 0x80042007
jmp 0x425fa6
push 0
lea ecx, [ebp + 8]
push ecx
push esi
lea edx, [ebp - 0x18c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
and eax, 0x7ffbdffd
add eax, 0x80042003
mov cl, 1
test cl, cl
je 0x425fc1
test eax, eax
jge 0x425fc1
mov dword [ebp - 0x5c], eax
push 0x43c408
lea eax, [ebp - 0x5c]
push eax
call sub.MSVCR90.dll__CxxThrowException
cmp dword [ebp + 8], esi
je 0x425fdf
test cl, cl
je 0x425fdf
push 0x43c408
lea ecx, [ebp - 0x50]
push ecx
mov dword [ebp - 0x50], 0x80042003
call sub.MSVCR90.dll__CxxThrowException
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], 0
cmp eax, 0xffffffff
jne 0x425ff5
mov eax, 0x80042007
jmp 0x426029
push 0
lea edx, [ebp - 0x38]
push edx
push esi
lea ecx, [ebp - 0x18c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x426027
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0x70
sete dl
lea edx, [edx*4 - 0x7ffbdffc]
mov eax, edx
jmp 0x426029
xor eax, eax
mov cl, 1
test cl, cl
je 0x426044
test eax, eax
jge 0x426044
mov dword [ebp - 0x3c], eax
push 0x43c408
lea eax, [ebp - 0x3c]
push eax
call sub.MSVCR90.dll__CxxThrowException
cmp dword [ebp - 0x38], esi
je 0x426062
test cl, cl
je 0x426062
push 0x43c408
lea ecx, [ebp - 0x48]
push ecx
mov dword [ebp - 0x48], 0x8004200b
call sub.MSVCR90.dll__CxxThrowException
sub edi, esi
mov eax, ebx
sub eax, edi
imul eax, eax, 0x64
xor edx, edx
div ebx
mov edx, dword [ebp - 0x24]
push 0
push eax
push 0x401
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x425f56
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
jne 0x426096
mov eax, 0x80042007
jmp 0x4260ce
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
je 0x4260b0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4260b0
mov dword [ebp - 0x1c], 0xffffffff
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
inc eax
neg eax
sbb eax, eax
and eax, 0x80042005
mov bl, 1
test bl, bl
je 0x4260e9
test eax, eax
jge 0x4260e9
mov dword [ebp - 0x4c], eax
push 0x43c408
lea eax, [ebp - 0x4c]
push eax
call sub.MSVCR90.dll__CxxThrowException
mov eax, dword [ebp - 0x2c]
or edi, 0xffffffff
cmp eax, edi
je 0x426108
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x426105
mov eax, 0x80042006
jmp 0x42610a
mov dword [ebp - 0x2c], edi
xor eax, eax
test bl, bl
je 0x426123
test eax, eax
jge 0x426123
push 0x43c408
lea ecx, [ebp - 0x40]
push ecx
mov dword [ebp - 0x40], eax
call sub.MSVCR90.dll__CxxThrowException
mov edx, dword [ebp - 0x24]
push 0
push 0
push 0x402
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x1c]
mov esi, vtable.SaFile.0
mov dword [ebp - 0x20], esi
cmp eax, edi
je 0x426153
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x426153
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], esi
cmp eax, edi
je 0x426174
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x426174
mov dword [ebp - 0x2c], edi
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4