Function at 0x424670
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 0x5109d1
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x5723f8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2e0], edx
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2d8], 0
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov edx, esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xbc]
call fcn.00423940
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5c]
call fcn.00424100
mov edi, eax
lea eax, [ebp - 0x44]
cmp eax, edi
je 0x42474a
cmp dword [ebp - 0x30], 0x10
jb 0x42472f
push dword [ebp - 0x44]
call fcn.0044ef7f
add esp, 4
push edi
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
call fcn.00406c20
cmp dword [ebp - 0x48], 0x10
jb 0x42475b
push dword [ebp - 0x5c]
call fcn.0044ef7f
add esp, 4
mov byte [ebp - 4], 2
cmp dword [ebp - 0xa8], 0x10
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
jb 0x424788
push dword [ebp - 0xbc]
call fcn.0044ef7f
add esp, 4
push 0xb
push str.c:windows_
lea ecx, [ebp - 0xec]
mov dword [ebp - 0xd8], 0xf
mov dword [ebp - 0xdc], 0
mov byte [ebp - 0xec], 0
call fcn.004071b0
mov byte [ebp - 4], 4
lea eax, [ebp - 0xec]
cmp dword [ebp - 0xd8], 0x10
mov ebx, 1
mov dword [ebp - 0x2d8], ebx
cmovae eax, dword [ebp - 0xec]
cmp dword [esi + 0x14], 0x10
jb 0x4247e2
mov ecx, dword [esi]
jmp 0x4247e4
mov ecx, esi
push eax
push ecx
call fcn.00504b12
add esp, 8
test eax, eax
je 0x424b17
push 0x14
push str.c:windows_system32_
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x78], 0xf
mov dword [ebp - 0x7c], 0
mov byte [ebp - 0x8c], 0
call fcn.004071b0
mov dword [ebp - 4], 5
lea eax, [ebp - 0x8c]
cmp dword [ebp - 0x78], 0x10
mov ebx, 3
mov dword [ebp - 0x2d8], ebx
cmovae eax, dword [ebp - 0x8c]
cmp dword [esi + 0x14], 0x10
jb 0x42484a
mov ecx, dword [esi]
jmp 0x42484c
mov ecx, esi
push eax
push ecx
call fcn.00504b12
add esp, 8
test eax, eax
je 0x424b17
push 0x14
push str.C:windowsSysWOW64_
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x90], 0xf
mov dword [ebp - 0x94], 0
mov byte [ebp - 0xa4], 0
call fcn.004071b0
mov dword [ebp - 4], 6
lea eax, [ebp - 0xa4]
cmp dword [ebp - 0x90], 0x10
mov ebx, 7
mov dword [ebp - 0x2d8], ebx
cmovae eax, dword [ebp - 0xa4]
cmp dword [esi + 0x14], 0x10
jb 0x4248bb
mov ecx, dword [esi]
jmp 0x4248bd
mov ecx, esi
push eax
push ecx
call fcn.00504b12
add esp, 8
test eax, eax
je 0x424b17
push str.c:program_files_
lea ecx, [ebp - 0x104]
call fcn.004072b0
mov dword [ebp - 4], 7
lea eax, [ebp - 0x104]
cmp dword [ebp - 0xf0], 0x10
mov ebx, 0xf
mov dword [ebp - 0x2d8], ebx
cmovae eax, dword [ebp - 0x104]
cmp dword [esi + 0x14], 0x10
jb 0x42490f
mov ecx, dword [esi]
jmp 0x424911
mov ecx, esi
push eax
push ecx
call fcn.00504b12
add esp, 8
test eax, eax
je 0x424b17
push str.c:Program_Files__x86__
lea ecx, [ebp - 0xd4]
call fcn.004072b0
mov dword [ebp - 4], 8
lea eax, [ebp - 0xd4]
cmp dword [ebp - 0xc0], 0x10
mov ebx, 0x1f
mov dword [ebp - 0x2d8], ebx
cmovae eax, dword [ebp - 0xd4]
cmp dword [esi + 0x14], 0x10
jb 0x424963
mov ecx, dword [esi]
jmp 0x424965
mov ecx, esi
push eax
push ecx
call fcn.00504b12
add esp, 8
test eax, eax
je 0x424b17
push 0x559b64
lea ecx, [ebp - 0x5c]
call fcn.004072b0
mov dword [ebp - 4], 9
lea edx, [ebp - 0x5c]
mov ebx, 0x3f
mov ecx, esi
mov dword [ebp - 0x2d8], ebx
call fcn.004226d0
test al, al
jne 0x424b17
push 0x559b68
lea ecx, [ebp - 0xbc]
call fcn.004072b0
mov dword [ebp - 4], 0xa
lea edx, [ebp - 0xbc]
mov ebx, 0x7f
mov ecx, esi
mov dword [ebp - 0x2d8], ebx
call fcn.004226d0
test al, al
jne 0x424b17
push 0x559b6c
lea ecx, [ebp - 0x17c]
call fcn.004072b0
mov dword [ebp - 4], 0xb
lea edx, [ebp - 0x17c]
mov ebx, 0xff
mov ecx, esi
mov dword [ebp - 0x2d8], ebx
call fcn.004226d0
test al, al
jne 0x424b17
push 0x559b70
lea ecx, [ebp - 0x194]
call fcn.004072b0
mov dword [ebp - 4], 0xc
lea edx, [ebp - 0x194]
mov ebx, 0x1ff
mov ecx, esi
mov dword [ebp - 0x2d8], ebx
call fcn.004226d0
test al, al
jne 0x424b17
push 0x559b74
lea ecx, [ebp - 0x134]
call fcn.004072b0
mov dword [ebp - 4], 0xd
lea edx, [ebp - 0x134]
mov ebx, 0x3ff
mov ecx, esi
mov dword [ebp - 0x2d8], ebx
call fcn.004226d0
test al, al
jne 0x424b17
push 0x559b78
lea ecx, [ebp - 0x14c]
call fcn.004072b0
mov dword [ebp - 4], 0xe
lea edx, [ebp - 0x14c]
mov ebx, 0x7ff
mov ecx, esi
mov dword [ebp - 0x2d8], ebx
call fcn.004226d0
test al, al
jne 0x424b17
push 0x559b7c
lea ecx, [ebp - 0x11c]
call fcn.004072b0
mov dword [ebp - 4], 0xf
lea edx, [ebp - 0x11c]
mov ebx, 0xfff
mov ecx, esi
mov dword [ebp - 0x2d8], ebx
call fcn.004226d0
test al, al
jne 0x424b17
push 0x559b80
lea ecx, [ebp - 0x164]
call fcn.004072b0
lea edx, [ebp - 0x164]
mov ecx, esi
mov ebx, 0x1fff
call fcn.004226d0
mov byte [ebp - 0x2d9], 0
test al, al
je 0x424b1e
mov byte [ebp - 0x2d9], 1
test ebx, 0x1000
je 0x424b5e
and ebx, 0xffffefff
cmp dword [ebp - 0x150], 0x10
jb 0x424b43
push dword [ebp - 0x164]
call fcn.0044ef7f
add esp, 4
mov dword [ebp - 0x150], 0xf
mov dword [ebp - 0x154], 0
mov byte [ebp - 0x164], 0
test ebx, 0x800
je 0x424b9e
and ebx, 0xfffff7ff
cmp dword [ebp - 0x108], 0x10
jb 0x424b83
push dword [ebp - 0x11c]
call fcn.0044ef7f
add esp, 4
mov dword [ebp - 0x108], 0xf
mov dword [ebp - 0x10c], 0
mov byte [ebp - 0x11c], 0
test ebx, 0x400
je 0x424bde
and ebx, 0xfffffbff
cmp dword [ebp - 0x138], 0x10
jb 0x424bc3
push dword [ebp - 0x14c]
call fcn.0044ef7f
add esp, 4
mov dword [ebp - 0x138], 0xf
mov dword [ebp - 0x13c], 0
mov byte [ebp - 0x14c], 0
test ebx, 0x200
je 0x424c1e
and ebx, 0xfffffdff
cmp dword [ebp - 0x120], 0x10
jb 0x424c03
push dword [ebp - 0x134]
call fcn.0044ef7f
add esp, 4
mov dword [ebp - 0x120], 0xf
mov dword [ebp - 0x124], 0
mov byte [ebp - 0x134], 0
test ebx, 0x100
je 0x424c5e
and ebx, 0xfffffeff
cmp dword [ebp - 0x180], 0x10
jb 0x424c43
push dword [ebp - 0x194]
call fcn.0044ef7f
add esp, 4
mov dword [ebp - 0x180], 0xf
mov dword [ebp - 0x184], 0
mov byte [ebp - 0x194], 0
test bl, bl
jns 0x424c9a
and ebx, 0xffffff7f
cmp dword [ebp - 0x168], 0x10
jb 0x424c7f
push dword [ebp - 0x17c]
call fcn.0044ef7f
add esp, 4
mov dword [ebp - 0x168], 0xf
mov dword [ebp - 0x16c], 0
mov byte [ebp - 0x17c], 0
test bl, 0x40
je 0x424cd4
and ebx, 0xffffffbf
cmp dword [ebp - 0xa8], 0x10
jb 0x424cb9
push dword [ebp - 0xbc]
call fcn.0044ef7f
add esp, 4
mov dword [ebp - 0xa8], 0xf
mov dword [ebp - 0xac], 0
mov byte [ebp - 0xbc], 0
test bl, 0x20
je 0x424cff
and ebx, 0xffffffdf
cmp dword [ebp - 0x48], 0x10
jb 0x424ced
push dword [ebp - 0x5c]
call fcn.0044ef7f
add esp, 4
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
test bl, 0x10
je 0x424d39
and ebx, 0xffffffef
cmp dword [ebp - 0xc0], 0x10
jb 0x424d1e
push dword [ebp - 0xd4]
call fcn.0044ef7f
add esp, 4
mov dword [ebp - 0xc0], 0xf
mov dword [ebp - 0xc4], 0
mov byte [ebp - 0xd4], 0
test bl, 8
je 0x424d73
and ebx, 0xfffffff7
cmp dword [ebp - 0xf0], 0x10
jb 0x424d58
push dword [ebp - 0x104]
call fcn.0044ef7f
add esp, 4
mov dword [ebp - 0xf0], 0xf
mov dword [ebp - 0xf4], 0
mov byte [ebp - 0x104], 0
test bl, 4
je 0x424dad
and ebx, 0xfffffffb
cmp dword [ebp - 0x90], 0x10
jb 0x424d92
push dword [ebp - 0xa4]
call fcn.0044ef7f
add esp, 4
mov dword [ebp - 0x90], 0xf
mov dword [ebp - 0x94], 0
mov byte [ebp - 0xa4], 0
test bl, 2
je 0x424dde
and ebx, 0xfffffffd
cmp dword [ebp - 0x78], 0x10
jb 0x424dc9
push dword [ebp - 0x8c]
call fcn.0044ef7f
add esp, 4
mov dword [ebp - 0x78], 0xf
mov dword [ebp - 0x7c], 0
mov byte [ebp - 0x8c], 0
mov dword [ebp - 4], 2
test bl, 1
je 0x424e01
cmp dword [ebp - 0xd8], 0x10
jb 0x424e01
push dword [ebp - 0xec]
call fcn.0044ef7f
add esp, 4
cmp byte [ebp - 0x2d9], 0
mov ebx, dword [ebp + 0xc]
je 0x424e15
test bl, bl
jne 0x4250f8
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4250f8
test al, 0x10
je 0x4250f8
push dword [ebp - 0x2e0]
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x5c]
call fcn.00408b90
mov esi, eax
add esp, 4
lea eax, [ebp - 0x74]
cmp eax, esi
je 0x424e81
cmp dword [ebp - 0x60], 0x10
jb 0x424e66
push dword [ebp - 0x74]
call fcn.0044ef7f
add esp, 4
push esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
call fcn.00406c20
cmp dword [ebp - 0x48], 0x10
jb 0x424e92
push dword [ebp - 0x5c]
call fcn.0044ef7f
add esp, 4
push 0x140
lea eax, [ebp - 0x2d4]
push 0
push eax
call fcn.0045abe0
add esp, 0xc
lea ecx, [ebp - 0x2d4]
cmp dword [ebp - 0x60], 0x10
lea eax, [ebp - 0x74]
cmovae eax, dword [ebp - 0x74]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x2e8], esi
cmp esi, 0xffffffff
je 0x4250f8
lea ecx, [ebp - 0x2a8]
lea edx, [ecx + 1]
jmp 0x424ee0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x424ee0
sub ecx, edx
lea eax, [ebp - 0x2a8]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.004071b0
mov ebx, dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
mov edi, dword [ebp - 0x1c]
cmp ebx, 0x10
mov esi, 1
cmovae ecx, dword [ebp - 0x2c]
cmp edi, esi
cmovb esi, edi
test esi, esi
je 0x424f71
mov edx, 0x559c20
sub esi, 4
jb 0x424f32
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x424f37
add ecx, 4
add edx, 4
sub esi, 4
jae 0x424f21
cmp esi, 0xfffffffc
je 0x424f6b
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x424f64
cmp esi, 0xfffffffd
je 0x424f6b
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x424f64
cmp esi, 0xfffffffe
je 0x424f6b
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x424f64
cmp esi, 0xffffffff
je 0x424f6b
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x424f6b
sbb eax, eax
or eax, 1
jmp 0x424f6d
xor eax, eax
test eax, eax
jne 0x424f86
cmp edi, 1
jb 0x424f86
xor eax, eax
cmp edi, 1
setne al
test eax, eax
je 0x4250a4
cmp ebx, 0x10
lea ecx, [ebp - 0x2c]
mov eax, 2
mov edx, 0x559b84
cmovae ecx, dword [ebp - 0x2c]
cmp edi, eax
cmovb eax, edi
push eax
call fcn.00406af0
add esp, 4
test eax, eax
jne 0x424fc6
cmp edi, 2
jae 0x424fb6
or eax, 0xffffffff
jmp 0x424fbe
xor eax, eax
cmp edi, 2
setne al
test eax, eax
je 0x4250a4
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x5c]
call fcn.00408b90
mov esi, eax
add esp, 4
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x42500d
cmp dword [ebp - 0x18], 0x10
jb 0x424ff2
push dword [ebp - 0x2c]
call fcn.0044ef7f
add esp, 4
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.00406c20
cmp dword [ebp - 0x48], 0x10
jb 0x42501e
push dword [ebp - 0x5c]
call fcn.0044ef7f
add esp, 4
test byte [ebp - 0x2d4], 0x10
je 0x425064
cmp byte [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
je 0x42504a
mov edx, dword [ebp - 0x2e0]
lea ecx, [ebp - 0x2c]
push 1
push ebx
push dword [ebp - 0x2e4]
call fcn.00424670
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test bl, bl
je 0x4250ad
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call edi
jmp 0x4250ad
mov eax, dword [ebp - 0x2e4]
test eax, eax
je 0x425092
mov esi, dword [eax + 4]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2d8], 0
mov edx, esi
push dword [ebp - 0x2d8]
push ecx
mov ecx, dword [eax]
call fcn.00425970
add esp, 8
cmp eax, esi
jne 0x4250a4
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ebx, dword [ebp + 0xc]
push 0x140
lea eax, [ebp - 0x2d4]
push 0
push eax
call fcn.0045abe0
mov esi, dword [ebp - 0x2e8]
lea eax, [ebp - 0x2d4]
add esp, 0xc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x424ed2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
je 0x4250f8
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call edi
cmp dword [ebp - 0x18], 0x10
jb 0x425109
push dword [ebp - 0x2c]
call fcn.0044ef7f
add esp, 4
cmp dword [ebp - 0x60], 0x10
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jb 0x42512c
push dword [ebp - 0x74]
call fcn.0044ef7f
add esp, 4
cmp dword [ebp - 0x30], 0x10
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
jb 0x42514f
push dword [ebp - 0x44]
call fcn.0044ef7f
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 - 0x14]
xor ecx, ebp
call fcn.0044ed21
mov esp, ebp
pop ebp
ret