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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47656c
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x49d4a4]
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 dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x170]
call fcn.004046d0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x188]
call fcn.00404fe0
mov byte [ebp - 4], 1
push 0x47a830
lea eax, [ebp - 0x188]
push eax
lea ecx, [ebp - 0x214]
push ecx
call fcn.004036d0
add esp, 0xc
mov dword [ebp - 0x230], eax
mov edx, dword [ebp - 0x230]
push edx
lea ecx, [ebp - 0x170]
call fcn.00403110
lea ecx, [ebp - 0x214]
call fcn.00404950
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x170]
call fcn.004046c0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x18c], 0xffffffff
je 0x407a92
lea eax, [ebp - 0x154]
push eax
mov ecx, dword [ebp - 0x18c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
jne 0x407968
jmp 0x407a92
mov eax, 1
imul ecx, eax, 0
movsx edx, byte [ebp + ecx - 0x128]
cmp edx, 0x2e
jne 0x40797f
jmp 0x407933
mov eax, 1
shl eax, 0
movsx ecx, byte [ebp + eax - 0x128]
test ecx, ecx
jne 0x407995
jmp 0x407933
mov eax, 1
shl eax, 0
movsx ecx, byte [ebp + eax - 0x128]
cmp ecx, 0x2e
jne 0x4079c2
mov eax, 1
shl eax, 1
movsx ecx, byte [ebp + eax - 0x128]
test ecx, ecx
jne 0x4079c2
jmp 0x407933
mov eax, dword [ebp - 0x154]
and eax, 0x10
je 0x407a53
push 0x492918
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x188]
push ecx
lea edx, [ebp - 0x22c]
push edx
call fcn.004036d0
add esp, 0xc
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x234]
push ecx
lea edx, [ebp - 0x1a4]
push edx
call fcn.004037b0
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x22c]
call fcn.00404950
lea ecx, [ebp - 0x1a4]
call fcn.004046c0
push eax
mov ecx, dword [ebp - 0x14]
call fcn.00407880
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1a4]
call fcn.00404950
jmp 0x407a8d
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x188]
push ecx
lea edx, [ebp - 0x1bc]
push edx
call fcn.004036d0
add esp, 0xc
lea ecx, [ebp - 0x1bc]
call fcn.004046c0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x1bc]
call fcn.00404950
jmp 0x407933
mov eax, dword [ebp - 0x18c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x188]
call fcn.004046c0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x407ada
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x188]
call fcn.00404950
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x170]
call fcn.00404950
jmp 0x407b11
push 4
push 0
lea ecx, [ebp - 0x188]
call fcn.004046c0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x188]
call fcn.00404950
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x170]
call fcn.00404950
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.0045a746
mov esp, ebp
pop ebp
ret 4