Function at 0x4070d0
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x150
push ebx
mov ebx, dword [esp + 0x15c]
push esi
mov esi, dword [esp + 0x15c]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.00406f2b
mov dword [esp + 0x18], eax
test bl, 8
je 0x407112
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x454dc8], eax
jmp 0x407302
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x18], ebp
je 0x40712f
test eax, eax
je 0x40728e
test bl, 2
je 0x407296
push esi
push 0x445da0
call fcn.00407533
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x407152
push 0x409e10
push 0x445da0
call ebp
jmp 0x407158
push esi
call fcn.0040772a
cmp byte [esi], 0
jne 0x407166
cmp byte [0x445da0], 0x5c
jne 0x40716e
push 0x4096c8
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [esi + eax]
lea eax, [esp + 0x20]
mov dword [esp + 0x10], ebp
push eax
push 0x445da0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x40727c
lea ebp, [esp + 0x4c]
push 0x3f
mov eax, ebp
push eax
call fcn.00406eee
cmp byte [eax], 0
je 0x4071c0
cmp byte [esp + 0x150], 0
lea eax, [esp + 0x150]
cmove eax, ebp
mov ebp, eax
cmp byte [ebp], 0x2e
jne 0x4071db
mov al, byte [ebp + 1]
test al, al
je 0x407257
cmp al, 0x2e
jne 0x4071db
cmp byte [ebp + 2], 0
je 0x407257
push ebp
mov ebp, dword [esp + 0x14]
push ebp
call fcn.00407533
test byte [esp + 0x20], 0x10
je 0x4071ff
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x40725b
push ebx
push esi
call fcn.004070d0
jmp 0x40725b
push esi
push str.Delete:_DeleteFile___s__
call fcn.00406fa4
pop ecx
pop ecx
push edi
push esi
call fcn.00406e7d
push esi
test eax, eax
jne 0x40724e
test edi, edi
je 0x40723a
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.00406fa4
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.004064f2
push 0
push esi
call fcn.00406a57
jmp 0x40725b
push str.Delete:_DeleteFile_failed___s__
call fcn.00406fa4
inc dword [0x454dc8]
pop ecx
pop ecx
jmp 0x40725b
push 0xfffffffffffffff2
call fcn.004064f2
jmp 0x40725b
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407199
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x18], 0
je 0x407301
cmp dword [esp + 0x1c], 0
mov byte [ebp - 1], 0
jne 0x407296
push esi
push str.RMDir:_RemoveDirectory_invalid_input___s__
jmp 0x4072eb
push esi
call fcn.00406ec7
test eax, eax
je 0x407301
push esi
call fcn.00406e50
push esi
push str.RMDir:_RemoveDirectory___s__
call fcn.00406fa4
pop ecx
pop ecx
mov eax, edi
or eax, 1
push eax
push esi
call fcn.00406e7d
push esi
test eax, eax
jne 0x4072fa
test edi, edi
je 0x4072e6
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.00406fa4
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.004064f2
push 0
push esi
call fcn.00406a57
jmp 0x407301
push str.RMDir:_RemoveDirectory_failed___s__
call fcn.00406fa4
inc dword [0x454dc8]
pop ecx
pop ecx
jmp 0x407301
push 0xffffffffffffffe5
call fcn.004064f2
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x150
ret 8