Function at 0x10c906c
Capabilities:
Delete directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov eax, dword [0x111024c]
mov ebx, 0x100f634
cmp eax, 0x111024c
je 0x10c90a0
test byte [eax + 0x1c], 1
je 0x10c90a0
cmp byte [eax + 0x19], 5
jb 0x10c90a0
push ebx
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
jne 0x10c90bd
push 0x10075d0
push 0x183
push 0x100f644
call fcn.0107b644
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov byte [ebp - 1], 0
cmp edi, esi
je 0x10c90d3
mov eax, dword [edi]
mov dword [ebp - 0xc], eax
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x10c90dd
mov byte [esi], 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.010ca938
mov dword [ebp + 8], eax
test eax, eax
jl 0x10c92a8
test edi, edi
je 0x10c90fd
test byte [edi], 7
je 0x10c9155
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call fcn.010c8ef7
mov dword [ebp + 8], eax
test eax, eax
jge 0x10c9151
test esi, esi
je 0x10c9117
mov byte [esi], 1
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10c923a
test byte [eax + 0x1c], 1
je 0x10c923a
cmp byte [eax + 0x19], 2
jb 0x10c923a
push dword [ebp + 8]
push ebx
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
jmp 0x10c9235
mov byte [ebp - 1], 1
test byte [ebp - 0xc], 0x10
je 0x10c91cd
test dword [ebp - 0xc], 0x400
jne 0x10c91cd
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10c9235
test esi, esi
je 0x10c917c
mov byte [esi], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10c9190
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 8], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10c923a
test byte [eax + 0x1c], 1
je 0x10c923a
cmp byte [eax + 0x19], 2
jb 0x10c923a
push dword [ebp + 8]
push dword [ebp - 8]
push ebx
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
jmp 0x10c9235
push 0
push 0x6200000
push 3
push 0
push 7
push 0x10000
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x10c922e
test esi, esi
je 0x10c91f4
mov byte [esi], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10c9208
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 8], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10c923a
test byte [eax + 0x1c], 1
je 0x10c923a
cmp byte [eax + 0x19], 2
jb 0x10c923a
push dword [ebp + 8]
push ebx
push 0x12
jmp 0x10c9141
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x111024c]
cmp dword [ebp + 8], 0
jge 0x10c92a8
cmp byte [ebp - 1], 0
je 0x10c92a8
mov esi, 0x111024c
cmp eax, esi
je 0x10c926f
test byte [eax + 0x1c], 1
je 0x10c926f
cmp byte [eax + 0x19], 4
jb 0x10c926f
push dword [ebp - 0xc]
push dword [ebp - 8]
push ebx
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
push 0
push dword [ebp - 0xc]
push dword [ebp - 8]
call fcn.010c6036
test eax, eax
jge 0x10c92a8
mov ecx, dword [0x111024c]
cmp ecx, esi
je 0x10c92a8
test byte [ecx + 0x1c], 1
je 0x10c92a8
cmp byte [ecx + 0x19], 2
jb 0x10c92a8
push eax
push dword [ebp - 8]
push ebx
push 0x14
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01048c37
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, dword [0x111024c]
pop edi
pop esi
cmp eax, 0x111024c
je 0x10c92da
test byte [eax + 0x1c], 1
je 0x10c92da
cmp byte [eax + 0x19], 5
jb 0x10c92da
push ebx
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [ebp + 8]
pop ebx
leave
ret 0xc