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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474003
mov eax, dword fs:[0]
push eax
sub esp, 0x1ec
mov eax, dword [0x49c404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1f8], ecx
lea ecx, [ebp - 0x40]
call fcn.00404110
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404a20
mov byte [ebp - 4], 1
push 0x47889c
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x88]
push edx
call fcn.00403140
add esp, 0xc
mov dword [ebp - 0x1e8], eax
mov eax, dword [ebp - 0x1e8]
push eax
lea ecx, [ebp - 0x40]
call fcn.00402cb0
lea ecx, [ebp - 0x88]
call fcn.00404390
lea ecx, [ebp - 0x1e0]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00404100
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x1e4], eax
cmp dword [ebp - 0x1e4], 0xffffffff
je 0x407afa
lea edx, [ebp - 0x1e0]
push edx
mov eax, dword [ebp - 0x1e4]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 0x1ec], eax
cmp dword [ebp - 0x1ec], 0
jne 0x4079e9
jmp 0x407afa
mov ecx, 1
imul edx, ecx, 0
movsx eax, byte [ebp + edx - 0x1b4]
cmp eax, 0x2e
jne 0x407a00
jmp 0x4079b4
mov ecx, 1
shl ecx, 0
movsx edx, byte [ebp + ecx - 0x1b4]
test edx, edx
jne 0x407a16
jmp 0x4079b4
mov eax, 1
shl eax, 0
movsx ecx, byte [ebp + eax - 0x1b4]
cmp ecx, 0x2e
jne 0x407a43
mov edx, 1
shl edx, 1
movsx eax, byte [ebp + edx - 0x1b4]
test eax, eax
jne 0x407a43
jmp 0x4079b4
mov ecx, dword [ebp - 0x1e0]
and ecx, 0x10
je 0x407ac7
push 0x4788a0
lea edx, [ebp - 0x1b4]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xa0]
push ecx
call fcn.00403140
add esp, 0xc
mov dword [ebp - 0x1f0], eax
mov edx, dword [ebp - 0x1f0]
mov dword [ebp - 0x1f4], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1f4]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.00403220
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa0]
call fcn.00404390
lea ecx, [ebp - 0x58]
call fcn.00404100
push eax
mov ecx, dword [ebp - 0x1f8]
call fcn.00407910
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00404390
jmp 0x407af5
lea edx, [ebp - 0x1b4]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x70]
push ecx
call fcn.00403140
add esp, 0xc
lea ecx, [ebp - 0x70]
call fcn.00404100
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x70]
call fcn.00404390
jmp 0x4079b4
mov edx, dword [ebp - 0x1e4]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x28]
call fcn.00404100
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x407b39
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00404390
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404390
jmp 0x407b67
push 4
push 0
lea ecx, [ebp - 0x28]
call fcn.00404100
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00404390
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404390
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004582c7
mov esp, ebp
pop ebp
ret 4