Function at 0x1000cb00
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101267d8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x10173500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x1017be54], 0
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 8]
mov dword [ebp - 0x1c], ebx
je 0x1000cb55
push ebx
push str.DeleteArrDir__________dwSize_:__d_
push str.ifocms
or ecx, 0xffffffff
mov edx, 0x1017bdc4
call fcn.10005f70
add esp, 0xc
test ebx, ebx
jne 0x1000cb6e
lea eax, [ebx + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea esi, [ebx - 1]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x10], esi
test esi, esi
js 0x1000cd1f
mov dword [ebp - 0x14], 0
jmp 0x1000cba3
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], 0
jmp 0x1000cba3
mov edi, dword [ebp + 8]
test esi, esi
js 0x1000cd66
cmp esi, dword [edi + 8]
jge 0x1000cd66
mov eax, dword [edi + 4]
mov eax, dword [eax + esi*4]
lea ecx, [esi*4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1000ccfc
xor ebx, ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x1000cbeb
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x7034], eax
mov edx, dword [ebp + 0xc]
mov esi, dword [edx + 0x160]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 1
push 0x1017c7d8
lea ecx, [ebp - 0x2c]
mov edi, eax
call fcn.10011a38
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, dword [0x1017c800]
cmp ecx, eax
jle 0x1000cc4e
mov edx, dword [0x1017c7fc]
test eax, eax
js 0x1000cd66
cmp eax, ecx
jge 0x1000cd66
cmp edi, dword [edx + eax*4]
je 0x1000cc3c
inc eax
cmp eax, ecx
jl 0x1000cc20
jmp 0x1000cc4e
push 1
push eax
mov ecx, 0x1017c7f8
call fcn.10015559
mov ebx, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10011a14
cmp dword [0x1017be54], 0
je 0x1000cc82
push ebx
push edi
push str.IsAgentFilter__d__Ret:_d_
push str.ifocms
or ecx, 0xffffffff
mov edx, 0x1017bdc4
call fcn.10005f70
add esp, 0x10
cmp dword [ebp - 0x20], 0x91
je 0x1000ccb8
test ebx, ebx
jne 0x1000ccb8
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
cmp ecx, dword [eax + 8]
jge 0x1000cd66
mov eax, dword [eax + 4]
mov edi, dword [ebp + 0xc]
add ecx, ecx
add ecx, ecx
add eax, ecx
push eax
mov ebx, esi
call fcn.1000c400
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [0x1017be54], 0
je 0x1000ccf9
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 8]
jge 0x1000cd66
mov ecx, dword [ecx + 4]
add eax, eax
add eax, eax
mov edx, dword [ecx + eax]
mov eax, dword [ebp - 0x14]
push edx
push eax
push str.DeleteArrDir_1__bRetry_:__d____s_
push str.ifocms
or ecx, 0xffffffff
mov edx, 0x1017bdc4
call fcn.10005f70
add esp, 0x10
mov esi, dword [ebp - 0x10]
cmp dword [ebp - 0x14], 0
jne 0x1000cba0
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x70dc], 0
jne 0x1000cd1c
dec esi
mov dword [ebp - 0x10], esi
jns 0x1000cb90
mov ebx, dword [ebp - 0x1c]
cmp dword [0x1017be54], 0
je 0x1000cd51
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x70dc]
mov ecx, dword [ebp - 0x18]
push eax
push ebx
push ecx
push str.DeleteArrDir_____bRet_:__d___dwSize_:__d___IsUserDoEnd_:__d_
push str.ifocms
or ecx, 0xffffffff
mov edx, 0x1017bdc4
call fcn.10005f70
add esp, 0x14
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1001043f
int3