Function at 0x46d67f
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.00448948
lea eax, [ebp + 8]
push eax
call fcn.0043fe57
pop ecx
push 5
lea ecx, [ebp - 0x18]
call fcn.004465ac
push 0x14
lea ecx, [ebp - 0x14]
call fcn.004465ac
push 2
pop ebx
push ebx
lea eax, [ebp + 8]
push eax
xor edi, edi
push 0x4d0efc
mov dword [ebp - 4], edi
call fcn.004485c7
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.0045bac5
push edi
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.004494ac
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], si
mov dword [ebp - 0xc], edi
jne 0x46d71d
add dword [ebp + 8], ebx
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x38]
call fcn.0045bac5
push edi
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.004494ac
add esp, 0xc
mov eax, dword [ebp + 8]
cmp word [eax], si
jne 0x46d762
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 0x46d745
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.0045bac5
push eax
call fcn.00449740
add esp, 0xc
mov eax, dword [ebp - 0x18]
cmp word [eax], di
jne 0x46d774
mov esi, 0x80070057
jmp 0x46da5f
cmp dword [ebp - 4], edi
mov eax, dword [ebp - 0x14]
jne 0x46d786
cmp dword [ebp - 8], edi
jne 0x46d786
cmp word [eax], di
je 0x46d76a
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.004465d3
mov eax, dword [ebp - 0x14]
push eax
lea esi, [eax + esi*2 + 8]
mov dword [ebp - 0x2c], edi
call fcn.004135f9
push dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
call fcn.004135f9
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 0x46d76a
cmp dword [ebp - 0xc], ecx
jne 0x46d7ee
cmp dword [ebp - 8], ecx
jne 0x46d7ee
cmp dword [ebp - 4], ecx
jne 0x46d7ee
push ecx
push dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
jmp 0x46d9f2
cmp dword [ebp - 4], 2
je 0x46da0a
cmp dword [ebp - 8], ecx
jne 0x46da0a
xor esi, esi
cmp dword [ebp - 0xc], ecx
je 0x46d9ae
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], 0x4c6a64
je 0x46d996
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.00405c6d
cmp dword [ebp - 0xc], esi
je 0x46d98e
push 0x4e3010
push 0x4e3488
push esi
push str.GetFinalPathNameByHandleW
call fcn.0044131f
add esp, 0x10
cmp dword [0x4e3488], esi
je 0x46d98e
mov edi, 0xa000
push edi
lea ecx, [ebp - 0x1c]
call fcn.004465d3
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 [0x4e3488]
test eax, eax
mov dword [ebp + 8], eax
jne 0x46d97a
push 0xa
push edi
push esi
push dword [ebp - 0xc]
call dword [0x4e3488]
push esi
mov dword [ebp + 8], eax
call ebx
mov edi, eax
cmp edi, 8
jl 0x46d97a
push 8
push 0x4c7244
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNW]
test eax, eax
jne 0x46d97a
lea eax, [esi + 0x10]
mov dword [ebp - 4], eax
push 0x5c
lea eax, [ebp - 4]
call fcn.00414c4e
mov eax, dword [ebp - 4]
pop ecx
xor ecx, ecx
mov cx, word [eax]
test cx, cx
mov dword [ebp - 0x20], ecx
je 0x46d90c
and word [eax], 0
push 0x64
lea ecx, [ebp - 8]
call fcn.004465ac
mov eax, dword [ebp - 8]
and word [eax], 0
push esi
push 0x48fffb
lea eax, [ebp - 8]
push 0xfffffffffffffffb
push eax
call fcn.00404f66
mov eax, dword [ebp - 0x20]
add esp, 0x10
test ax, ax
je 0x46d93f
mov ecx, dword [ebp - 4]
mov word [ecx], ax
push dword [ebp - 8]
call ebx
test eax, eax
je 0x46d972
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.004147ef
push ebx
push dword [ebp - 8]
push esi
call fcn.00414839
add esp, 0x18
lea ecx, [ebp - 8]
call fcn.0043fe25
cmp dword [ebp + 8], 0
jg 0x46d98e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x46d98b
inc eax
mov dword [ebp + 8], eax
lea ecx, [ebp - 0xc]
call fcn.00402d2b
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
push dword [ebp - 0x10]
call fcn.00445c44
lea ecx, [ebp - 0x1c]
call fcn.0043fe25
jmp 0x46da05
test byte [ebp - 4], 0x10
je 0x46d9b6
mov esi, eax
push edi
call ebx
lea eax, [edi + eax*2 - 2]
cmp word [eax], 0x5c
jne 0x46d9ca
xor esi, esi
inc esi
and word [eax], 0
test esi, esi
jne 0x46d9e5
cmp dword [ebp - 4], 3
jne 0x46d9e5
push dword [ebp - 0x10]
call fcn.004b3b0b
mov esi, eax
neg esi
sbb esi, esi
pop ecx
neg esi
push esi
push dword [ebp - 0x10]
push edi
call fcn.00444297
add esp, 0xc
test eax, eax
je 0x46d9fc
and dword [ebp + 8], 0
jmp 0x46da05
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
mov esi, dword [ebp + 8]
jmp 0x46da5f
mov eax, dword [ebp - 0x10]
cmp word [eax], cx
jne 0x46da1b
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x46da4f
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [esi + 8]
push ecx
push 0x208
push eax
call fcn.00446dfc
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.00444193
add esp, 0x18
test eax, eax
je 0x46da57
xor eax, eax
jmp 0x46da5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x14]
call fcn.0043fe25
lea ecx, [ebp - 0x18]
call fcn.0043fe25
lea ecx, [ebp - 0x38]
call fcn.0043fe25
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8