Function at 0x42a530
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x519070
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x559410]
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 eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2d4], 0
mov dword [ebp - 0x2e0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2dc], eax
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 2
push esi
push eax
call fcn.00429860
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push eax
call fcn.0042cc10
mov edi, eax
add esp, 0x10
lea eax, [ebp - 0x40]
cmp eax, edi
je 0x42a611
cmp dword [ebp - 0x2c], 0x10
jb 0x42a5f6
push dword [ebp - 0x40]
call fcn.00406890
add esp, 4
push edi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00405cd0
cmp dword [ebp - 0x44], 0x10
jb 0x42a622
push dword [ebp - 0x58]
call fcn.00406890
add esp, 4
cmp dword [ebp - 0x8c], 0x10
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
mov byte [ebp - 4], 2
jb 0x42a64f
push dword [ebp - 0xa0]
call fcn.00406890
add esp, 4
push 0xb
push str.c:windows_
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xbc], 0xf
mov dword [ebp - 0xc0], 0
mov byte [ebp - 0xd0], 0
call fcn.00405b80
cmp dword [ebp - 0xbc], 0x10
lea eax, [ebp - 0xd0]
mov ebx, 1
mov byte [ebp - 4], 4
cmovae eax, dword [ebp - 0xd0]
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x2d4], ebx
jb 0x42a6a9
mov ecx, dword [esi]
jmp 0x42a6ab
mov ecx, esi
push eax
push ecx
call fcn.00454bd6
add esp, 8
test eax, eax
je 0x42a9bf
push 0x14
push str.c:windows_system32_
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
call fcn.00405b80
cmp dword [ebp - 0x74], 0x10
lea eax, [ebp - 0x88]
mov ebx, 3
mov dword [ebp - 4], 5
cmovae eax, dword [ebp - 0x88]
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x2d4], ebx
jb 0x42a711
mov ecx, dword [esi]
jmp 0x42a713
mov ecx, esi
push eax
push ecx
call fcn.00454bd6
add esp, 8
test eax, eax
je 0x42a9bf
push str.C:windowsSysWOW64_
lea ecx, [ebp - 0xb8]
call fcn.00405c80
cmp dword [ebp - 0xa4], 0x10
lea eax, [ebp - 0xb8]
mov ebx, 7
mov dword [ebp - 4], 6
cmovae eax, dword [ebp - 0xb8]
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x2d4], ebx
jb 0x42a765
mov ecx, dword [esi]
jmp 0x42a767
mov ecx, esi
push eax
push ecx
call fcn.00454bd6
add esp, 8
test eax, eax
je 0x42a9bf
push str.c:program_files_
lea ecx, [ebp - 0xe8]
call fcn.00405c80
cmp dword [ebp - 0xd4], 0x10
lea eax, [ebp - 0xe8]
mov ebx, 0xf
mov dword [ebp - 4], 7
cmovae eax, dword [ebp - 0xe8]
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x2d4], ebx
jb 0x42a7b9
mov ecx, dword [esi]
jmp 0x42a7bb
mov ecx, esi
push eax
push ecx
call fcn.00454bd6
add esp, 8
test eax, eax
je 0x42a9bf
push str.c:Program_Files__x86__
lea ecx, [ebp - 0x58]
call fcn.00405c80
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 8
push eax
mov ebx, 0x1f
push esi
mov dword [ebp - 0x2d4], ebx
call fcn.004354f0
add esp, 8
test al, al
jne 0x42a9bf
push 0x5255e0
lea ecx, [ebp - 0xa0]
call fcn.00405c80
lea eax, [ebp - 0xa0]
mov dword [ebp - 4], 9
push eax
mov ebx, 0x3f
push esi
mov dword [ebp - 0x2d4], ebx
call fcn.004354f0
add esp, 8
test al, al
jne 0x42a9bf
push 0x5255e4
lea ecx, [ebp - 0x178]
call fcn.00405c80
lea eax, [ebp - 0x178]
mov dword [ebp - 4], 0xa
push eax
mov ebx, 0x7f
push esi
mov dword [ebp - 0x2d4], ebx
call fcn.004354f0
add esp, 8
test al, al
jne 0x42a9bf
push 0x5255e8
lea ecx, [ebp - 0x190]
call fcn.00405c80
lea eax, [ebp - 0x190]
mov dword [ebp - 4], 0xb
push eax
mov ebx, 0xff
push esi
mov dword [ebp - 0x2d4], ebx
call fcn.004354f0
add esp, 8
test al, al
jne 0x42a9bf
push 0x5255ec
lea ecx, [ebp - 0x130]
call fcn.00405c80
lea eax, [ebp - 0x130]
mov dword [ebp - 4], 0xc
push eax
mov ebx, 0x1ff
push esi
mov dword [ebp - 0x2d4], ebx
call fcn.004354f0
add esp, 8
test al, al
jne 0x42a9bf
push 0x5255f0
lea ecx, [ebp - 0x118]
call fcn.00405c80
lea eax, [ebp - 0x118]
mov dword [ebp - 4], 0xd
push eax
mov ebx, 0x3ff
push esi
mov dword [ebp - 0x2d4], ebx
call fcn.004354f0
add esp, 8
test al, al
jne 0x42a9bf
push 0x5255f4
lea ecx, [ebp - 0x100]
call fcn.00405c80
lea eax, [ebp - 0x100]
mov dword [ebp - 4], 0xe
push eax
mov ebx, 0x7ff
push esi
mov dword [ebp - 0x2d4], ebx
call fcn.004354f0
add esp, 8
test al, al
jne 0x42a9bf
push 0x5255f8
lea ecx, [ebp - 0x160]
call fcn.00405c80
lea eax, [ebp - 0x160]
mov dword [ebp - 4], 0xf
push eax
mov ebx, 0xfff
push esi
mov dword [ebp - 0x2d4], ebx
call fcn.004354f0
add esp, 8
test al, al
jne 0x42a9bf
push 0x5255fc
lea ecx, [ebp - 0x148]
call fcn.00405c80
lea eax, [ebp - 0x148]
mov ebx, 0x1fff
push eax
push esi
call fcn.004354f0
add esp, 8
mov byte [ebp - 0x2d5], 0
test al, al
je 0x42a9c6
mov byte [ebp - 0x2d5], 1
test ebx, 0x1000
je 0x42aa06
and ebx, 0xffffefff
cmp dword [ebp - 0x134], 0x10
jb 0x42a9eb
push dword [ebp - 0x148]
call fcn.00406890
add esp, 4
mov dword [ebp - 0x134], 0xf
mov dword [ebp - 0x138], 0
mov byte [ebp - 0x148], 0
test ebx, 0x800
je 0x42aa46
and ebx, 0xfffff7ff
cmp dword [ebp - 0x14c], 0x10
jb 0x42aa2b
push dword [ebp - 0x160]
call fcn.00406890
add esp, 4
mov dword [ebp - 0x14c], 0xf
mov dword [ebp - 0x150], 0
mov byte [ebp - 0x160], 0
test ebx, 0x400
je 0x42aa86
and ebx, 0xfffffbff
cmp dword [ebp - 0xec], 0x10
jb 0x42aa6b
push dword [ebp - 0x100]
call fcn.00406890
add esp, 4
mov dword [ebp - 0xec], 0xf
mov dword [ebp - 0xf0], 0
mov byte [ebp - 0x100], 0
test ebx, 0x200
je 0x42aac6
and ebx, 0xfffffdff
cmp dword [ebp - 0x104], 0x10
jb 0x42aaab
push dword [ebp - 0x118]
call fcn.00406890
add esp, 4
mov dword [ebp - 0x104], 0xf
mov dword [ebp - 0x108], 0
mov byte [ebp - 0x118], 0
test ebx, 0x100
je 0x42ab06
and ebx, 0xfffffeff
cmp dword [ebp - 0x11c], 0x10
jb 0x42aaeb
push dword [ebp - 0x130]
call fcn.00406890
add esp, 4
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
test bl, bl
jns 0x42ab42
and ebx, 0xffffff7f
cmp dword [ebp - 0x17c], 0x10
jb 0x42ab27
push dword [ebp - 0x190]
call fcn.00406890
add esp, 4
mov dword [ebp - 0x17c], 0xf
mov dword [ebp - 0x180], 0
mov byte [ebp - 0x190], 0
test bl, 0x40
je 0x42ab7c
and ebx, 0xffffffbf
cmp dword [ebp - 0x164], 0x10
jb 0x42ab61
push dword [ebp - 0x178]
call fcn.00406890
add esp, 4
mov dword [ebp - 0x164], 0xf
mov dword [ebp - 0x168], 0
mov byte [ebp - 0x178], 0
test bl, 0x20
je 0x42abb6
and ebx, 0xffffffdf
cmp dword [ebp - 0x8c], 0x10
jb 0x42ab9b
push dword [ebp - 0xa0]
call fcn.00406890
add esp, 4
mov dword [ebp - 0x8c], 0xf
mov dword [ebp - 0x90], 0
mov byte [ebp - 0xa0], 0
test bl, 0x10
je 0x42abe1
and ebx, 0xffffffef
cmp dword [ebp - 0x44], 0x10
jb 0x42abcf
push dword [ebp - 0x58]
call fcn.00406890
add esp, 4
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
test bl, 8
je 0x42ac1b
and ebx, 0xfffffff7
cmp dword [ebp - 0xd4], 0x10
jb 0x42ac00
push dword [ebp - 0xe8]
call fcn.00406890
add esp, 4
mov dword [ebp - 0xd4], 0xf
mov dword [ebp - 0xd8], 0
mov byte [ebp - 0xe8], 0
test bl, 4
je 0x42ac55
and ebx, 0xfffffffb
cmp dword [ebp - 0xa4], 0x10
jb 0x42ac3a
push dword [ebp - 0xb8]
call fcn.00406890
add esp, 4
mov dword [ebp - 0xa4], 0xf
mov dword [ebp - 0xa8], 0
mov byte [ebp - 0xb8], 0
test bl, 2
je 0x42ac86
and ebx, 0xfffffffd
cmp dword [ebp - 0x74], 0x10
jb 0x42ac71
push dword [ebp - 0x88]
call fcn.00406890
add esp, 4
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
mov dword [ebp - 4], 2
test bl, 1
je 0x42aca9
cmp dword [ebp - 0xbc], 0x10
jb 0x42aca9
push dword [ebp - 0xd0]
call fcn.00406890
add esp, 4
cmp byte [ebp - 0x2d5], 0
mov ebx, dword [ebp + 0x14]
je 0x42acbd
test bl, bl
jne 0x42af5f
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42af5f
test al, 0x10
je 0x42af5f
push dword [ebp - 0x2e0]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00434450
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x70]
cmp eax, esi
je 0x42ad2b
cmp dword [ebp - 0x5c], 0x10
jb 0x42ad10
push dword [ebp - 0x70]
call fcn.00406890
add esp, 4
push esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
call fcn.00405cd0
cmp dword [ebp - 0x44], 0x10
jb 0x42ad3c
push dword [ebp - 0x58]
call fcn.00406890
add esp, 4
push 0x140
lea eax, [ebp - 0x2d0]
push 0
push eax
call fcn.00455160
add esp, 0xc
lea ecx, [ebp - 0x2d0]
cmp dword [ebp - 0x5c], 0x10
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x2e4], esi
cmp esi, 0xffffffff
je 0x42af5f
lea esp, [esp]
lea ecx, [ebp - 0x2a4]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42ad90
sub ecx, edx
lea eax, [ebp - 0x2a4]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00405b80
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp - 0x28]
cmp edi, 0x10
mov esi, dword [ebp - 0x18]
mov eax, 1
cmovae ecx, ebx
cmp esi, eax
cmovb eax, esi
push eax
push 0x525210
push ecx
call fcn.00408810
add esp, 0xc
test eax, eax
jne 0x42adeb
cmp esi, 1
jb 0x42adeb
cmp esi, 1
setne al
test eax, eax
je 0x42af0b
cmp edi, 0x10
lea ecx, [ebp - 0x28]
mov eax, 2
cmovae ecx, ebx
cmp esi, eax
cmovb eax, esi
push eax
push 0x52556c
push ecx
call fcn.00408810
add esp, 0xc
test eax, eax
jne 0x42ae2b
cmp esi, 2
jae 0x42ae1b
or eax, 0xffffffff
jmp 0x42ae23
xor eax, eax
cmp esi, 2
setne al
test eax, eax
je 0x42af0b
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00434450
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x42ae74
cmp dword [ebp - 0x14], 0x10
jb 0x42ae59
push dword [ebp - 0x28]
call fcn.00406890
add esp, 4
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00405cd0
cmp dword [ebp - 0x44], 0x10
jb 0x42ae85
push dword [ebp - 0x58]
call fcn.00406890
add esp, 4
test byte [ebp - 0x2d0], 0x10
je 0x42aecc
cmp byte [ebp + 0x18], 0
mov ebx, dword [ebp + 0x14]
je 0x42aeb2
push 1
push ebx
push dword [ebp - 0x2dc]
lea eax, [ebp - 0x28]
push dword [ebp - 0x2e0]
push eax
call fcn.0042a530
add esp, 0x14
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test bl, bl
je 0x42af14
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call edi
jmp 0x42af14
mov eax, dword [ebp - 0x2dc]
test eax, eax
je 0x42aef9
mov esi, dword [eax + 4]
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x2d4], 0
push dword [ebp - 0x2d4]
push ecx
push esi
push dword [eax]
call fcn.00434730
add esp, 0x10
cmp eax, esi
jne 0x42af0b
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ebx, dword [ebp + 0x14]
push 0x140
lea eax, [ebp - 0x2d0]
push 0
push eax
call fcn.00455160
mov esi, dword [ebp - 0x2e4]
lea eax, [ebp - 0x2d0]
add esp, 0xc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42ad80
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
je 0x42af5f
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call edi
cmp dword [ebp - 0x14], 0x10
jb 0x42af70
push dword [ebp - 0x28]
call fcn.00406890
add esp, 4
cmp dword [ebp - 0x5c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x42af93
push dword [ebp - 0x70]
call fcn.00406890
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
jb 0x42afb6
push dword [ebp - 0x40]
call fcn.00406890
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.00453c72
mov esp, ebp
pop ebp
ret