Function at 0x10011c30
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005b59d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10088020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx]
or edi, 0xffffffff
cmp dword [eax - 0xc], 0x104
jl 0x10011f03
push 4
push 0
lea eax, [ebp - 0x18]
push eax
call fcn.10010630
mov dword [ebp - 4], 0
mov ecx, 0x1006fd64
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10011cad
test dx, dx
je 0x10011ca9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10011cad
add eax, 4
add ecx, 4
test dx, dx
jne 0x10011c87
xor esi, esi
jmp 0x10011cb2
sbb esi, esi
or esi, 1
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10011cd3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x10011f03
call fcn.10009f40
mov ecx, eax
test ecx, ecx
je 0x10011f19
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 2
mov eax, 0x1006fd64
test eax, 0xffff0000
jne 0x10011d22
movzx esi, ax
mov ecx, esi
call fcn.10010990
test eax, eax
je 0x10011d31
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.10010af0
jmp 0x10011d31
push 4
push 0x1006fd64
lea ecx, [ebp - 0x14]
call fcn.10007ca0
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x14]
mov eax, dword [ebx]
push dword [eax - 0xc]
push eax
call fcn.10010b90
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete byte [ebp - 0xd]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10011d75
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp - 0xd]
test al, al
jne 0x10011ef1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
call fcn.1001af00
cmp byte [eax + 0x1c], 0
je 0x10011eee
call fcn.1001af00
mov dword [ebp - 0x1c], eax
call fcn.10009f40
test eax, eax
je 0x10011f19
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x14]
push 0x1c
push str.Failed_to_delete_directory:
call fcn.10010b90
mov edx, dword [ebx]
test edx, edx
je 0x10011df9
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10011de0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.10010b90
push 0xc
push str._LastError
lea ecx, [ebp - 0x14]
call fcn.10010b90
mov ebx, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push ebx
call fcn.1001b230
mov esi, eax
push 1
push 0x10070770
mov ecx, esi
call fcn.10010b90
push ecx
mov edx, ebx
lea ecx, [ebp - 0x20]
call fcn.100103b0
add esp, 4
mov byte [ebp - 4], 8
mov edx, dword [eax]
test edx, edx
je 0x10011e59
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10011e41
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.10010b90
call fcn.10009f40
test eax, eax
je 0x10011f19
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x18]
push 0
push 0x100707ac
call fcn.10010b90
push ecx
mov ecx, dword [ebp - 0x1c]
push esi
sub esp, 8
call fcn.1001b0f0
mov byte [ebp - 4], 8
mov eax, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10011eb1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov eax, edi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10011ecf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x10011eee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete al
mov byte [ebp - 0xd], al
jmp 0x10011d78
push 0x80004005
call fcn.10005390
int3