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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x535811
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x5a6a30]
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 ebx, dword [ebp + 8]
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x26c], 1
call fcn.0042aa6c
xor ecx, ecx
xor esi, esi
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x41016d
push 0x80004005
call fcn.004010e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x268], eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x278], esi
cmp ebx, esi
jne 0x410190
xor eax, eax
jmp 0x4101a4
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x410195
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x268]
call fcn.00401bc0
mov edi, dword [ebp - 0x268]
cmp dword [edi - 0xc], esi
jle 0x4101eb
push 0x2a
push edi
call fcn.0051fd02
add esp, 8
cmp eax, esi
je 0x4101d1
sub eax, edi
sar eax, 1
jns 0x410205
cmp dword [edi - 0xc], esi
jle 0x4101eb
push 0x3f
push edi
call fcn.0051fd02
add esp, 8
cmp eax, esi
je 0x4101eb
sub eax, edi
sar eax, 1
jns 0x410205
push 2
push 0x549784
lea ecx, [ebp - 0x268]
call fcn.004049b0
mov edi, dword [ebp - 0x268]
jmp 0x410228
cmp dword [edi - 0xc], esi
jle 0x410228
push 0x3f
push edi
call fcn.0051fd02
add esp, 8
cmp eax, esi
je 0x410228
sub eax, edi
sar eax, 1
js 0x410228
mov ecx, dword [edi - 0xc]
mov dword [ebp - 0x278], ecx
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
or ecx, eax
jge 0x410249
push esi
lea ecx, [ebp - 0x268]
call fcn.004015a0
mov edi, dword [ebp - 0x268]
lea edx, [ebp - 0x260]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x270], eax
cmp eax, 0xffffffff
jne 0x4102a0
push str.DeleteDirectoryFiles______Not_found._n
push 5
call fcn.00403750
lea eax, [edi - 0x10]
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410294
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x41065b
call fcn.0042aa6c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x410163
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x264], esi
push 0x5c
push edi
mov byte [ebp - 4], 1
call fcn.0051edd8
add esp, 8
test eax, eax
je 0x41039b
sub eax, edi
sar eax, 1
js 0x41039b
push 0x5c
push edi
call fcn.0051edd8
add esp, 8
test eax, eax
jne 0x4102fb
or eax, 0xffffffff
jmp 0x4102ff
sub eax, edi
sar eax, 1
push eax
lea ecx, [ebp - 0x27c]
push ecx
lea ecx, [ebp - 0x268]
call fcn.004048c0
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
mov byte [ebp - 4], 2
cmp eax, esi
je 0x410373
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x410363
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x410363
push eax
call fcn.004040b0
mov edi, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x410352
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0x10
mov dword [ebp - 0x264], edi
mov edi, dword [ebp - 0x268]
jmp 0x410373
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x264]
call fcn.00401bc0
mov eax, dword [ebp - 0x27c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4103cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4103cc
test ebx, ebx
jne 0x4103a3
xor eax, eax
jmp 0x4103bf
mov eax, ebx
lea edx, [eax + 2]
jmp 0x4103b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4103b0
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x264]
call fcn.00401bc0
push 1
push 0x5457b4
lea ecx, [ebp - 0x264]
call fcn.004049b0
lea eax, [ebp - 0x234]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4103e7
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x264]
call fcn.004049b0
mov esi, dword [ebp - 0x264]
cmp dword [esi - 4], 1
jle 0x41042a
mov edx, dword [esi - 0xc]
push edx
lea ecx, [ebp - 0x264]
call fcn.004012f0
mov esi, dword [ebp - 0x264]
push esi
push str.DeleteDirectoryFiles_DeleteFile__1_s__._n
push 5
call fcn.00403750
mov eax, dword [ebp - 0x278]
add esp, 0xc
test eax, eax
je 0x41044d
cmp eax, dword [esi - 0xc]
jne 0x4105b4
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x41046f
push 0
lea ecx, [ebp - 0x264]
call fcn.004015a0
mov esi, dword [ebp - 0x264]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4105b4
test bl, 0x10
je 0x41051b
lea ecx, [ebp - 0x234]
push 0x5496d8
push ecx
call fcn.0051eced
add esp, 8
test eax, eax
je 0x4104f2
lea edx, [ebp - 0x234]
push 0x5496d0
push edx
call fcn.0051eced
add esp, 8
test eax, eax
je 0x4104f2
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x4104dc
push 0
lea ecx, [ebp - 0x264]
call fcn.004015a0
mov esi, dword [ebp - 0x264]
push 1
push esi
call fcn.00410110
add esp, 8
and dword [ebp - 0x26c], eax
jmp 0x4105b4
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4105d4
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x4105d4
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
and ebx, 0xfffffffe
or ecx, eax
jge 0x410540
push 0
lea ecx, [ebp - 0x264]
call fcn.004015a0
mov esi, dword [ebp - 0x264]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x41056a
push 0
lea ecx, [ebp - 0x264]
call fcn.004015a0
mov esi, dword [ebp - 0x264]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4105b4
mov ecx, dword [esi - 8]
mov dword [ebp - 0x26c], eax
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x41059d
push 0
lea ecx, [ebp - 0x264]
call fcn.004015a0
mov esi, dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.DeleteDirectoryFiles_DeleteFile__1_s___failed.__0x_2_lx___n
push 2
call fcn.00403750
add esp, 0x10
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4105d4
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov esi, dword [ebp - 0x270]
lea ecx, [ebp - 0x260]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4105f7
mov ebx, dword [ebp - 0x274]
jmp 0x4102a0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0xc], 0
je 0x410632
mov esi, dword [ebp - 0x274]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x410632
mov dword [ebp - 0x26c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.DeleteDirectoryFiles_pRemoveDirectory__1_s___failed.__0x_2_lx___n
push 2
call fcn.00403750
add esp, 0x10
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410655
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x26c]
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.0051e701
mov esp, ebp
pop ebp
ret