Function at 0x140025370
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Get file attributes
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x3c0
mov qword [rsp + 0x150], 0xfffffffffffffffe
mov qword [rsp + 0x418], rbx
mov rax, qword [0x140067030]
xor rax, rsp
mov qword [rsp + 0x3b0], rax
mov r13, r8
mov rdi, rdx
mov rbx, rcx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140025ba9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x1400253d4
xor eax, eax
jmp 0x140025ba9
mov rdx, rbx
lea rcx, [rsp + 0x58]
call qword [0x1400409b8]
nop
lea r8, [0x140044ad0]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.14000ce00
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14000cd80
nop
lea r8, str..frd
mov rdx, rax
lea rcx, [rsp + 0x98]
call fcn.14000ce00
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc90u.dll_CView::CView]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.MSVCR90.dll__wremove]
mov ecx, 8
call sub.mfc90u.dll_CSplitterWnd::CSplitterWnd
xor r14d, r14d
test rax, rax
je 0x140025464
lea rcx, [rsp + 0x60]
mov qword [rax], rcx
jmp 0x140025467
mov rax, r14
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x60]
call fcn.1400260b0
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], r14
lea r8, [0x14004747c]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0xb0]
call fcn.14000ce00
nop
mov dword [rsp + 0x160], r14d
xor edx, edx
mov r8d, reloc.mfc90u.dll_CView::CView
lea rcx, [rsp + 0x164]
call sub.MSVCR90.dll_memset
lea rdx, [rsp + 0x160]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x140025815
movabs r15, 0xfffffffffffffff
nop word [rax + rax]
lea rdx, [rsp + 0x18c]
lea rcx, [rsp + 0x48]
call qword [0x1400409b8]
nop
lea r8, [0x140044ad0]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x130]
call fcn.14000ce00
nop
lea r8, [rsp + 0x48]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14000cd80
nop
lea rcx, [rsp + 0x130]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rdx, [0x140047484]
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc90u.dll_CDaoTableDef::classCDaoTableDef]
test eax, eax
je 0x140025762
lea rdx, [0x140047488]
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc90u.dll_CDaoTableDef::classCDaoTableDef]
test eax, eax
je 0x140025762
test bl, 2
jne 0x140025762
test bl, 0x10
jne 0x140025762
lea rcx, [rsp + 0xa8]
call qword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xa8]
call qword [sym.imp.mfc90u.dll_CToolBarCtrl::CToolBarCtrl]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
test rax, rax
je 0x140025754
cmp rax, 0xffffffffffffffff
je 0x140025754
mov dword [rsp + 0x40], r14d
xor eax, eax
mov dword [rsp + 0x44], eax
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x14002574a
mov ecx, dword [rsp + 0x44]
shl rcx, 0x20
mov eax, dword [rsp + 0x40]
or rcx, rax
mov qword [rsp + 0xa0], rcx
mov rax, qword [rsp + 0x88]
mov rbx, qword [rax]
mov qword [rsp + 0x148], rbx
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x140], rdi
mov rsi, qword [rsp + 0x88]
test rdi, rdi
je 0x140025664
cmp rdi, qword [rsp + 0x60]
je 0x14002566a
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp rbx, rsi
je 0x1400256ff
test rdi, rdi
jne 0x140025683
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov r11, r14
jmp 0x140025686
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x28]
jne 0x140025692
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov rax, qword [rbx + 0x10]
cmp qword [rsp + 0xa0], rax
jb 0x1400256cc
test rdi, rdi
jne 0x1400256b0
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov r11, r14
jmp 0x1400256b3
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x28]
jne 0x1400256bf
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov rbx, qword [rbx]
mov qword [rsp + 0x148], rbx
jmp 0x140025650
movaps xmm0, xmmword [rsp + 0x140]
movdqa xmmword [rsp + 0x100], xmm0
lea r9, [rsp + 0xa0]
mov r8d, 1
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x60]
call fcn.140026170
jmp 0x14002574a
mov rbx, qword [rsp + 0x88]
lea r9, [rsp + 0xa0]
mov r8, qword [rbx + 8]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.140026220
mov rcx, r15
mov rdx, qword [rsp + 0x90]
sub rcx, rdx
cmp rcx, 1
jb 0x1400257a6
inc rdx
mov qword [rsp + 0x90], rdx
mov qword [rbx + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0xa8]
call qword [sym.imp.mfc90u.dll_CView::CView]
lea rdx, [rsp + 0x160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140025784
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
or r12, 0xffffffffffffffff
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc90u.dll_CView::CView]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc90u.dll_CView::CView]
cmp r12, 0xffffffffffffffff
je 0x140025815
jmp 0x1400254f0
lea rdx, str.list_T__too_long
lea rcx, [rsp + 0x100]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const____ptr64____ptr64]
nop
lea rcx, [rsp + 0xb8]
call qword [sym.imp.MSVCR90.dll_public:_void___cdecl_std::exception::constructor_void____ptr64]
nop
lea rax, vtable.std::logic_error.0
mov qword [rsp + 0xb8], rax
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0xd0]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
nop
lea rax, vtable.std::length_error.0
mov qword [rsp + 0xb8], rax
lea rdx, [0x14005bc30]
lea rcx, [rsp + 0xb8]
call sub.MSVCR90.dll__CxxThrowException
nop
cmp qword [rsp + 0x90], 5
jb 0x1400258ea
mov rax, qword [rsp + 0x88]
mov rbx, qword [rax]
cmp qword [rsp + 0x60], 0
jne 0x140025842
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov r11, r14
jmp 0x14002584a
mov rax, qword [rsp + 0x60]
mov r11, qword [rax]
cmp rbx, qword [r11 + 0x28]
jne 0x140025856
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.MSVCR90.dll__wremove]
mov r11, qword [rsp + 0x88]
mov rbx, qword [r11]
cmp qword [rsp + 0x60], 0
jne 0x14002587e
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov r11, r14
jmp 0x140025886
mov rax, qword [rsp + 0x60]
mov r11, qword [rax]
cmp rbx, qword [r11 + 0x28]
jne 0x140025892
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp rbx, qword [rsp + 0x88]
je 0x1400258d8
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rcx], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
lea rcx, [rbx + 0x18]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov rcx, rbx
call sub.mfc90u.dll_CStatusBar::CStatusBar
mov r11, qword [rsp + 0x90]
dec r11
mov qword [rsp + 0x90], r11
jmp 0x1400258e0
mov r11, qword [rsp + 0x90]
cmp r11, 5
jae 0x140025824
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
test rax, rax
je 0x140025b0e
cmp rax, 0xffffffffffffffff
je 0x140025b0e
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x100], 0x46524448
mov dword [rsp + 0x104], 0x534b464e
mov dword [rsp + 0x108], 1
mov ecx, 0x17
mov r8, rcx
cmp dword [r13 + 0x10], 0
jle 0x140025986
cmp dword [r13 + 0x14], 0
jle 0x140025986
mov rdx, qword [r13 + 0x38]
test rdx, rdx
je 0x140025982
mov eax, dword [r13 + 0x14]
imul eax, dword [r13 + 0x10]
add eax, eax
cdqe
cmp rdx, rax
jne 0x140025986
lea r8, [rdx + 0x17]
mov dword [rsp + 0x110], r8d
cmp dword [r13 + 0x58], 0
jle 0x1400259be
cmp dword [r13 + 0x5c], 0
jle 0x1400259be
mov rdx, qword [r13 + 0x80]
test rdx, rdx
je 0x1400259ba
mov eax, dword [r13 + 0x5c]
imul eax, dword [r13 + 0x58]
add eax, eax
cdqe
cmp rdx, rax
jne 0x1400259be
lea rcx, [rdx + 0x17]
mov dword [rsp + 0x114], ecx
lea eax, [rcx + r8 + 0x18]
mov dword [rsp + 0x10c], eax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x40]
mov r8d, 0x18
lea rdx, [rsp + 0x100]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 8
call sub.mfc90u.dll_CSplitterWnd::CSplitterWnd
test rax, rax
je 0x140025a0e
lea rcx, [rsp + 0xb8]
mov qword [rax], rcx
jmp 0x140025a11
mov rax, r14
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xd0], r14
mov qword [rsp + 0xd8], r14
mov qword [rsp + 0xe0], r14
lea rdx, [rsp + 0xb8]
mov rcx, r13
call fcn.140026840
test al, al
je 0x140025a7e
mov rsi, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0xd0]
sub rsi, rdx
jne 0x140025a68
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov rdx, qword [rsp + 0xd0]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x40]
mov r8d, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rdx, [rsp + 0xb8]
lea rcx, [r13 + 0x48]
call fcn.140026840
test al, al
je 0x140025acc
mov rdi, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0xd0]
sub rdi, rdx
jne 0x140025ab6
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov rdx, qword [rsp + 0xd0]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x40]
mov r8d, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0xd0]
test rcx, rcx
je 0x140025ae8
call sub.mfc90u.dll_CStatusBar::CStatusBar
mov qword [rsp + 0xd0], r14
mov qword [rsp + 0xd8], r14
mov qword [rsp + 0xe0], r14
mov rcx, qword [rsp + 0xb8]
call sub.mfc90u.dll_CStatusBar::CStatusBar
nop
lea rcx, [rsp + 0xb0]
call qword [sym.imp.mfc90u.dll_CView::CView]
nop
mov rax, qword [rsp + 0x88]
mov rdi, qword [rax]
mov qword [rax], rax
mov rax, qword [rsp + 0x88]
mov qword [rax + 8], rax
mov qword [rsp + 0x90], r14
mov rcx, qword [rsp + 0x88]
cmp rdi, rcx
je 0x140025b75
nop dword [rax]
mov rbx, qword [rdi]
lea rcx, [rdi + 0x18]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov rcx, rdi
call sub.mfc90u.dll_CStatusBar::CStatusBar
mov rdi, rbx
mov rcx, qword [rsp + 0x88]
cmp rbx, rcx
jne 0x140025b50
call sub.mfc90u.dll_CStatusBar::CStatusBar
mov qword [rsp + 0x88], r14
mov rcx, qword [rsp + 0x60]
call sub.mfc90u.dll_CStatusBar::CStatusBar
nop
lea rcx, [rsp + 0x98]
call qword [sym.imp.mfc90u.dll_CView::CView]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc90u.dll_CView::CView]
xor eax, eax
mov rcx, qword [rsp + 0x3b0]
xor rcx, rsp
call fcn.1400372b0
mov rbx, qword [rsp + 0x418]
add rsp, 0x3c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret