Function at 0x404ae0
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423e5b
mov eax, dword fs:[0]
push eax
sub esp, 0xa6c
mov eax, dword [0x42f230]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x80c]
push 0x7fc
push 0
push eax
mov dword [ebp - 0x810], 0
call fcn.00411ff0
push ebx
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.00410df0
push str..
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.00410d84
add esp, 0x24
lea eax, [ebp - 0xa78]
push eax
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x404c72
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, edi
lea eax, [ebp - 0xa4c]
push 0x4253ac
push eax
call fcn.00410f99
add esp, 8
test eax, eax
je 0x404d84
lea eax, [ebp - 0xa4c]
push 0x4253b0
push eax
call fcn.00410f99
add esp, 8
test eax, eax
je 0x404d84
push ebx
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.00410df0
push 0x425348
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.00410d84
lea eax, [ebp - 0xa4c]
push eax
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.00410d84
add esp, 0x24
test byte [ebp - 0xa78], 0x10
je 0x404c79
mov ecx, 0x42540c
lea eax, [ebp - 0xa4c]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404c36
test dx, dx
je 0x404c32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404c36
add eax, 4
add ecx, 4
test dx, dx
jne 0x404c10
xor eax, eax
jmp 0x404c3b
sbb eax, eax
or eax, 1
test eax, eax
je 0x404d84
lea eax, [ebp - 0x810]
push eax
call fcn.00404ae0
add esp, 4
test eax, eax
je 0x404c6b
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x404d84
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x404da6
xor eax, eax
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 0
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x818], 0
mov word [ebp - 0x828], ax
cmp word [ebp - 0x810], ax
je 0x404ccf
lea eax, [ebp - 0x810]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404cc0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x828]
call fcn.00409470
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x828]
push 0x29
push str._B52E4995_3824_4CAB_AE4D_8F0E57EF209E_bak
call fcn.00408f70
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
push 1
cmovae eax, dword [ebp - 0x828]
push eax
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x404d3c
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
call edi
jmp 0x404d49
lea eax, [ebp - 0x810]
push eax
call edi
test eax, eax
je 0x404dc2
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x814], 8
jb 0x404d67
push dword [ebp - 0x828]
call fcn.004103f0
add esp, 4
xor eax, eax
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x818], 0
mov word [ebp - 0x828], ax
lea eax, [ebp - 0xa78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404b80
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041153c
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x814], 8
jb 0x404de7
push dword [ebp - 0x828]
call fcn.004103f0
add esp, 4
xor eax, eax
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x818], 0
mov word [ebp - 0x828], ax
jmp 0x404da6