Function at 0x4261e0
Capabilities:
Delete file
Get file attributes
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43189b
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
je 0x426632
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x30], ecx
test ecx, ecx
je 0x426632
mov edi, dword [eax + 0x58]
test edi, edi
je 0x426632
mov esi, vtable.SaFile.0
or ebx, 0xffffffff
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 dword [ebp - 4], 0
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
xor ecx, ecx
push 0xfe
xor eax, eax
push ecx
lea edx, [ebp - 0x38a]
push edx
mov word [ebp + 8], ax
mov byte [ebp + 0xa], al
mov word [ebp - 0x38c], cx
call sub.MSVCR90.dll_memset
xor eax, eax
push 0xfe
push eax
lea ecx, [ebp - 0x28a]
push ecx
mov word [ebp - 0x28c], ax
call sub.MSVCR90.dll_memset
xor edx, edx
push 0xfe
push edx
lea eax, [ebp - 0x48a]
push eax
mov word [ebp - 0x48c], dx
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 + 8]
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 0x426335
push 0x43c408
lea ecx, [ebp - 0x60]
push ecx
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 0x426355
push 0x43c408
lea edx, [ebp - 0x64]
push edx
mov dword [ebp - 0x64], eax
call sub.MSVCR90.dll__CxxThrowException
mov esi, dword [edi + 4]
call fcn.004259e0
test eax, eax
jge 0x426372
mov dword [ebp - 0x58], eax
push 0x43c408
lea eax, [ebp - 0x58]
push eax
call sub.MSVCR90.dll__CxxThrowException
mov edi, dword [edi + 4]
push edi
lea ecx, [ebp - 0x2c]
call fcn.004307c0
test eax, eax
jge 0x426393
push 0x43c408
lea ecx, [ebp - 0x44]
push ecx
mov dword [ebp - 0x44], eax
call sub.MSVCR90.dll__CxxThrowException
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x4263a9
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
jne 0x4263be
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 0x4264f0
mov esi, edi
cmp edi, 0x120
jb 0x4263d7
mov esi, 0x120
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x38], 0
cmp eax, 0xffffffff
jne 0x4263ed
mov eax, 0x80042007
jmp 0x426410
push 0
lea ecx, [ebp - 0x38]
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 0x42642b
test eax, eax
jge 0x42642b
mov dword [ebp - 0x5c], eax
push 0x43c408
lea eax, [ebp - 0x5c]
push eax
call sub.MSVCR90.dll__CxxThrowException
cmp dword [ebp - 0x38], esi
je 0x426449
test cl, cl
je 0x426449
push 0x43c408
lea ecx, [ebp - 0x50]
push ecx
mov dword [ebp - 0x50], 0x80042003
call sub.MSVCR90.dll__CxxThrowException
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], 0
cmp eax, 0xffffffff
jne 0x42645f
mov eax, 0x80042007
jmp 0x426493
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 0x426491
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0x70
sete dl
lea edx, [edx*4 - 0x7ffbdffc]
mov eax, edx
jmp 0x426493
xor eax, eax
mov cl, 1
test cl, cl
je 0x4264ae
test eax, eax
jge 0x4264ae
mov dword [ebp - 0x3c], eax
push 0x43c408
lea eax, [ebp - 0x3c]
push eax
call sub.MSVCR90.dll__CxxThrowException
cmp dword [ebp - 0x34], esi
je 0x4264cc
test cl, cl
je 0x4264cc
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 - 0x30]
push 0
push eax
push 0x401
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4263c0
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x426506
mov eax, 0x80042007
jmp 0x42653a
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
je 0x42651c
push eax
call esi
test eax, eax
je 0x42651c
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 0x426555
test eax, eax
jge 0x426555
mov dword [ebp - 0x4c], eax
push 0x43c408
lea eax, [ebp - 0x4c]
push eax
call sub.MSVCR90.dll__CxxThrowException
mov eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x426572
push eax
call esi
test eax, eax
jne 0x42656b
mov eax, 0x80042006
jmp 0x426574
mov dword [ebp - 0x28], 0xffffffff
xor eax, eax
test bl, bl
je 0x42658d
test eax, eax
jge 0x42658d
push 0x43c408
lea ecx, [ebp - 0x40]
push ecx
mov dword [ebp - 0x40], eax
call sub.MSVCR90.dll__CxxThrowException
mov edx, dword [ebp - 0x30]
push 0
push 0
push 0x402
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x1c]
or ebx, 0xffffffff
mov edi, vtable.SaFile.0
mov dword [ebp - 0x20], edi
cmp eax, ebx
je 0x4265bc
push eax
call esi
test eax, eax
je 0x4265bc
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edi
cmp eax, ebx
je 0x4265d9
push eax
call esi
test eax, eax
je 0x4265d9
mov dword [ebp - 0x28], ebx
lea ecx, [ebp - 0x24]
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