Function at 0x402590
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f3e8
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x4170b0]
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
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [esi], ax
jne 0x4025dd
xor ecx, ecx
jmp 0x4025ef
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4025e0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00403520
push str._.
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0
call fcn.004041a0
add esp, 4
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14], 8
jb 0x402628
push dword [ebp - 0x28]
call fcn.0040492b
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
cmp word [esi], ax
jne 0x402653
xor ecx, ecx
jmp 0x40266f
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x402660
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402660
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.00403520
push 0x415538
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.004041a0
add esp, 4
mov byte [ebp - 4], 5
cmp dword [ebp - 0x2c], 8
jb 0x4026a5
push dword [ebp - 0x40]
call fcn.0040492b
add esp, 4
xor eax, eax
push 0x7d0
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x2c0]
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4027f7
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x402700
test byte [ebp - 0x2c0], 0x10
lea eax, [ebp - 0x294]
je 0x4027b3
mov ecx, 0x41553c
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40273e
test dx, dx
je 0x40273a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40273e
add eax, 4
add ecx, 4
test dx, dx
jne 0x402718
xor eax, eax
jmp 0x402743
sbb eax, eax
or eax, 1
test eax, eax
je 0x4027de
mov ecx, 0x415540
lea eax, [ebp - 0x294]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40277c
test dx, dx
je 0x402778
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40277c
add eax, 4
add ecx, 4
test dx, dx
jne 0x402756
xor eax, eax
jmp 0x402781
sbb eax, eax
or eax, 1
test eax, eax
je 0x4027de
lea eax, [ebp - 0x294]
push eax
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x28]
call fcn.00404240
add esp, 4
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
jb 0x4027a6
mov eax, dword [eax]
mov ecx, eax
call fcn.004022e0
mov byte [ebp - 4], 5
jmp 0x4027cd
push eax
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x28]
call fcn.00404240
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x4027ca
mov eax, dword [eax]
push eax
call edi
cmp dword [ebp - 0x14], 8
jb 0x4027de
push dword [ebp - 0x28]
call fcn.0040492b
add esp, 4
lea eax, [ebp - 0x2c0]
push eax
push esi
call ebx
test eax, eax
jne 0x402700
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x44], 8
jb 0x402808
push dword [ebp - 0x58]
call fcn.0040492b
add esp, 4
xor eax, eax
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
jb 0x40282d
push dword [ebp - 0x70]
call fcn.0040492b
add esp, 4
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.00404930
mov esp, ebp
pop ebp
ret