Function at 0x108d94a
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 [0x111127c]
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 0x108d9b9
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x108d9af
test byte [eax + 0x1c], 2
je 0x108d9af
cmp byte [eax + 0x19], 1
jb 0x108d9af
push esi
push 0x1008be8
push 0x4f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov eax, 0x8007000e
jmp 0x108dc84
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 0x108da09
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x108d9fa
test byte [eax + 0x1c], 2
je 0x108d9fa
cmp byte [eax + 0x19], 1
jb 0x108d9fa
push esi
push 0x1008be8
push 0x50
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov dword [ebp - 0x25c], 0x8007000e
jmp 0x108dc51
mov esi, 0x144
test edi, edi
jne 0x108da2f
push edi
push edi
push 0x105
push ebx
call fcn.0108cab9
mov dword [ebp - 0x25c], eax
test eax, eax
jl 0x108dc51
jmp 0x108da94
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x108da34
sub eax, edx
sar eax, 1
cmp eax, 0x104
jb 0x108da5d
push 0x1009168
push 0x84f
push 0x1008c14
call fcn.0107b4be
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x108da62
sub eax, edx
sar eax, 1
cmp word [edi + eax*2 - 2], 0x5c
jne 0x108da8c
push 0x100912c
push 0x850
push 0x1008c14
call fcn.0107b4be
push edi
push esi
push ebx
call fcn.01025872
mov ebx, 0x10019e4
push ebx
push esi
push dword [ebp - 0x258]
call fcn.01040bdd
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 0x108dab6
sub eax, ecx
mov ecx, dword [0x11115c4]
sar eax, 1
lea edx, [ecx + 2]
mov di, word [ecx]
inc ecx
inc ecx
test di, di
jne 0x108dacd
sub ecx, edx
sar ecx, 1
lea eax, [ecx + eax + 1]
cmp eax, esi
jb 0x108daf7
push 0x10090ec
push 0x860
push 0x1008c14
call fcn.0107b4be
push dword [0x11115c4]
mov edi, dword [ebp - 0x258]
push esi
push edi
call fcn.01040bdd
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x108db22
and dword [ebp - 0x25c], 0
jmp 0x108dc51
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x108db27
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, dword [0x11115c0]
lea ecx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x108db3f
sub eax, ecx
sar eax, 1
lea eax, [eax + edx + 3]
mov esi, 0x209
cmp eax, esi
jb 0x108db6e
push 0x10090a0
push 0x86a
push 0x1008c14
call fcn.0107b4be
push edi
mov edi, dword [ebp - 0x264]
push esi
push edi
call fcn.01025872
push ebx
push esi
push edi
call fcn.01040bdd
push dword [0x11115c0]
push esi
push edi
call fcn.01040bdd
push 0x1005688
push esi
push edi
call fcn.01040bdd
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x260], eax
cmp eax, 0xffffffff
je 0x108dc51
mov eax, dword [ebp - 0x258]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x108dbc3
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 0x108dbdc
sub eax, edi
sar eax, 1
lea eax, [eax + edx + 2]
cmp eax, esi
jb 0x108dc06
push 0x1009060
push 0x880
push 0x1008c14
call fcn.0107b4be
push dword [ebp - 0x258]
mov edi, dword [ebp - 0x264]
push esi
push edi
call fcn.01025872
push ebx
push esi
push edi
call fcn.01040bdd
lea eax, [ebp - 0x228]
push eax
push esi
push edi
call fcn.01040bdd
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 0x108dbba
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 0x108dc7e
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.0106f5f8
leave
ret 4