Function at 0x409852
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
push 0x29c
mov eax, 0x41160f
call fcn.0040f91b
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x2a8], ecx
mov dword [ebp - 0x290], ebx
mov dword [ebp - 0x298], eax
mov esi, dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
push ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x294]
push eax
mov dword [ebp - 4], 1
call esi
add esp, 0xc
push 0x414d78
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], 2
call dword [0x41307c]
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
push ecx
lea eax, [ebp - 0x294]
mov ecx, esp
mov dword [ebp - 0x26c], esp
push eax
call edi
call fcn.0040726e
mov dword [ebp - 0x2a0], eax
push ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x268]
push eax
call esi
add esp, 0x10
mov ebx, str.Image_
push ebx
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 3
call dword [0x41307c]
push dword [ebp - 0x290]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x280]
push eax
call esi
add esp, 0xc
push ebx
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 4
call dword [0x41307c]
push ecx
lea eax, [ebp - 0x268]
mov ecx, esp
mov dword [ebp - 0x26c], esp
xor ebx, ebx
push eax
mov dword [ebp - 0x27c], ebx
call edi
call fcn.00407015
pop ecx
mov dword [ebp - 0x26c], eax
cmp eax, ebx
jne 0x409a20
lea ecx, [ebp - 0x268]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40999e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea eax, [ebp - 0x268]
mov ecx, esp
mov dword [ebp - 0x26c], esp
push eax
call edi
push 0x414d90
push str.StorageTool
push 2
push str.func
push 0x4dc
push str.file
call fcn.00407b42
add esp, 0x20
mov ecx, dword [ebp - 0x2a8]
call fcn.004073bb
mov ecx, dword [ebp - 0x298]
cmp ecx, ebx
je 0x4099ca
mov eax, dword [ecx]
lea edx, [ebp - 0x27c]
push edx
push ebx
push ebx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push 1
push 3
call dword [eax]
cmp dword [ebp - 0x27c], ebx
mov ebx, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
je 0x409a1b
push 3
pop esi
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 3
call ebx
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 2
call ebx
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], 1
call ebx
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call ebx
mov eax, esi
call fcn.0040f965
ret 0x1c
xor esi, esi
inc esi
jmp 0x4099db
xor eax, eax
inc eax
push 0x24c
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x25c]
push ebx
push eax
mov dword [ebp - 0x28c], ebx
mov dword [ebp - 0x260], ebx
call sub.MSVCR100.dll_memset
push 0x414b68
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x29c]
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 5
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
mov dword [ebp - 0x2a4], eax
cmp eax, 0xffffffff
je 0x409d5b
cmp dword [ebp - 0x270], 0
je 0x409d35
test byte [ebp - 0x260], 0x10
lea eax, [ebp - 0x234]
jne 0x409b80
inc dword [ebp - 0x28c]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x284]
push eax
call esi
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x288]
push eax
mov byte [ebp - 4], 6
call esi
add esp, 0x18
push 1
push ecx
lea eax, [ebp - 0x288]
mov ecx, esp
mov dword [ebp - 0x270], esp
push eax
mov byte [ebp - 4], 7
call edi
cmp dword [ebp - 0x2a0], 0
je 0x409b2f
push ecx
lea eax, [ebp - 0x284]
mov ecx, esp
mov dword [ebp - 0x264], esp
push eax
mov byte [ebp - 4], 8
call edi
mov byte [ebp - 4], 7
call fcn.00407bd1
jmp 0x409b4e
push ecx
lea eax, [ebp - 0x284]
mov ecx, esp
mov dword [ebp - 0x264], esp
push eax
mov byte [ebp - 4], 9
call edi
mov byte [ebp - 4], 7
call fcn.00407cc4
add esp, 0xc
mov dword [ebp - 0x264], eax
cmp eax, 0xffffffff
je 0x409cfd
cmp eax, 0xfffffffd
je 0x409cfd
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 6
call ebx
lea ecx, [ebp - 0x284]
jmp 0x409c93
push 0x414b60
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x409c99
push 0x414b5c
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x409c99
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x278]
push eax
call esi
add esp, 0xc
push 0x414d78
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 0xa
call dword [0x41307c]
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x274]
push eax
call esi
add esp, 0xc
push 0x414d78
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 0xb
call dword [0x41307c]
push ecx
lea eax, [ebp - 0x274]
mov ecx, esp
mov dword [ebp - 0x270], esp
push eax
call edi
cmp dword [ebp - 0x2a0], 0
je 0x409c48
push ecx
lea eax, [ebp - 0x278]
mov ecx, esp
mov dword [ebp - 0x264], esp
push eax
mov byte [ebp - 4], 0xc
call edi
mov byte [ebp - 4], 0xb
call fcn.004082ce
jmp 0x409c67
push ecx
lea eax, [ebp - 0x278]
mov ecx, esp
mov dword [ebp - 0x264], esp
push eax
mov byte [ebp - 4], 0xd
call edi
mov byte [ebp - 4], 0xb
call fcn.00407fef
pop ecx
mov dword [ebp - 0x264], eax
pop ecx
cmp eax, 0xffffffff
je 0x409d17
cmp eax, 0xfffffffd
je 0x409d17
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 0xa
call ebx
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 5
call ebx
mov ecx, dword [ebp - 0x2a8]
call fcn.004073bb
mov ecx, dword [ebp - 0x298]
and dword [ebp - 0x27c], 0
test ecx, ecx
je 0x409cdf
mov eax, dword [ecx]
lea edx, [ebp - 0x27c]
push edx
push dword [ebp - 0x28c]
push dword [ebp - 0x26c]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push 1
push 3
call dword [eax]
cmp dword [ebp - 0x27c], 0
jne 0x409d2b
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x2a4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x270], eax
jmp 0x409a98
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 6
call ebx
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 5
call ebx
jmp 0x409d35
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 0xa
call ebx
lea ecx, [ebp - 0x278]
jmp 0x409d0f
mov dword [ebp - 0x264], 3
push dword [ebp - 0x2a4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x264], 0xffffffff
je 0x409e34
cmp dword [ebp - 0x264], 0xfffffffd
je 0x409e34
lea ecx, [ebp - 0x268]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x409dae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea eax, [ebp - 0x268]
mov ecx, esp
mov dword [ebp - 0x26c], esp
push eax
call edi
push 0x414d90
push str.StorageTool
push 2
push str.func
push 0x548
push str.file
call fcn.00407b42
add esp, 0x20
push dword [ebp - 0x290]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x26c]
push eax
call esi
add esp, 0xc
push eax
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 0xe
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_class_CTXStringW_const__]
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 5
call ebx
lea ecx, [ebp - 0x268]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x409e34
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea eax, [ebp - 0x268]
mov ecx, esp
mov dword [ebp - 0x290], esp
push eax
call edi
push 0x414d90
push str.StorageTool
push 2
push str.func
push 0x550
push str.file
call fcn.00407b42
add esp, 0x20
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 4
call ebx
mov esi, dword [ebp - 0x264]
jmp 0x4099db