Function at 0x404730
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa64
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xa60], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
cmp word [ebx], 0
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
jne 0x404784
push 0x10
push 0x415d68
push 0x415d70
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor eax, eax
push 0x206
push eax
mov word [esp + 0x480], ax
lea eax, [esp + 0x482]
push eax
call fcn.00408ec0
xor eax, eax
push 0x206
push eax
mov word [esp + 0x284], ax
lea eax, [esp + 0x286]
push eax
call fcn.00408ec0
add esp, 0x18
lea eax, [esp + 0x478]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x478]
push 0x415e90
push eax
call edi
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
push 0
lea eax, [esp + 0x48c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x404822
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa60]
xor ecx, esp
call fcn.004057df
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
jmp 0x404830
test byte [esp + 0x20], 0x10
lea eax, [esp + 0x4c]
push 0x415e98
push eax
jne 0x40495d
call esi
test eax, eax
je 0x4049d0
push 0x415e9c
lea eax, [esp + 0x50]
push eax
call esi
test eax, eax
je 0x4049d0
push 0x208
lea eax, [esp + 0x274]
push 0
push eax
call fcn.00408ec0
add esp, 0xc
lea eax, [esp + 0x270]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x415910
lea eax, [esp + 0x274]
push eax
call edi
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x274]
push eax
call edi
cmp dword [esp + 0x10], 0
je 0x404934
cmp dword [esp + 0x14], 0
je 0x404934
xor eax, eax
push 0x3e6
push eax
mov word [esp + 0x688], ax
lea eax, [esp + 0x68a]
push eax
call fcn.00408ec0
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x690]
push str.ck_W_Rd
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [esp + 0x680]
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
push 0
push 0x408
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
inc eax
mov ecx, 0x64
cmp eax, 0x64
push 0
cmovg eax, ecx
push eax
push 0x402
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4049d0
push 4
push eax
lea eax, [esp + 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x4049d0
call esi
test eax, eax
je 0x4049d0
push 0x415e9c
lea eax, [esp + 0x50]
push eax
call esi
test eax, eax
je 0x4049d0
push 0x208
lea eax, [esp + 0x274]
push 0
push eax
call fcn.00408ec0
add esp, 0xc
lea eax, [esp + 0x270]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x415910
lea eax, [esp + 0x274]
push eax
call edi
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x274]
push eax
call edi
push dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x274]
push dword [esp + 0x14]
push eax
call fcn.00404730
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404830
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0xa6c]
cmp eax, 1
pop edi
pop esi
sete al
pop ebx
xor ecx, esp
call fcn.004057df
mov esp, ebp
pop ebp
ret 0xc