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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419510
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x423808]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push eax
push 0x41a50c
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.004021e0
cmp dword [ebp + 0x1c], 8
mov ecx, dword [ebp + 0x18]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
mov byte [ebp - 4], 1
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x40240b
lea eax, [ecx - 1]
push eax
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp + 8]
call fcn.00402a00
mov esi, eax
lea eax, [ebp + 8]
cmp eax, esi
je 0x4023fa
cmp dword [ebp + 0x1c], 8
jb 0x4023dd
push dword [ebp + 8]
call fcn.0040f137
add esp, 4
xor eax, eax
push esi
lea ecx, [ebp + 8]
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
call fcn.00401810
cmp dword [ebp - 0x2c], 8
jb 0x40240b
push dword [ebp - 0x40]
call fcn.0040f137
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.004020c0
push 2
push 0x41a510
lea ecx, [ebp - 0x28]
call fcn.00401d60
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x290]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402451
xor bl, bl
jmp 0x4025db
push 0x41a518
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x40]
push eax
call section..text
mov esi, eax
lea eax, [ebp - 0x28]
add esp, 0xc
cmp eax, esi
je 0x40249d
cmp dword [ebp - 0x14], 8
jb 0x402480
push dword [ebp - 0x28]
call fcn.0040f137
add esp, 4
xor eax, eax
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00401810
cmp dword [ebp - 0x2c], 8
jb 0x4024ae
push dword [ebp - 0x40]
call fcn.0040f137
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebp - 0x290]
push eax
push edi
call esi
test eax, eax
je 0x4025c0
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esp, [esp]
mov ecx, 0x41a51c
lea eax, [ebp - 0x264]
jmp 0x4024e0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402506
test dx, dx
je 0x402502
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402506
add eax, 4
add ecx, 4
test dx, dx
jne 0x4024e0
xor eax, eax
jmp 0x40250b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4025ae
mov ecx, 0x41a520
lea eax, [ebp - 0x264]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402546
test dx, dx
je 0x402542
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402546
add eax, 4
add ecx, 4
test dx, dx
jne 0x402520
xor eax, eax
jmp 0x40254b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4025ae
test byte [ebp - 0x290], 0x10
je 0x40257b
sub esp, 0x18
mov eax, esp
lea ecx, [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x28]
push ecx
push eax
call section..text
add esp, 0xc
call fcn.00402340
add esp, 0x18
jmp 0x4025ae
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call section..text
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x40259a
mov eax, dword [eax]
push eax
call ebx
cmp dword [ebp - 0x2c], 8
jb 0x4025ae
push dword [ebp - 0x40]
call fcn.0040f137
add esp, 4
lea eax, [ebp - 0x290]
push eax
push edi
call esi
test eax, eax
jne 0x4024d0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov bl, 1
cmp dword [ebp - 0x14], 8
jb 0x4025ec
push dword [ebp - 0x28]
call fcn.0040f137
add esp, 4
xor eax, eax
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x402611
push dword [ebp + 8]
call fcn.0040f137
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040fa6b
mov esp, ebp
pop ebp
ret