Function at 0x413230
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x427cea
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
mov dword [esp + 0x1c], ecx
mov ecx, dword [ecx + 0x1a4]
push edi
call dword [sym.imp.wxmsw28_core_vc.dll_public:_bool___thiscall_wxListCtrl::DeleteAllItems_void_]
mov eax, dword [sym.imp.wxbase28_vc.dll_char_const__const_wxEmptyString]
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
mov edx, dword [eax]
xor ebp, ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x10], edx
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax]
mov dword [esp + 0x18], edx
lea eax, [esp + 0x24]
mov byte [esp + 0x64], 3
push eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
call fcn.00419d50
mov ecx, eax
call fcn.00405f70
mov ebx, dword [sym.imp.wxbase28_vc.dll_public:_class_wxStringBase____thiscall_wxStringBase::operator_class_wxStringBase_const__]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 4
call ebx
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x64], 3
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x4132d8
dec ecx
cmp ecx, ebp
mov dword [eax], ecx
jne 0x4132d8
mov edi, dword [sym.imp.MSVCRT.dll_free]
push eax
call edi
add esp, 4
jmp 0x4132de
mov edi, dword [sym.imp.MSVCRT.dll_free]
mov edx, dword [esp + 0x10]
mov esi, dword [edx - 8]
cmp esi, ebp
mov ebp, dword [sym.imp.wxbase28_vc.dll_protected:_bool___thiscall_wxStringBase::ConcatSelf_unsigned_int__char_const___unsigned_int_]
jne 0x413300
push 0x441644
lea ecx, [esp + 0x14]
call dword [sym.imp.wxbase28_vc.dll_public:_class_wxStringBase____thiscall_wxStringBase::operator_char_const__]
jmp 0x413341
lea ecx, [esp + 0x10]
call dword [sym.imp.wxbase28_vc.dll_protected:_bool___thiscall_wxStringBase::CopyBeforeWrite_void_]
mov eax, dword [esp + 0x10]
cmp byte [esi + eax - 1], 0x5c
je 0x413341
mov ecx, 0x441640
test ecx, ecx
je 0x413332
mov edi, ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [sym.imp.MSVCRT.dll_free]
not ecx
dec ecx
jmp 0x413334
xor ecx, ecx
push ecx
push 0x441640
push ecx
lea ecx, [esp + 0x1c]
call ebp
mov edx, 0x44163c
test edx, edx
je 0x41335e
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [sym.imp.MSVCRT.dll_free]
not ecx
dec ecx
jmp 0x413360
xor ecx, ecx
push ecx
push 0x44163c
push ecx
lea ecx, [esp + 0x1c]
call ebp
mov eax, dword [esp + 0x10]
push 1
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.wxbase28_vc.dll_class_wxString___cdecl_wxFindFirstFile_char_const___int_]
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 5
call ebx
mov edx, dword [esp + 0x24]
mov byte [esp + 0x64], 3
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x4133af
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4133af
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x14]
xor ebp, ebp
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4135da
mov ebx, dword [sym.imp.wxbase28_vc.dll_public:_class_wxString____thiscall_wxString::Pad_unsigned_int__char__bool_]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x4133df
and al, 0xfe
push eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esp + 0x14]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x413582
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x14]
push 0
lea eax, [esp + 0x40]
push edx
push eax
call dword [sym.imp.wxbase28_vc.dll_public:_static_class_wxFileName___cdecl_wxFileName::FileName_class_wxString_const___enum_wxPathFormat_]
add esp, 0xc
lea ecx, [esp + 0x24]
mov byte [esp + 0x64], 6
push ecx
mov ecx, eax
call dword [sym.imp.wxbase28_vc.dll_public:_class_wxString___thiscall_wxFileName::GetFullName_void_]
mov edx, dword [esp + 0x20]
push eax
push ebp
mov byte [esp + 0x6c], 7
mov ecx, dword [edx + 0x1a4]
call dword [sym.imp.wxmsw28_core_vc.dll_public:_long_int___thiscall_wxListCtrl::InsertItem_long_int__class_wxString_const__]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41346d
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x41346d
mov esi, dword [sym.imp.MSVCRT.dll_free]
push eax
call esi
add esp, 4
jmp 0x413473
mov esi, dword [sym.imp.MSVCRT.dll_free]
mov ecx, dword [esp + 0x54]
mov byte [esp + 0x64], 8
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x413494
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x413494
push eax
call esi
add esp, 4
mov edx, dword [esp + 0x50]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x4134b0
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4134b0
push eax
call esi
add esp, 4
lea ecx, [esp + 0x40]
call dword [sym.imp.wxbase28_vc.dll_public:_void___thiscall_wxArrayString::destructor_void_]
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x64], 3
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4134da
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4134da
push eax
call esi
add esp, 4
lea ecx, [esp + 0x14]
lea edx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.wxbase28_vc.dll_public:_static_class_wxULongLongNative___cdecl_wxFileName::GetSize_class_wxString_const__]
mov ecx, dword [eax]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x20]
mov edx, dword [eax + 4]
lea eax, [esp + 0x34]
push eax
push ecx
mov dword [esp + 0x40], edx
call dword [sym.imp.wxbase28_vc.dll_class_wxString____cdecl_operator___class_wxString___class_wxULongLongNative_const__]
mov edx, dword [esp + 0x28]
add esp, 0x10
xor esi, esi
mov eax, dword [edx - 8]
lea edi, [eax - 1]
test edi, edi
jl 0x413551
lea ecx, [esp + 0x18]
call dword [sym.imp.wxbase28_vc.dll_protected:_bool___thiscall_wxStringBase::CopyBeforeWrite_void_]
mov eax, dword [esp + 0x18]
push 0
mov cl, byte [edi + eax]
push ecx
push 1
lea ecx, [esp + 0x28]
call ebx
inc esi
cmp esi, 3
jne 0x41354e
test edi, edi
je 0x41354e
push 0
push 0x2c
push 1
lea ecx, [esp + 0x28]
call ebx
xor esi, esi
dec edi
jns 0x41351a
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x1c]
push 0xffffffffffffffff
push edx
mov ecx, dword [eax + 0x1a4]
push 1
push ebp
call dword [sym.imp.wxmsw28_core_vc.dll_public:_long_int___thiscall_wxListCtrl::SetItem_long_int__int__class_wxString_const___int_]
mov esi, dword [sym.imp.wxbase28_vc.dll_public:_class_wxString____thiscall_wxString::Truncate_unsigned_int_]
push 0
lea ecx, [esp + 0x1c]
call esi
push 0
lea ecx, [esp + 0x20]
call esi
inc ebp
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.wxbase28_vc.dll_class_wxString___cdecl_wxFindNextFile_void_]
add esp, 4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 9
call dword [sym.imp.wxbase28_vc.dll_public:_class_wxStringBase____thiscall_wxStringBase::operator_class_wxStringBase_const__]
mov edx, dword [esp + 0x28]
mov byte [esp + 0x64], 3
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x4135c5
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4135c5
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4133c6
mov edi, dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x20]
push 1
mov ecx, dword [eax + 0x1b8]
call fcn.0041bea0
mov ecx, dword [esp + 0x18]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x413607
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x413607
push eax
call edi
add esp, 4
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x413623
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x413623
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41363e
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x41363e
push eax
call edi
add esp, 4
mov ecx, dword [esp + 0x14]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x41365a
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x41365a
push eax
call edi
add esp, 4
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret