Function at 0x405400
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e27f
mov eax, dword fs:[0]
push eax
sub esp, 0x2e8
mov eax, dword [0x4251d4]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], 1
mov byte [ebp - 0x11], 0
push 0
push 0
lea ecx, [ebp - 0x34]
call fcn.004077c0
mov eax, dword [0x41ff6c]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00407220
mov dword [ebp - 4], 0
push str..
call fcn.00411130
add esp, 4
mov dword [ebp - 0x220], eax
mov edx, dword [ebp - 0x220]
push edx
push str..
lea ecx, [ebp - 0x34]
call fcn.004070e0
cmp dword [ebp - 0x1c], 0x10
jb 0x405495
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c0], eax
jmp 0x40549e
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c0], ecx
lea edx, [ebp - 0x17c]
push edx
mov eax, dword [ebp - 0x2c0]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0xffffffff
jne 0x4054e6
mov byte [ebp - 0x185], 0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.004077c0
mov al, byte [ebp - 0x185]
jmp 0x4058be
cmp dword [ebp - 0x38], 0
je 0x40588f
mov ecx, dword [ebp - 0x17c]
and ecx, 0x10
jne 0x405506
mov edx, dword [ebp - 0x17c]
and edx, 4
je 0x40551f
lea eax, [ebp - 0x17c]
push eax
mov ecx, dword [ebp - 0x180]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 0x38], eax
jmp 0x4054e6
lea edx, [ebp - 0x230]
push edx
lea ecx, [ebp - 0x34]
call fcn.004074e0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x224], edx
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x34]
call fcn.004074a0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x234], edx
mov eax, dword [ebp - 0x224]
push eax
mov ecx, dword [ebp - 0x228]
push ecx
mov edx, dword [ebp - 0x234]
push edx
mov eax, dword [ebp - 0x238]
push eax
lea ecx, [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00407350
push 0x41f450
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040a870
add esp, 0xc
mov dword [ebp - 0x2c4], eax
mov ecx, dword [ebp - 0x2c4]
mov dword [ebp - 0x2c8], ecx
mov byte [ebp - 4], 1
lea edx, [ebp - 0x150]
push edx
mov eax, dword [ebp - 0x2c8]
push eax
lea ecx, [ebp - 0x1c0]
push ecx
call fcn.0040a870
add esp, 0xc
mov dword [ebp - 0x2cc], eax
mov edx, dword [ebp - 0x2cc]
mov dword [ebp - 0x250], edx
mov byte [ebp - 4], 2
mov eax, dword [0x41ff6c]
push eax
push 0
mov ecx, dword [ebp - 0x250]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00407220
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x1c0]
call fcn.004077c0
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x1a4]
call fcn.004077c0
cmp dword [ebp - 0x1c], 0x10
jb 0x405639
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x2d0], edx
jmp 0x405642
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2d0], eax
mov ecx, dword [ebp - 0x2d0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x184], eax
cmp dword [ebp - 0x184], 0xffffffff
je 0x40568a
cmp dword [ebp - 0x1c], 0x10
jb 0x40566f
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x2d4], edx
jmp 0x405678
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2d4], eax
push 0x80
mov ecx, dword [ebp - 0x2d4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [ebp - 0x34]
push edx
push str.__del_file:
lea eax, [ebp - 0x1dc]
push eax
call fcn.0040a7c0
add esp, 0xc
mov dword [ebp - 0x2d8], eax
mov ecx, dword [ebp - 0x2d8]
mov dword [ebp - 0x2dc], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2dc]
push edx
call fcn.00401580
add esp, 4
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x1dc]
call fcn.004077c0
cmp dword [ebp - 0x1c], 0x10
jb 0x4056eb
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2e0], eax
jmp 0x4056f4
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2e0], ecx
mov edx, dword [ebp - 0x2e0]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2e4], eax
cmp dword [ebp - 0x2e4], 5
je 0x40572a
cmp dword [ebp - 0x2e4], 0x21
je 0x40572a
jmp 0x405873
cmp dword [ebp - 0x10], 0x21
jne 0x4057e0
cmp dword [0x436590], 0x1f
jae 0x4057e0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x34]
push ecx
push str.__del_file:
lea edx, [ebp - 0x1f8]
push edx
call fcn.0040a7c0
add esp, 0xc
mov dword [ebp - 0x2e8], eax
mov eax, dword [ebp - 0x2e8]
mov dword [ebp - 0x2ec], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x2ec]
push ecx
call fcn.00401580
add esp, 4
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x1f8]
call fcn.004077c0
cmp dword [ebp - 0x1c], 0x10
jb 0x4057ad
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x2f0], edx
jmp 0x4057b6
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2f0], eax
mov ecx, dword [ebp - 0x2f0]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov edx, dword [0x436590]
add edx, 1
mov dword [0x436590], edx
jmp 0x40572a
cmp dword [ebp - 0x1c], 0x10
jb 0x4057f1
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2f4], eax
jmp 0x4057fa
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2f4], ecx
mov edx, dword [ebp - 0x2f4]
push edx
lea ecx, [ebp - 0x218]
call fcn.00406560
mov byte [ebp - 4], 5
lea eax, [ebp - 0x218]
push eax
call fcn.004058e0
add esp, 4
movzx ecx, al
neg ecx
sbb ecx, ecx
add ecx, 1
mov byte [ebp - 0x1f9], cl
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x218]
call fcn.004077c0
movzx edx, byte [ebp - 0x1f9]
test edx, edx
je 0x40586f
mov byte [ebp - 0x219], 0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.004077c0
mov al, byte [ebp - 0x219]
jmp 0x4058be
mov byte [ebp - 0x11], 1
lea eax, [ebp - 0x17c]
push eax
mov ecx, dword [ebp - 0x180]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 0x38], eax
jmp 0x4054e6
mov edx, dword [ebp - 0x180]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [ebp - 0x11]
mov byte [ebp - 0x21a], al
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.004077c0
mov al, byte [ebp - 0x21a]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00411116
mov esp, ebp
pop ebp
ret