Function at 0x1000af10
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003c126
mov eax, dword fs:[0]
push eax
sub esp, 0x680
mov eax, dword [0x10051114]
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 0x1000af58
xor eax, eax
jmp 0x1000b171
cmp word [ebx], 0
je 0x1000af51
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000af63
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jge 0x1000af51
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.100214a0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x1003f2ec
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.100214a0
add esp, 0xc
push 0
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x680]
call fcn.1000b190
test eax, eax
je 0x1000b122
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, dword [ebp - 0x684]
cmp dword [ebp - 0x424], 0
je 0x1000b074
mov eax, dword [ebp - 0x67c]
shr eax, 4
and eax, 1
je 0x1000b074
cmp word [ebp - 0x650], 0x2e
jne 0x1000b074
mov ax, word [ebp - 0x64e]
test ax, ax
je 0x1000b04f
cmp ax, 0x2e
jne 0x1000b074
cmp word [ebp - 0x64c], 0
jne 0x1000b074
mov eax, dword [ebp - 0x680]
test eax, eax
je 0x1000b11c
lea ecx, [ebp - 0x67c]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
jmp 0x1000b10e
lea eax, [ebp - 0x684]
push eax
lea ecx, [ebp - 0x680]
call fcn.1000b410
cmp dword [ebp - 0x424], 0
mov byte [ebp - 4], 1
je 0x1000b0b8
mov eax, dword [ebp - 0x67c]
shr eax, 4
and eax, 1
je 0x1000b0b8
mov esi, dword [ebp - 0x684]
mov ecx, ebx
push esi
call fcn.1000af10
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1000b0c5
mov esi, dword [ebp - 0x684]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x680]
test eax, eax
jne 0x1000b0d3
xor edi, edi
jmp 0x1000b0f2
cmp dword [ebp - 0x424], 0
jne 0x1000b0e0
xor edi, edi
jmp 0x1000b0f2
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 0x1000b10e
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 0x1000b012
mov ebx, dword [ebp - 0x688]
lea ecx, [ebp - 0x680]
call fcn.1000a630
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push dword [ebp - 0x42c]
mov dword [ebp - 0x424], 0
call fcn.1001792e
mov eax, dword [ebp - 0x680]
add esp, 4
mov dword [ebp - 0x42c], 0
test eax, eax
je 0x1000b16c
cmp eax, 0xffffffff
je 0x1000b16c
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.100178b1
mov esp, ebp
pop ebp
ret 4