Function at 0x407940
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x450
push ebx
push ebp
push esi
mov esi, dword [esp + 0x460]
push edi
push esi
lea eax, [esp + 0x25c]
mov ebp, ecx
push eax
mov dword [esp + 0x18], ebp
call fcn.004073a0
push esi
lea ecx, [esp + 0x360]
push ecx
mov ecx, ebp
call fcn.00407330
lea eax, [esp + 0x258]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407980
sub eax, edx
cmp byte [esp + eax + 0x258], 0x5c
je 0x4079b2
lea edi, [esp + 0x258]
dec edi
jmp 0x4079a0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4079a0
mov dx, word [0x42c01c]
mov word [edi], dx
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407aea
lea esp, [esp]
mov edi, 0x42c15c
lea esi, [esp + 0x40]
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x407ac8
mov edi, 0x42c158
lea esi, [esp + 0x40]
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x407ac8
test byte [esp + 0x14], 0x10
jne 0x407ac8
mov edi, 0x42ca34
lea esi, [esp + 0x35c]
mov ecx, 4
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x407a6b
xor eax, eax
jmp 0x407a30
mov cl, byte [esp + eax + 0x258]
mov byte [esp + eax + 0x154], cl
inc eax
test cl, cl
jne 0x407a30
lea eax, [esp + 0x40]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407a50
lea edi, [esp + 0x154]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x407a61
jmp 0x407aa9
xor eax, eax
lea ecx, [ecx]
mov cl, byte [esp + eax + 0x258]
mov byte [esp + eax + 0x154], cl
inc eax
test cl, cl
jne 0x407a70
lea eax, [esp + 0x35c]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407a90
lea edi, [esp + 0x154]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x407aa1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x154]
rep movsb byte es:[edi], byte [esi]
push eax
mov ecx, ebp
call fcn.00407700
lea ecx, [esp + 0x14]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4079d0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x464]
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x407bf6
mov ebx, dword [esp + 0x468]
jmp 0x407b10
mov edi, 0x42c15c
lea esi, [esp + 0x40]
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x407bdb
mov edi, 0x42c158
lea esi, [esp + 0x40]
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x407bdb
test byte [esp + 0x14], 0x10
je 0x407bdb
test bl, bl
je 0x407bdb
xor eax, eax
jmp 0x407b60
mov cl, byte [esp + eax + 0x258]
mov byte [esp + eax + 0x154], cl
inc eax
test cl, cl
jne 0x407b60
lea eax, [esp + 0x40]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407b80
lea edi, [esp + 0x154]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x407b91
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x154]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407bb1
mov eax, dword [str..]
mov cl, byte [0x42c4f4]
mov dword [edi], eax
push ebx
lea edx, [esp + 0x158]
mov byte [edi + 4], cl
mov ecx, dword [esp + 0x14]
push edx
call fcn.00407940
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407b10
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x258]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x450
ret 8