Function at 0x479fd5
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
mov eax, dword [0x502344]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov eax, dword [ebx]
push edi
xor edi, edi
mov dword [ebp - 0x484], ebx
mov esi, edx
cmp dword [eax - 0xc], edi
je 0x47a2ee
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push dword [ebx]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x47a2ee
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x47a04b
mov eax, dword [ebx]
call fcn.0044e840
test eax, eax
je 0x47a2ee
lea eax, [ebp - 0x474]
push eax
mov eax, dword [esi]
push 0x3b
mov dword [ebp - 0x474], edi
mov dword [ebp - 0x470], edi
call fcn.00462c33
cmp dword [ebp - 0x474], edi
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x47c]
push eax
seta byte [ebp - 0x462]
call fcn.0041f0fb
push 0x4da8c4
lea eax, [ebp - 0x47c]
push eax
call fcn.00438cdb
lea eax, [ebp - 0x460]
push eax
push dword [ebp - 0x47c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x480], eax
cmp eax, 0xffffffff
je 0x47a2d0
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x47a2d0
test byte [ebp - 0x460], 0x10
mov edi, 0x4d9c10
jne 0x47a2a9
push ebx
lea eax, [ebp - 0x468]
push eax
call fcn.0041f0fb
push edi
lea eax, [ebp - 0x468]
push eax
call fcn.00438cdb
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x468]
push eax
call fcn.00438cdb
cmp byte [ebp - 0x462], 0
sete byte [ebp - 0x461]
cmp byte [ebp - 0x462], 0
je 0x47a180
cmp dword [ebp - 0x474], 0
jbe 0x47a180
mov esi, dword [ebp - 0x470]
mov eax, dword [ebp - 0x474]
add esi, 4
mov dword [ebp - 0x478], eax
push dword [esi]
lea eax, [ebp - 0x46c]
push eax
call fcn.00405d54
push dword [ebp - 0x468]
lea eax, [ebp - 0x46c]
push eax
call fcn.0042e0ac
test eax, eax
jne 0x47a16a
mov byte [ebp - 0x461], 1
lea ecx, [ebp - 0x46c]
call fcn.004058e3
add esi, 8
dec dword [ebp - 0x478]
jne 0x47a13f
cmp byte [ebp - 0x461], 0
je 0x47a195
push dword [ebp - 0x468]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x468]
call fcn.004058e3
jmp 0x47a2a9
test byte [ebp - 0x460], 0x10
jne 0x47a2a9
push ebx
lea eax, [ebp - 0x468]
push eax
call fcn.0041f0fb
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x468]
xor ecx, ecx
push eax
inc ecx
call fcn.0042df35
push edi
push eax
call fcn.0042e0ac
test eax, eax
lea ecx, [ebp - 0x478]
setne bl
call fcn.004058e3
test bl, bl
je 0x47a1fd
push edi
lea eax, [ebp - 0x468]
push eax
call fcn.00438cdb
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x468]
push eax
call fcn.00438cdb
cmp byte [ebp - 0x462], 0
sete byte [ebp - 0x461]
cmp byte [ebp - 0x462], 0
je 0x47a283
xor ebx, ebx
cmp dword [ebp - 0x474], ebx
jbe 0x47a283
mov esi, dword [ebp - 0x470]
add esi, 4
push dword [esi]
lea eax, [ebp - 0x46c]
push eax
call fcn.00405d54
push dword [ebp - 0x468]
lea eax, [ebp - 0x46c]
push eax
call fcn.0042e0ac
lea ecx, [ebp - 0x46c]
test eax, eax
je 0x47a277
call fcn.004058e3
inc ebx
add esi, 8
cmp ebx, dword [ebp - 0x474]
jb 0x47a23a
jmp 0x47a283
mov byte [ebp - 0x461], 1
call fcn.004058e3
cmp byte [ebp - 0x461], 0
je 0x47a298
push dword [ebp - 0x468]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x468]
call fcn.004058e3
mov ebx, dword [ebp - 0x484]
lea eax, [ebp - 0x460]
push eax
push dword [ebp - 0x480]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x47a1a5
push dword [ebp - 0x480]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x47c]
call fcn.004058e3
lea esi, [ebp - 0x474]
call fcn.00462bf0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049cdcb
leave
ret