Function at 0x42fe20
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b6922
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x6319d0]
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 eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x428], eax
call fcn.0046d4f0
test eax, eax
je 0x42feeb
push edi
push str.CFileUtils::DeleteUpperFolders_:_pszFolderName___s_n
push 0x65fdb0
call fcn.00599ee3
mov ecx, dword [str.ENTRY:]
mov edx, dword [0x5ccf7c]
mov eax, 0x65fdb0
mov dword [0x65fcb0], ecx
add esp, 0xc
mov dword [0x65fcb4], edx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x42fea1
mov edi, 0x65fcb0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x42feb2
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d500
push 0x65fcb0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
mov edi, dword [ebp - 0x41c]
push 0
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x414]
call fcn.0047aa50
call fcn.004a8620
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42ff17
push 0x80004005
call fcn.00401b60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x41c], esi
mov dword [ebp - 4], 0
call fcn.004a8620
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42ff4a
push 0x80004005
call fcn.00401b60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x418], ebx
mov ecx, dword [ebp - 0x428]
add ecx, edi
push 0x5cd28c
push ecx
mov byte [ebp - 4], 1
call fcn.0059ade0
add esp, 8
test eax, eax
je 0x430322
mov esi, eax
sub esi, edi
push esi
lea edx, [ebp - 0x114]
push edi
push edx
call fcn.0059ae70
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov byte [ebp + esi - 0x114], 0
inc esi
push esi
push eax
push edi
mov edi, dword [ebp - 0x420]
mov ecx, edi
call fcn.0042fe20
call fcn.0046d4f0
test eax, eax
je 0x42ffe2
lea ecx, [ebp - 0x114]
push ecx
push str.szFolderToDelete___s_n
push 0x65fbb0
call fcn.00599ee3
add esp, 0xc
push 0x65fbb0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
lea edx, [ebp - 0x114]
push edx
mov ecx, edi
call fcn.0042fba0
test eax, eax
je 0x430261
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x430024
lea ecx, [ebp - 0x114]
push ecx
mov ecx, edi
call fcn.0042db40
jmp 0x43027b
lea edx, [ebp - 0x420]
push edx
lea eax, [ebp - 0x218]
push eax
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
lea ecx, [ebp - 0x414]
mov dword [ebp - 0x420], 0x104
call fcn.0047b3d0
test eax, eax
je 0x43027b
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x41c]
call fcn.00402ba0
lea ecx, [ebp - 0x41c]
call fcn.004027d0
push str.File
lea ecx, [ebp - 0x424]
call fcn.00403380
mov esi, eax
lea edx, [ebp - 0x114]
mov bl, 2
push edx
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], bl
call fcn.00403380
push esi
push eax
lea eax, [ebp - 0x420]
push eax
mov byte [ebp - 4], 3
call fcn.00402910
add esp, 0xc
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 4
call fcn.00402af0
mov eax, dword [ebp - 0x420]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4300ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x428]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43010f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430135
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x418]
call fcn.004027d0
cmp dword [ebp - 0x41c], 0
mov ebx, dword [ebp - 0x418]
je 0x43027b
cmp dword [ebx - 0xc], 0
jl 0x43027b
mov ecx, dword [ebp - 0x41c]
push ecx
push ebx
call fcn.0059a963
add esp, 8
test eax, eax
je 0x43027b
sub eax, ebx
cmp eax, 0xffffffff
je 0x43027b
call fcn.0046d4f0
test eax, eax
je 0x4301a0
push str.Do_MoveFolder..._n
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
lea ebx, [ebx]
push 0x5c
push ebx
call fcn.0059aa24
add esp, 8
test eax, eax
je 0x43027b
sub eax, ebx
cmp eax, 0xffffffff
je 0x43027b
push eax
lea edx, [ebp - 0x424]
push edx
lea ecx, [ebp - 0x418]
call fcn.004024f0
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 5
call fcn.00402af0
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430207
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x41c]
mov ebx, dword [ebp - 0x418]
push ecx
push ebx
call fcn.0059a822
add esp, 8
test eax, eax
je 0x43027b
call fcn.0046d4f0
test eax, eax
je 0x43024e
push ebx
push str.Do_MoveFolder___s_n
push 0x65fab0
call fcn.00599ee3
add esp, 0xc
push 0x65fab0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
lea edx, [ebp - 0x418]
push edx
mov ecx, edi
call fcn.0042e120
jmp 0x4301a0
call fcn.0046d4f0
test eax, eax
je 0x43027b
push str.IsFolderEmpty__FALSE_n
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d4f0
test eax, eax
je 0x4302f7
push 0
push str.CFileUtils::DeleteUpperFolders_n
push 0x65f9b0
call fcn.00599ee3
mov eax, dword [str.EXIT:]
mov ecx, dword [0x5ccefc]
mov dword [0x65f8b0], eax
mov eax, 0x65f9b0
add esp, 0xc
mov dword [0x65f8b4], ecx
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4302b5
mov edi, 0x65f8b0
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4302c4
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x65f8b0
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d510
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x430317
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov eax, dword [ebp - 0x41c]
add eax, 0xfffffff0
jmp 0x430345
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430342
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430361
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.00599ed4
mov esp, ebp
pop ebp
ret 0xc