Function at 0x1006f1d7
Capabilities:
Delete directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018ce0b
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x101d5abc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 0x268]
mov dword [ebp - 4], edi
call fcn.100528a8
xor ebx, ebx
lea ecx, [ebp - 0x238]
push edi
inc ebx
mov byte [ebp - 4], bl
push 0x104
mov dword [ebp - 0x258], edi
call fcn.100643db
mov byte [ebp - 4], 2
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x1006f252
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x258]
push ecx
push 0x208
push eax
push edi
push 0x1001f874
push esi
call dword [sym.imp.WINSPOOL.DRV_GetPrinterDataW]
mov esi, eax
test esi, esi
jle 0x1006f27d
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x1006f49c
cmp dword [ebp - 0x224], 8
mov ecx, dword [ebp - 0x238]
jae 0x1006f298
lea ecx, [ebp - 0x238]
mov dl, bl
call fcn.1006d355
mov esi, eax
test esi, esi
jns 0x1006f2e4
mov ecx, dword [0x101c33f0]
cmp ecx, 0x101c33f0
je 0x1006f2cc
test byte [ecx + 0x44], bl
je 0x1006f2cc
push esi
push dword [ecx + 0x3c]
mov edx, 0x1001f8e8
push dword [ecx + 0x38]
push 0x1c
pop ecx
call fcn.1004a069
push esi
lea ecx, [ebp - 0x260]
call fcn.10044b9d
push 0x101c213c
mov eax, ecx
jmp 0x1006f4d4
mov ecx, 0x101d6930
call fcn.10050924
test al, al
mov eax, dword [ebp - 0x238]
je 0x1006f32e
cmp dword [ebp - 0x224], 8
jae 0x1006f307
lea eax, [ebp - 0x238]
mov esi, dword [ebp + 4]
lea ecx, [ebp - 0x254]
push ecx
lea ecx, [ebp - 0x220]
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x1006f4da
jmp 0x1006f3a7
cmp dword [ebp - 0x224], 8
jae 0x1006f33d
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x254]
push ecx
lea ecx, [ebp - 0x220]
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov esi, eax
test esi, esi
jle 0x1006f368
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x1006f3a7
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x1006f38f
test byte [eax + 0x44], bl
je 0x1006f38f
push esi
push dword [eax + 0x3c]
mov edx, 0x1001f8e8
push dword [eax + 0x38]
push 0x1d
pop ecx
call fcn.1004a069
push esi
lea ecx, [ebp - 0x264]
call fcn.10044b9d
push 0x101c213c
mov eax, ecx
jmp 0x1006f4d4
push ecx
push dword [ebp - 0x254]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x250]
call fcn.1006f5b4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x23c], 8
mov eax, dword [ebp - 0x250]
jae 0x1006f3d9
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp + 4]
test eax, eax
jne 0x1006f3f6
push 0x1001f788
mov edx, 0xdf
jmp 0x1006f4e6
push edi
push ebx
lea ecx, [ebp - 0x250]
call fcn.10052803
push edi
push ebx
lea ecx, [ebp - 0x238]
call fcn.10052803
cmp dword [ebp - 0x268], 0
je 0x1006f480
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x1006f480
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101885f0
leave
ret
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x1006f4c1
test byte [eax + 0x44], bl
je 0x1006f4c1
push esi
push dword [eax + 0x3c]
mov edx, 0x1001f8e8
push dword [eax + 0x38]
push 0x1b
pop ecx
call fcn.1004a069
push esi
lea ecx, [ebp - 0x25c]
call fcn.10044b9d
push 0x101c213c
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
push 0x1001f788
mov edx, 0xd6
mov ecx, esi
call fcn.1006e621
int3