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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x168
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push esi
call fcn.00406c14
add esp, 0xc
mov dword [ebp - 0x150], eax
test edi, 8
je 0x407059
sub esp, 0xc
mov ebx, dword [0x424440]
push esi
call sub.KERNEL32.dll_DeleteFileA
add esp, 0xc
test eax, eax
sete al
movzx eax, al
add eax, ebx
mov dword [0x424440], eax
jmp 0x40727e
mov eax, edi
and eax, 4
mov dword [ebp - 0x158], eax
mov eax, edi
and eax, 1
mov dword [ebp - 0x160], eax
je 0x40708a
cmp dword [ebp - 0x150], 0
je 0x40726a
test edi, 2
je 0x40721a
push ebx
push ebx
push esi
push 0x423ba8
call fcn.0040675e
mov al, byte [ebp - 0x160]
pop edx
mov byte [ebp - 0x159], al
pop ecx
test al, al
je 0x4070be
push eax
push eax
push str..
push 0x423ba8
call fcn.004066da
pop ebx
pop eax
jmp 0x4070ca
sub esp, 0xc
push esi
call fcn.004066ec
add esp, 0xc
cmp byte [esi], 0
jne 0x4070d8
cmp byte [0x423ba8], 0x5c
jne 0x4070e7
push ecx
push ecx
push 0x40a43c
push esi
call fcn.004066da
pop eax
pop edx
sub esp, 0xc
push esi
call fcn.004066e3
sub esp, 0xc
lea eax, [esi + eax]
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x14c]
push eax
push 0x423ba8
call sub.KERNEL32.dll_FindFirstFileA
add esp, 0x18
mov ebx, eax
cmp eax, 0xffffffff
je 0x4071f5
push eax
push eax
lea eax, [ebp - 0x120]
push 0x3f
push eax
call fcn.00406586
pop edx
lea edx, [ebp - 0x120]
pop ecx
cmp byte [eax], 0
je 0x407147
lea edx, [ebp - 0x1c]
cmp byte [ebp - 0x1c], 0
jne 0x407147
lea edx, [ebp - 0x120]
cmp byte [edx], 0x2e
jne 0x40715d
mov al, byte [edx + 1]
test al, al
je 0x4071d0
cmp al, 0x2e
jne 0x40715d
cmp byte [edx + 2], 0
je 0x4071d0
push ecx
push ecx
push edx
push dword [ebp - 0x154]
call fcn.0040675e
test byte [ebp - 0x14c], 0x10
pop eax
pop edx
je 0x40718b
mov eax, edi
and eax, 3
cmp eax, 3
jne 0x4071d0
push eax
push eax
push edi
push esi
call fcn.0040700a
jmp 0x4071ce
push eax
push eax
push dword [ebp - 0x158]
push esi
call fcn.00406fa1
pop edx
test eax, eax
pop ecx
jne 0x4071c4
cmp dword [ebp - 0x158], 0
je 0x4071bc
push eax
push eax
push esi
push 0xfffffffffffffff1
call fcn.004040bb
push 0
push esi
call fcn.00406f6c
jmp 0x4071ce
inc dword [0x424440]
jmp 0x4071d0
push ecx
push ecx
push esi
push 0xfffffffffffffff2
call fcn.004040bb
pop eax
pop edx
push eax
push eax
lea eax, [ebp - 0x14c]
push eax
push ebx
call sub.KERNEL32.dll_FindNextFileA
pop edx
test eax, eax
pop ecx
jne 0x40711b
sub esp, 0xc
push ebx
call sub.KERNEL32.dll_FindClose
add esp, 0xc
cmp byte [ebp - 0x159], 0
je 0x407208
mov eax, dword [ebp - 0x154]
mov byte [eax - 1], 0
cmp dword [ebp - 0x160], 0
je 0x40727e
cmp dword [ebp - 0x150], 0
je 0x40726a
sub esp, 0xc
push esi
call fcn.00406553
add esp, 0xc
test eax, eax
je 0x40727e
sub esp, 0xc
push esi
call fcn.00406721
mov eax, dword [ebp - 0x158]
sub esp, 0xc
or eax, 1
push eax
push esi
call fcn.00406fa1
add esp, 0x18
test eax, eax
jne 0x407272
cmp dword [ebp - 0x158], 0
je 0x40726a
push ebx
push ebx
push esi
push 0xfffffffffffffff1
call fcn.004040bb
push 0
push esi
call fcn.00406f6c
jmp 0x40727c
inc dword [0x424440]
jmp 0x40727e
push ecx
push ecx
push esi
push 0xffffffffffffffe5
call fcn.004040bb
pop eax
pop edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8