Function at 0x418390
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8ac1
mov eax, dword fs:[0]
push eax
sub esp, 0x88c
mov eax, dword [0x527354]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x898], edi
test edi, edi
je 0x41867c
cmp word [edi], 0
je 0x41867c
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4183e0
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jge 0x41867c
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004717b0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x4fb810
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea esi, [ebx + 0x94]
mov ecx, ebx
push esi
push edi
call fcn.00417e10
test eax, eax
jne 0x41843d
mov dword [esi], 0xc8
mov eax, 0x5c
mov dword [ebp - 0x428], 0
mov word [ebp - 0x42c], ax
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x884]
call fcn.004155b0
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x41862e
cmp dword [ebp - 0x424], 0
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
je 0x4184ec
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x4184ec
cmp word [ebp - 0x858], 0x2e
jne 0x4184ec
mov ax, word [ebp - 0x856]
test ax, ax
je 0x4184c7
cmp ax, 0x2e
jne 0x4184ec
cmp word [ebp - 0x854], 0
jne 0x4184ec
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x41869a
lea ecx, [ebp - 0x884]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
jmp 0x418620
lea eax, [ebp - 0x88c]
push eax
lea ecx, [ebp - 0x884]
call fcn.004157a0
lea eax, [ebp - 0x888]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x884]
call fcn.004156f0
lea ecx, [ebp - 0x888]
mov byte [ebp - 4], 2
call fcn.00406d60
lea eax, [ebp - 0x888]
push eax
lea ecx, [ebp - 0x894]
call fcn.00417700
mov edx, dword [ebp - 0x894]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418553
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x424], 0
je 0x418597
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x418597
mov esi, dword [ebp - 0x88c]
sub esp, 0x28
mov eax, esp
mov dword [eax], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__P8CUninstaller__AEXXZPAV3__std__X__V_std__.0
mov dword [eax + 4], fcn.00417d90
mov dword [eax + 8], ebx
mov dword [eax + 0x24], eax
lea eax, [ebx + 0xc]
push eax
push esi
call fcn.00416250
add esp, 0x30
jmp 0x4185b5
mov esi, dword [ebp - 0x88c]
lea eax, [ebx + 0xc]
push eax
push esi
call fcn.00416130
add esp, 8
test eax, eax
je 0x4185b5
mov ecx, ebx
call fcn.00417d90
mov eax, dword [ebp - 0x428]
test eax, eax
jne 0x4185c3
xor edi, edi
jmp 0x4185e2
cmp dword [ebp - 0x424], 0
jne 0x4185d0
xor edi, edi
jmp 0x4185e2
lea ecx, [ebp - 0x884]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
mov edx, dword [ebp - 0x888]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418604
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x418620
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x418484
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x424], 0
test eax, eax
je 0x418654
cmp eax, 0xffffffff
je 0x418654
push eax
call esi
mov dword [ebp - 0x428], 0
push dword [ebp - 0x898]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x424], 0
test eax, eax
je 0x41867c
cmp eax, 0xffffffff
je 0x41867c
push eax
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042788a
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x424], 0
jmp 0x418654