Function at 0x426650
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 0x4318b5
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 0x426680
mov dword [ebp - 0x24], eax
jmp 0x426686
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x24], ecx
mov edi, dword [eax + 0x58]
test edi, edi
je 0x426a4c
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
mov eax, dword [edi + 4]
push 0x100
lea edx, [ebp - 0x48c]
push edx
push 0x100
lea ecx, [ebp - 0x28c]
push ecx
push 0x100
lea edx, [ebp - 0x38c]
push edx
push 3
lea ecx, [ebp - 0x64]
push ecx
push eax
call dword [sym.imp.MSVCR90.dll__splitpath_s]
mov byte [ebp - 4], 2
mov esi, dword [edi + 4]
add esp, 0x24
call fcn.004160d0
cmp eax, 0x8004200d
jne 0x426727
push 0x43c408
lea edx, [ebp - 0x60]
push edx
mov dword [ebp - 0x60], eax
call sub.MSVCR90.dll__CxxThrowException
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0x20]
call fcn.004308d0
test eax, eax
jge 0x426747
mov dword [ebp - 0x58], eax
push 0x43c408
lea eax, [ebp - 0x58]
push eax
call sub.MSVCR90.dll__CxxThrowException
mov esi, dword [edi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
call ebx
cmp eax, 0xffffffff
je 0x42678c
shr eax, 4
not al
and al, 1
je 0x42678c
push esi
call ebx
test al, 1
je 0x42678c
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x42678c
push 0x43c408
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x3c], 0x80004005
call sub.MSVCR90.dll__CxxThrowException
mov edi, dword [edi + 4]
push edi
lea ecx, [ebp - 0x30]
call fcn.004307c0
test eax, eax
jge 0x4267ad
push 0x43c408
lea edx, [ebp - 0x4c]
push edx
mov dword [ebp - 0x4c], eax
call sub.MSVCR90.dll__CxxThrowException
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
je 0x4267c4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
jne 0x4267d9
push 0x43c408
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], 0x80042009
call sub.MSVCR90.dll__CxxThrowException
mov edi, ebx
jmp 0x4267e0
test edi, edi
je 0x426909
mov esi, edi
cmp edi, 0x120
jb 0x4267f7
mov esi, 0x120
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], 0
cmp eax, 0xffffffff
jne 0x42680d
mov eax, 0x80042007
jmp 0x426830
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 0x42684b
test eax, eax
jge 0x42684b
mov dword [ebp - 0x54], eax
push 0x43c408
lea eax, [ebp - 0x54]
push eax
call sub.MSVCR90.dll__CxxThrowException
cmp dword [ebp + 8], esi
je 0x426869
test cl, cl
je 0x426869
push 0x43c408
lea ecx, [ebp - 0x5c]
push ecx
mov dword [ebp - 0x5c], 0x80042003
call sub.MSVCR90.dll__CxxThrowException
mov eax, dword [ebp - 0x2c]
cmp eax, 0xffffffff
jne 0x426878
mov eax, 0x80042007
jmp 0x4268ac
push 0
lea edx, [ebp - 0x34]
push edx
push esi
lea ecx, [ebp - 0x18c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4268aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0x70
sete dl
lea edx, [edx*4 - 0x7ffbdffc]
mov eax, edx
jmp 0x4268ac
xor eax, eax
mov cl, 1
test cl, cl
je 0x4268c7
test eax, eax
jge 0x4268c7
mov dword [ebp - 0x50], eax
push 0x43c408
lea eax, [ebp - 0x50]
push eax
call sub.MSVCR90.dll__CxxThrowException
cmp dword [ebp - 0x34], esi
je 0x4268e5
test cl, cl
je 0x4268e5
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 0x4267e0
mov eax, dword [ebp - 0x18]
or edi, 0xffffffff
cmp dword [eax - 0xc], 0
jne 0x42691c
mov eax, 0x80042007
jmp 0x426950
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x426931
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x426931
mov dword [ebp - 0x1c], edi
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]
sub eax, edi
neg eax
sbb eax, eax
and eax, 0x80042005
mov bl, 1
test bl, bl
je 0x42696b
test eax, eax
jge 0x42696b
mov dword [ebp - 0x38], eax
push 0x43c408
lea eax, [ebp - 0x38]
push eax
call sub.MSVCR90.dll__CxxThrowException
mov eax, dword [ebp - 0x2c]
cmp eax, edi
je 0x426987
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x426984
mov eax, 0x80042006
jmp 0x426989
mov dword [ebp - 0x2c], edi
xor eax, eax
test bl, bl
je 0x4269a2
test eax, eax
jge 0x4269a2
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 0x4269d2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4269d2
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 0x4269f3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4269f3
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
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4