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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x111027c]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x260], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x288
push esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
pop ecx
mov dword [ebp - 0x258], ebx
test ebx, ebx
jne 0x108d99b
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x108d991
test byte [eax + 0x1c], 2
je 0x108d991
cmp byte [eax + 0x19], 1
jb 0x108d991
push esi
push 0x1008bf8
push 0x4f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, 0x8007000e
jmp 0x108dc66
mov esi, 0x412
push esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x108d9eb
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x108d9dc
test byte [eax + 0x1c], 2
je 0x108d9dc
cmp byte [eax + 0x19], 1
jb 0x108d9dc
push esi
push 0x1008bf8
push 0x50
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov dword [ebp - 0x25c], 0x8007000e
jmp 0x108dc33
mov esi, 0x144
test edi, edi
jne 0x108da11
push edi
push edi
push 0x105
push ebx
call fcn.0108ca89
mov dword [ebp - 0x25c], eax
test eax, eax
jl 0x108dc33
jmp 0x108da76
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x108da16
sub eax, edx
sar eax, 1
cmp eax, 0x104
jb 0x108da3f
push 0x1009178
push 0x84f
push 0x1008c24
call fcn.0107b644
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x108da44
sub eax, edx
sar eax, 1
cmp word [edi + eax*2 - 2], 0x5c
jne 0x108da6e
push 0x100913c
push 0x850
push 0x1008c24
call fcn.0107b644
push edi
push esi
push ebx
call fcn.010257dc
mov ebx, 0x10019e4
push ebx
push esi
push dword [ebp - 0x258]
call fcn.01040cf0
mov eax, dword [ebp - 0x258]
and dword [ebp - 0x25c], 0
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x108da98
sub eax, ecx
mov ecx, dword [0x11105c4]
sar eax, 1
lea edx, [ecx + 2]
mov di, word [ecx]
inc ecx
inc ecx
test di, di
jne 0x108daaf
sub ecx, edx
sar ecx, 1
lea eax, [ecx + eax + 1]
cmp eax, esi
jb 0x108dad9
push 0x10090fc
push 0x860
push 0x1008c24
call fcn.0107b644
push dword [0x11105c4]
mov edi, dword [ebp - 0x258]
push esi
push edi
call fcn.01040cf0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x108db04
and dword [ebp - 0x25c], 0
jmp 0x108dc33
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x108db09
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, dword [0x11105c0]
lea ecx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x108db21
sub eax, ecx
sar eax, 1
lea eax, [eax + edx + 3]
mov esi, 0x209
cmp eax, esi
jb 0x108db50
push 0x10090b0
push 0x86a
push 0x1008c24
call fcn.0107b644
push edi
mov edi, dword [ebp - 0x264]
push esi
push edi
call fcn.010257dc
push ebx
push esi
push edi
call fcn.01040cf0
push dword [0x11105c0]
push esi
push edi
call fcn.01040cf0
push 0x100568c
push esi
push edi
call fcn.01040cf0
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x260], eax
cmp eax, 0xffffffff
je 0x108dc33
mov eax, dword [ebp - 0x258]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x108dba5
sub eax, edx
sar eax, 1
mov edx, eax
lea eax, [ebp - 0x228]
lea edi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x108dbbe
sub eax, edi
sar eax, 1
lea eax, [eax + edx + 2]
cmp eax, esi
jb 0x108dbe8
push 0x1009070
push 0x880
push 0x1008c24
call fcn.0107b644
push dword [ebp - 0x258]
mov edi, dword [ebp - 0x264]
push esi
push edi
call fcn.010257dc
push ebx
push esi
push edi
call fcn.01040cf0
lea eax, [ebp - 0x228]
push eax
push esi
push edi
call fcn.01040cf0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x108db9c
push dword [ebp - 0x258]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x264]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
cmp dword [ebp - 0x260], 0xffffffff
pop ecx
pop ecx
je 0x108dc60
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x25c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f798
leave
ret 4