Function at 0x488999
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 [0x51f714]
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 0x488cb3
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 0x488cb3
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x488a0f
mov eax, dword [ebx]
call fcn.0045b850
test eax, eax
je 0x488cb3
lea eax, [ebp - 0x474]
push eax
mov eax, dword [esi]
push 0x3b
mov dword [ebp - 0x474], edi
mov dword [ebp - 0x470], edi
call fcn.00464e0c
cmp dword [ebp - 0x474], edi
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x47c]
push eax
seta byte [ebp - 0x462]
call fcn.00425ecf
push 0x4f303c
lea eax, [ebp - 0x47c]
push eax
call fcn.00443470
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 0x488c94
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x488c94
test byte [ebp - 0x460], 0x10
mov edi, 0x4f2254
jne 0x488c6d
push ebx
lea eax, [ebp - 0x468]
push eax
call fcn.00425ecf
push edi
lea eax, [ebp - 0x468]
push eax
call fcn.00443470
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x468]
push eax
call fcn.00443470
cmp byte [ebp - 0x462], 0
sete byte [ebp - 0x461]
cmp byte [ebp - 0x462], 0
je 0x488b44
cmp dword [ebp - 0x474], 0
jbe 0x488b44
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.004046e4
push dword [ebp - 0x468]
lea eax, [ebp - 0x46c]
push eax
call fcn.00438350
test eax, eax
jne 0x488b2e
mov byte [ebp - 0x461], 1
lea ecx, [ebp - 0x46c]
call fcn.00402907
add esi, 8
dec dword [ebp - 0x478]
jne 0x488b03
cmp byte [ebp - 0x461], 0
je 0x488b59
push dword [ebp - 0x468]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x468]
call fcn.00402907
jmp 0x488c6d
test byte [ebp - 0x460], 0x10
jne 0x488c6d
push ebx
lea eax, [ebp - 0x468]
push eax
call fcn.00425ecf
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x468]
xor ecx, ecx
push eax
inc ecx
call fcn.004381e6
push edi
push eax
call fcn.00438350
test eax, eax
lea ecx, [ebp - 0x478]
setne bl
call fcn.00402907
test bl, bl
je 0x488bc1
push edi
lea eax, [ebp - 0x468]
push eax
call fcn.00443470
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x468]
push eax
call fcn.00443470
cmp byte [ebp - 0x462], 0
sete byte [ebp - 0x461]
cmp byte [ebp - 0x462], 0
je 0x488c47
xor ebx, ebx
cmp dword [ebp - 0x474], ebx
jbe 0x488c47
mov esi, dword [ebp - 0x470]
add esi, 4
push dword [esi]
lea eax, [ebp - 0x46c]
push eax
call fcn.004046e4
push dword [ebp - 0x468]
lea eax, [ebp - 0x46c]
push eax
call fcn.00438350
lea ecx, [ebp - 0x46c]
test eax, eax
je 0x488c3b
call fcn.00402907
inc ebx
add esi, 8
cmp ebx, dword [ebp - 0x474]
jb 0x488bfe
jmp 0x488c47
mov byte [ebp - 0x461], 1
call fcn.00402907
cmp byte [ebp - 0x461], 0
je 0x488c5c
push dword [ebp - 0x468]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x468]
call fcn.00402907
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 0x488b69
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.00402907
lea eax, [ebp - 0x474]
push eax
call fcn.00464dd2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ad67b
leave
ret