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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x260
mov esi, dword [esp + 0x278]
mov ebx, dword [esp + 0x274]
push ebx
call fcn.00407397
mov ecx, esi
test cl, 8
jne 0x407154
mov edx, ecx
and edx, 4
mov dword [esp + 8], edx
test cl, 1
jne 0x40716d
mov dword [esp + 4], eax
push 0x2000
push ebx
push 0x46c36c
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push ebx
call fcn.0040744e
jmp 0x4071a0
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [0x40b114]
cmp eax, 1
adc dword [ecx + 8], 0
jmp 0x40735e
test cl, 2
je 0x407308
test eax, eax
je 0x407308
mov dword [esp + 4], eax
mov esi, 0x46c36c
push 0x2000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push str..
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp word [ebx], 0
jne 0x4071b0
cmp word [0x46c36c], 0x5c
jne 0x4071bc
push 0x40b56e
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [ebx + eax*2]
lea ebp, [esp + 0x10]
push ebp
push 0x46c36c
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4072f3
mov edi, eax
mov eax, dword [esp + 0x278]
and eax, 3
mov dword [esp + 0xc], eax
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [esp], esi
movzx ecx, word [esp + 0x3c]
movzx eax, word [esp + 0x3e]
cmp cx, 0x2e
jne 0x407211
test ax, ax
je 0x4072d9
cmp cx, 0x2e
jne 0x407229
cmp ax, 0x2e
jne 0x407229
cmp word [esp + 0x40], 0
je 0x4072d9
push 0x2000
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
test byte [esp + 0x10], 0x10
jne 0x40726f
mov ebp, dword [esp + 0x274]
push ebp
push str.Delete:_DeleteFile___s__
call fcn.00407485
add esp, 8
mov esi, dword [esp + 8]
push esi
push ebp
call fcn.0040708b
test eax, eax
je 0x40728b
push ebp
push 0xfffffffffffffff2
call fcn.00406aa5
jmp 0x4072d2
cmp dword [esp + 0xc], 3
jne 0x4072d9
push dword [esp + 0x278]
push dword [esp + 0x278]
call fcn.00407104
jmp 0x4072d9
test esi, esi
jne 0x4072ad
push dword [esp + 0x274]
push str.Delete:_DeleteFile_failed___s__
call fcn.00407485
add esp, 8
mov eax, dword [0x40b114]
inc dword [eax + 8]
jmp 0x4072d2
mov ebp, dword [esp + 0x274]
push ebp
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.00407485
add esp, 8
push ebp
push 0xfffffffffffffff1
call fcn.00406aa5
push 0
push ebp
call fcn.004074c4
mov esi, dword [esp]
lea ebp, [esp + 0x10]
push ebp
push edi
call ebx
test eax, eax
jne 0x4071f8
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [esp + 0x274]
mov eax, dword [esp + 0x278]
test al, 1
je 0x40735e
mov word [esi - 2], 0
mov eax, dword [esp + 4]
test eax, eax
je 0x407348
push ebx
call fcn.004074f3
test eax, eax
je 0x40735e
push ebx
call fcn.0040751b
push ebx
push str.RMDir:_RemoveDirectory___s__
call fcn.00407485
add esp, 8
mov esi, dword [esp + 8]
mov eax, esi
or eax, 1
push eax
push ebx
call fcn.0040708b
test eax, eax
je 0x40736b
push ebx
push 0xffffffffffffffe5
call fcn.00406aa5
jmp 0x40735e
push ebx
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.00407485
add esp, 8
mov eax, dword [0x40b114]
inc dword [eax + 8]
add esp, 0x260
pop esi
pop edi
pop ebx
pop ebp
ret 8
test esi, esi
jne 0x407377
push ebx
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x40734e
push ebx
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.00407485
add esp, 8
push ebx
push 0xfffffffffffffff1
call fcn.00406aa5
push 0
push ebx
call fcn.004074c4
jmp 0x40735e