Function at 0x10083620
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
sub esp, 0x668
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov dword [ebp - 0x668], edx
push 0x206
push eax
mov word [ebp - 0x414], ax
mov esi, ecx
lea eax, [ebp - 0x412]
push eax
call fcn.101a01b0
lea ecx, [ebp - 0x414]
add esp, 0xc
mov eax, ecx
mov edx, 0x104
sub esi, eax
lea esp, [esp]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x1008368e
movzx eax, word [esi + ecx]
test ax, ax
je 0x1008368e
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x10083670
jmp 0x10083692
test edx, edx
jne 0x10083695
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100836a3
sub ecx, edx
sar ecx, 1
lea eax, [ecx - 1]
test eax, eax
jg 0x100836ca
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
add eax, eax
movzx ecx, word [ebp + eax - 0x414]
cmp ecx, 0x5c
je 0x100836de
cmp ecx, 0x2f
jne 0x100836f3
cmp eax, 0x208
jae 0x100838b0
xor ecx, ecx
mov word [ebp + eax - 0x414], cx
xor eax, eax
push ebx
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x414]
push eax
push str._s.
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.100053b0
add esp, 0x10
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1008388c
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea esp, [esp]
test byte [ebp - 0x664], 0x10
lea eax, [ebp - 0x638]
je 0x10083813
mov ecx, 0x102285f0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1008378e
test dx, dx
je 0x1008378a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1008378e
add eax, 4
add ecx, 4
test dx, dx
jne 0x10083768
xor eax, eax
jmp 0x10083793
sbb eax, eax
or eax, 1
test eax, eax
je 0x10083875
mov ecx, 0x102285f4
lea eax, [ebp - 0x638]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100837cc
test dx, dx
je 0x100837c8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100837cc
add eax, 4
add ecx, 4
test dx, dx
jne 0x100837a6
xor eax, eax
jmp 0x100837d1
sbb eax, eax
or eax, 1
test eax, eax
je 0x10083875
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x414]
push eax
push 0x1022fcac
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.100053b0
mov edx, dword [ebp - 0x668]
lea ecx, [ebp - 0x20c]
add esp, 0x14
call fcn.10083620
jmp 0x10083875
push eax
lea eax, [ebp - 0x414]
push eax
push 0x1022fcac
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.100053b0
mov eax, dword [ebp - 0x664]
add esp, 0x14
test al, 1
je 0x1008385e
cmp dword [ebp - 0x668], 0
je 0x10083875
and eax, 0xfffffffe
push eax
mov dword [ebp - 0x664], eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0xffffffff
je 0x10083875
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x664]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10083750
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
pop ebx
xor ecx, ebp
pop esi
call fcn.101a0193
mov esp, ebp
pop ebp
ret
call fcn.101a8017
int3