Function at 0x1006d24d
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
mov dword [ebp - 0x28], ecx
push ecx
lea ecx, [ebp - 0x38]
call fcn.10048516
lea eax, [ebp + 8]
push eax
call fcn.1003f9c4
pop ecx
push 5
lea ecx, [ebp - 0x18]
call fcn.10046141
push 0x14
lea ecx, [ebp - 0x14]
call fcn.10046141
push 2
pop ebx
push ebx
lea eax, [ebp + 8]
push eax
xor edi, edi
push 0x100d0f54
mov dword [ebp - 4], edi
call fcn.10048195
add esp, 0xc
push 1
movzx eax, al
push 0x2c
pop esi
mov dword [ebp - 8], eax
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x38]
call fcn.1005b693
push edi
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.1004907a
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], si
mov dword [ebp - 0xc], edi
jne 0x1006d2eb
add dword [ebp + 8], ebx
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x38]
call fcn.1005b693
push edi
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.1004907a
add esp, 0xc
mov eax, dword [ebp + 8]
cmp word [eax], si
jne 0x1006d330
add dword [ebp + 8], ebx
mov ecx, dword [ebp + 8]
xor eax, eax
cmp word [ecx], 0x3f
sete al
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x1006d313
add dword [ebp + 8], ebx
mov dword [ebp - 4], 0x10
push esi
lea eax, [ebp - 4]
push eax
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x38]
call fcn.1005b693
push eax
call fcn.1004930e
add esp, 0xc
mov eax, dword [ebp - 0x18]
cmp word [eax], di
jne 0x1006d342
mov esi, 0x80070057
jmp 0x1006d62d
cmp dword [ebp - 4], edi
mov eax, dword [ebp - 0x14]
jne 0x1006d354
cmp dword [ebp - 8], edi
jne 0x1006d354
cmp word [eax], di
je 0x1006d338
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call ebx
mov esi, eax
lea eax, [esi + 0x214]
push eax
lea ecx, [ebp - 0x14]
call fcn.10046168
mov eax, dword [ebp - 0x14]
push eax
lea esi, [eax + esi*2 + 8]
mov dword [ebp - 0x2c], edi
call fcn.100132bf
push dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
call fcn.100132bf
mov edi, eax
pop ecx
xor eax, eax
pop ecx
inc eax
xor ecx, ecx
cmp word [edi], cx
mov dword [ebp - 0x20], edi
mov dword [ebp + 8], eax
je 0x1006d338
cmp dword [ebp - 0xc], ecx
jne 0x1006d3bc
cmp dword [ebp - 8], ecx
jne 0x1006d3bc
cmp dword [ebp - 4], ecx
jne 0x1006d3bc
push ecx
push dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
jmp 0x1006d5c0
cmp dword [ebp - 4], 2
je 0x1006d5d8
cmp dword [ebp - 8], ecx
jne 0x1006d5d8
xor esi, esi
cmp dword [ebp - 0xc], ecx
je 0x1006d57c
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x5c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x5c]
push eax
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test byte [ebp - 0x5b], 4
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], 0x100c6a64
je 0x1006d564
push esi
push 0x80
push 3
push esi
push 7
push 0xc0000000
push dword [ebp - 0x20]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], esi
call fcn.10005b9d
cmp dword [ebp - 0xc], esi
je 0x1006d55c
push 0x100e3008
push 0x100e3480
push esi
push str.GetFinalPathNameByHandleW
call fcn.10040e9d
add esp, 0x10
cmp dword [0x100e3480], esi
je 0x1006d55c
mov edi, 0xa000
push edi
lea ecx, [ebp - 0x1c]
call fcn.10046168
mov esi, dword [ebp - 0x1c]
and word [esi], 0
push 8
push edi
push esi
push dword [ebp - 0xc]
mov dword [ebp - 0x24], esi
call dword [0x100e3480]
test eax, eax
mov dword [ebp + 8], eax
jne 0x1006d548
push 0xa
push edi
push esi
push dword [ebp - 0xc]
call dword [0x100e3480]
push esi
mov dword [ebp + 8], eax
call ebx
mov edi, eax
cmp edi, 8
jl 0x1006d548
push 8
push 0x100c7244
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNW]
test eax, eax
jne 0x1006d548
lea eax, [esi + 0x10]
mov dword [ebp - 4], eax
push 0x5c
lea eax, [ebp - 4]
call fcn.100a1095
mov eax, dword [ebp - 4]
pop ecx
xor ecx, ecx
mov cx, word [eax]
test cx, cx
mov dword [ebp - 0x20], ecx
je 0x1006d4da
and word [eax], 0
push 0x64
lea ecx, [ebp - 8]
call fcn.10046141
mov eax, dword [ebp - 8]
and word [eax], 0
push esi
push 0x48fffb
lea eax, [ebp - 8]
push 0xfffffffffffffffb
push eax
call fcn.10004e95
mov eax, dword [ebp - 0x20]
add esp, 0x10
test ax, ax
je 0x1006d50d
mov ecx, dword [ebp - 4]
mov word [ecx], ax
push dword [ebp - 8]
call ebx
test eax, eax
je 0x1006d540
lea ebx, [eax + eax]
mov eax, dword [ebp - 4]
sub eax, esi
sar eax, 1
sub edi, eax
lea eax, [edi + edi + 2]
push eax
push dword [ebp - 4]
lea eax, [ebx + esi]
push eax
call fcn.100144b5
push ebx
push dword [ebp - 8]
push esi
call fcn.100144ff
add esp, 0x18
lea ecx, [ebp - 8]
call fcn.1003f96c
cmp dword [ebp + 8], 0
jg 0x1006d55c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1006d559
inc eax
mov dword [ebp + 8], eax
lea ecx, [ebp - 0xc]
call fcn.10002d56
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
push dword [ebp - 0x10]
call fcn.100457c2
lea ecx, [ebp - 0x1c]
call fcn.1003f96c
jmp 0x1006d5d3
test byte [ebp - 4], 0x10
je 0x1006d584
mov esi, eax
push edi
call ebx
lea eax, [edi + eax*2 - 2]
cmp word [eax], 0x5c
jne 0x1006d598
xor esi, esi
inc esi
and word [eax], 0
test esi, esi
jne 0x1006d5b3
cmp dword [ebp - 4], 3
jne 0x1006d5b3
push dword [ebp - 0x10]
call fcn.100b36d9
mov esi, eax
neg esi
sbb esi, esi
pop ecx
neg esi
push esi
push dword [ebp - 0x10]
push edi
call fcn.10043e15
add esp, 0xc
test eax, eax
je 0x1006d5ca
and dword [ebp + 8], 0
jmp 0x1006d5d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
mov esi, dword [ebp + 8]
jmp 0x1006d62d
mov eax, dword [ebp - 0x10]
cmp word [eax], cx
jne 0x1006d5e9
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1006d61d
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [esi + 8]
push ecx
push 0x208
push eax
call fcn.100469ca
push esi
push edi
mov word [esi], 0x5c
mov word [esi + 2], 0x3f
mov word [esi + 4], 0x3f
mov word [esi + 6], 0x5c
call fcn.10043d11
add esp, 0x18
test eax, eax
je 0x1006d625
xor eax, eax
jmp 0x1006d62b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x14]
call fcn.1003f96c
lea ecx, [ebp - 0x18]
call fcn.1003f96c
lea ecx, [ebp - 0x38]
call fcn.1003f96c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8