Function at 0x4279c0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431904
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1160
call fcn.00430f20
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x103
lea eax, [ebp - 0x16b]
push 0
push eax
mov byte [ebp - 0x16c], 0
call sub.MSVCR90.dll_memset
lea ecx, [ebp - 0x16c]
push 0x4355dc
push ecx
call fcn.004161c0
mov esi, vtable.SaFile.0
or ebx, 0xffffffff
add esp, 0x14
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov dword [ebp - 0x20], vtable.SaFileReader.0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ebx
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov dword [ebp - 0x2c], vtable.SaFileWriter.0
mov edx, dword [ebp + 8]
mov byte [ebp - 4], 2
mov esi, dword [edx]
test esi, esi
jne 0x427a75
mov eax, 0x80070057
mov dword [ebp - 0x54], eax
push 0x43c408
lea eax, [ebp - 0x54]
push eax
call sub.MSVCR90.dll__CxxThrowException
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
call edi
cmp eax, ebx
jne 0x427a9b
mov eax, 0x80042001
jmp 0x427a64
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.mfc90.dll_Ordinal_820]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x427ae7
push 0
push 0
push 0x40
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x427ad2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x427afc
push 0x43c408
lea edx, [ebp - 0x58]
push edx
mov dword [ebp - 0x58], 0x80042009
call sub.MSVCR90.dll__CxxThrowException
push 0x43c408
lea ecx, [ebp - 0x5c]
push ecx
mov dword [ebp - 0x5c], 0x80042007
call sub.MSVCR90.dll__CxxThrowException
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x16c]
push eax
call edi
cmp eax, ebx
je 0x427b64
lea ecx, [ebp - 0x16c]
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x28], eax
call dword [sym.imp.mfc90.dll_Ordinal_820]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edi, [esi - 0x40]
test edi, edi
je 0x427c5b
mov esi, edi
cmp edi, 0x1000
jb 0x427b4e
mov esi, 0x1000
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], 0
cmp eax, 0xffffffff
jne 0x427b79
mov eax, 0x80042007
jmp 0x427b98
push 0x43c408
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 0x48], 0x80042001
call sub.MSVCR90.dll__CxxThrowException
push 0
lea ecx, [ebp - 0x34]
push ecx
push esi
lea edx, [ebp - 0x116c]
push edx
push eax
call ebx
neg eax
sbb eax, eax
and eax, 0x7ffbdffd
add eax, 0x80042003
mov cl, 1
test cl, cl
je 0x427bb3
test eax, eax
jge 0x427bb3
mov dword [ebp - 0x44], eax
push 0x43c408
lea eax, [ebp - 0x44]
push eax
call sub.MSVCR90.dll__CxxThrowException
cmp dword [ebp - 0x34], esi
je 0x427bd1
test cl, cl
je 0x427bd1
push 0x43c408
lea ecx, [ebp - 0x4c]
push ecx
mov dword [ebp - 0x4c], 0x80042003
call sub.MSVCR90.dll__CxxThrowException
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], 0
cmp eax, 0xffffffff
jne 0x427be7
mov eax, 0x80042007
jmp 0x427c1b
push 0
lea edx, [ebp - 0x30]
push edx
push esi
lea ecx, [ebp - 0x116c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x427c19
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0x70
sete dl
lea edx, [edx*4 - 0x7ffbdffc]
mov eax, edx
jmp 0x427c1b
xor eax, eax
mov cl, 1
test cl, cl
je 0x427c36
test eax, eax
jge 0x427c36
mov dword [ebp - 0x38], eax
push 0x43c408
lea eax, [ebp - 0x38]
push eax
call sub.MSVCR90.dll__CxxThrowException
cmp dword [ebp - 0x30], esi
je 0x427c54
test cl, cl
je 0x427c54
push 0x43c408
lea ecx, [ebp - 0x50]
push ecx
mov dword [ebp - 0x50], 0x80042004
call sub.MSVCR90.dll__CxxThrowException
sub edi, esi
jmp 0x427b37
mov eax, dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
or edi, 0xffffffff
cmp eax, edi
je 0x427c7c
push eax
call esi
test eax, eax
jne 0x427c79
mov eax, 0x80042006
jmp 0x427c7e
mov dword [ebp - 0x1c], edi
xor eax, eax
mov bl, 1
test bl, bl
je 0x427c99
test eax, eax
jge 0x427c99
push 0x43c408
lea edx, [ebp - 0x3c]
push edx
mov dword [ebp - 0x3c], eax
call sub.MSVCR90.dll__CxxThrowException
mov eax, dword [ebp - 0x28]
cmp eax, edi
je 0x427cb1
push eax
call esi
test eax, eax
jne 0x427cae
mov eax, 0x80042006
jmp 0x427cb3
mov dword [ebp - 0x28], edi
xor eax, eax
test bl, bl
je 0x427ccc
test eax, eax
jge 0x427ccc
mov dword [ebp - 0x40], eax
push 0x43c408
lea eax, [ebp - 0x40]
push eax
call sub.MSVCR90.dll__CxxThrowException
lea ecx, [ebp - 0x16c]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 8
mov dword [ebp - 4], 1
call dword [sym.imp.mfc90.dll_Ordinal_820]
mov eax, dword [ebp - 0x28]
or ebx, 0xffffffff
mov edi, vtable.SaFile.0
mov dword [ebp - 0x2c], edi
cmp eax, ebx
je 0x427d02
push eax
call esi
test eax, eax
je 0x427d02
mov dword [ebp - 0x28], ebx
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edi
cmp eax, ebx
je 0x427d1f
push eax
call esi
test eax, eax
je 0x427d1f
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_601]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4