Function at 0x10019c30
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006a456
mov eax, dword fs:[0]
push eax
sub esp, 0x680
mov eax, dword [0x100891f4]
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 dword [ebp - 0x684], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x688], ebx
test ebx, ebx
jne 0x10019c78
xor eax, eax
jmp 0x10019e91
cmp word [ebx], 0
je 0x10019c71
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10019c83
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jge 0x10019c71
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10043b10
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x1006eb7c
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, 0x5c
mov dword [ebp - 0x680], 0
push 0x250
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x67c]
push 0
push eax
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x424], 0
call fcn.10043b10
add esp, 0xc
push 0
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x680]
call fcn.10019eb0
test eax, eax
je 0x10019e42
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, dword [ebp - 0x684]
cmp dword [ebp - 0x424], 0
je 0x10019d94
mov eax, dword [ebp - 0x67c]
shr eax, 4
and eax, 1
je 0x10019d94
cmp word [ebp - 0x650], 0x2e
jne 0x10019d94
mov ax, word [ebp - 0x64e]
test ax, ax
je 0x10019d6f
cmp ax, 0x2e
jne 0x10019d94
cmp word [ebp - 0x64c], 0
jne 0x10019d94
mov eax, dword [ebp - 0x680]
test eax, eax
je 0x10019e3c
lea ecx, [ebp - 0x67c]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
jmp 0x10019e2e
lea eax, [ebp - 0x684]
push eax
lea ecx, [ebp - 0x680]
call fcn.1001a130
cmp dword [ebp - 0x424], 0
mov byte [ebp - 4], 1
je 0x10019dd8
mov eax, dword [ebp - 0x67c]
shr eax, 4
and eax, 1
je 0x10019dd8
mov esi, dword [ebp - 0x684]
mov ecx, ebx
push esi
call fcn.10019c30
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x10019de5
mov esi, dword [ebp - 0x684]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x680]
test eax, eax
jne 0x10019df3
xor edi, edi
jmp 0x10019e12
cmp dword [ebp - 0x424], 0
jne 0x10019e00
xor edi, edi
jmp 0x10019e12
lea ecx, [ebp - 0x67c]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10019e2e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jne 0x10019d32
mov ebx, dword [ebp - 0x688]
lea ecx, [ebp - 0x680]
call fcn.10017750
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push dword [ebp - 0x42c]
mov dword [ebp - 0x424], 0
call fcn.1002653e
mov eax, dword [ebp - 0x680]
add esp, 4
mov dword [ebp - 0x42c], 0
test eax, eax
je 0x10019e8c
cmp eax, 0xffffffff
je 0x10019e8c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
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.100264cc
mov esp, ebp
pop ebp
ret 4