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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a5a0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2a0
mov eax, dword [0x424040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x4053cb
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 2
jb 0x405425
cmp dword [ebx + 0x1c], 7
lea eax, [ebx + 8]
push 2
cmova eax, dword [ebx + 8]
push 0x41c7bc
push ecx
push eax
push ecx
push dword [ebp - 0x29c]
lea ecx, [ebp - 0x44]
call fcn.004190b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x298]
cmp dword [ebp - 0x30], 7
lea eax, [ebp - 0x44]
push ecx
cmova eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x2ac], edi
cmp edi, 0xffffffff
je 0x405381
nop dword [eax]
nop dword [eax + eax]
mov ecx, 0x41c7c4
lea eax, [ebp - 0x26c]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405166
test dx, dx
je 0x405162
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405166
add eax, 4
add ecx, 4
test dx, dx
jne 0x405140
xor eax, eax
jmp 0x40516b
sbb eax, eax
or eax, 1
test eax, eax
je 0x405364
mov ecx, 0x41c7c8
lea eax, [ebp - 0x26c]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4051a6
test dx, dx
je 0x4051a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4051a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x405180
xor eax, eax
jmp 0x4051ab
sbb eax, eax
or eax, 1
test eax, eax
je 0x405364
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
movups xmmword [ebp - 0x2c], xmm0
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 2
lea ecx, [ebx + 8]
cmp dword [ebx + 0x1c], 7
mov esi, dword [ebx + 0x18]
cmova ecx, dword [ebx + 8]
cmp esi, 7
ja 0x405202
lea eax, [esi + esi]
mov dword [ebp - 0x1c], esi
push eax
push ecx
lea eax, [ebp - 0x2c]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [ebp + esi*2 - 0x2c], ax
jmp 0x405219
push ecx
mov byte [ebp - 0x2a4], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x2a4]
push esi
call fcn.00418f10
mov edx, dword [ebp - 0x18]
mov eax, edx
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
cmp eax, 1
jb 0x405241
lea eax, [ecx + 1]
cmp edx, 7
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
mov dword [eax + ecx*2], 0x5c
jmp 0x40525f
push 1
push 0x41c530
mov byte [ebp - 0x2a8], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x2a8]
push 1
call fcn.00418c50
lea esi, [ebp - 0x26c]
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x405270
mov edx, dword [ebp - 0x18]
sub esi, ecx
mov ecx, dword [ebp - 0x1c]
mov eax, edx
sar esi, 1
sub eax, ecx
mov dword [ebp - 0x2a0], ecx
cmp esi, eax
ja 0x4052d0
lea eax, [ecx + esi]
cmp edx, 7
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x2c]
cmova edi, dword [ebp - 0x2c]
lea eax, [esi + esi]
push eax
lea eax, [ebp - 0x26c]
push eax
lea ecx, [edi + ecx*2]
push ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x2a0]
add esp, 0xc
add eax, esi
xor ecx, ecx
mov word [edi + eax*2], cx
mov edi, dword [ebp - 0x2ac]
jmp 0x4052ee
push esi
lea eax, [ebp - 0x26c]
mov byte [ebp - 0x29c], 0
push eax
push dword [ebp - 0x29c]
lea ecx, [ebp - 0x2c]
push esi
call fcn.00418c50
test byte [ebp - 0x298], 0x10
lea eax, [ebp - 0x2c]
je 0x405317
cmp dword [ebp - 0x18], 7
cmova eax, dword [ebp - 0x2c]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00417b40
call fcn.00405070
add esp, 0x18
jmp 0x405326
cmp dword [ebp - 0x18], 7
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x405364
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40535a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4053f7
push ecx
push edx
call fcn.00419833
add esp, 8
lea eax, [ebp - 0x298]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405130
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x30]
cmp ecx, 7
jbe 0x4053b7
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4053ad
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4053f7
push ecx
push edx
call fcn.00419833
add esp, 8
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov ecx, dword [ebx + 0x1c]
cmp ecx, 7
jbe 0x405407
mov edx, dword [ebx + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4053fd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4053fd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00419833
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004194ef
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00404250
int3