Function at 0x424de0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a8c8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x570be0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
mov byte [ebp - 0xd], cl
mov dword [ebp - 4], 0
mov edi, dword [ebp + 8]
mov esi, 1
sub esi, dword [edi - 4]
mov eax, dword [edi - 8]
or eax, esi
jge 0x424e34
push 0
lea ecx, [ebp + 8]
call fcn.004206e0
mov edi, dword [ebp + 8]
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x424e37
sub edi, ecx
sar edi, 1
xor ecx, ecx
lea esi, [edi + 2]
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e7a06
mov ecx, dword [ebp + 8]
mov ebx, eax
mov edx, dword [ecx - 8]
mov eax, 1
sub eax, dword [ecx - 4]
add esp, 4
or edx, eax
jge 0x424e85
push 0
lea ecx, [ebp + 8]
call fcn.004206e0
mov ecx, dword [ebp + 8]
push ecx
push esi
push ebx
call fcn.004e9b8b
xor eax, eax
mov dword [ebx + edi*2], eax
add esp, 0xc
or edi, 0xffffffff
cmp byte [0x577beb], al
je 0x424fd0
mov eax, dword [0x571ba4]
mov ecx, 0x571ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push str.pszFrom___s_
push eax
call fcn.00421320
add esp, 0xc
lea ecx, [ebp - 0x24]
push str.DeleteFileSystemElement
call fcn.004204a0
mov byte [ebp - 4], 2
mov eax, dword [0x571ba4]
mov ecx, 0x571ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004215a0
add esp, 4
mov esi, eax
push 0x54a680
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.004204a0
push 0
push esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 5
call fcn.004216b0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x424f50
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x424f70
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x424f90
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x424fb0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x424fd0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
mov eax, 0x14
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 3
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], 0
mov word [ebp - 0x4c], ax
jne 0x425000
mov eax, 0x54
mov word [ebp - 0x4c], ax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x4a], 0
mov dword [ebp - 0x42], 0
mov dword [ebp - 0x46], 0
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push ebx
mov dword [ebp - 0x18], eax
call fcn.004e7a01
add esp, 4
cmp dword [ebp - 0x18], 0
sete cl
mov byte [ebp - 0xd], cl
test cl, cl
jne 0x425601
push str._error
lea ecx, [ebp - 0x2c]
call fcn.004204a0
mov byte [ebp - 4], 6
mov eax, dword [0x571ba4]
mov ecx, 0x571ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, str.SHFileOperation_path
mov byte [ebp - 4], 7
test eax, 0xffff0000
jne 0x42508b
movzx esi, ax
mov ecx, esi
call fcn.0041fcd0
test eax, eax
je 0x425098
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.00420bb0
jmp 0x425098
push str.SHFileOperation_path
lea ecx, [ebp - 0x14]
call fcn.00420650
push str.DeleteFileSystemElement
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.004204a0
mov byte [ebp - 4], 9
mov eax, dword [0x571ba4]
mov ecx, 0x571ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
call fcn.004215a0
lea ecx, [ebp + 8]
push ecx
mov edx, eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xb
call fcn.004215a0
lea ecx, [ebp - 0x2c]
push ecx
mov edx, eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xc
call fcn.004215a0
mov byte [ebp - 4], 0xd
push dword [ebp - 0x18]
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00421510
add esp, 0x10
mov esi, eax
push 0x54a680
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xe
call fcn.004204a0
push 2
push esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 0xf
call fcn.004216b0
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x425152
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x425172
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x425192
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4251b2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4251d2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4251f2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x425212
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x425232
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x425252
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.DeleteFileSystemElement_SHFileOperation_
lea ecx, [ebp - 0x2c]
call fcn.004204a0
mov byte [ebp - 4], 0x10
mov eax, dword [0x571ba4]
mov ecx, 0x571ba4
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x3c], esi
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x11
call fcn.004215a0
mov byte [ebp - 4], 0x12
push dword [ebp - 0x18]
mov edx, eax
lea ecx, [ebp - 0x38]
call fcn.00421510
add esp, 8
mov ecx, dword [ebp - 0x1c]
push eax
mov byte [ebp - 4], 0x13
call fcn.00421fc0
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4252ca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4252ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0x10
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x425307
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x425327
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4255f6
push str.RemoveDirectory_error
lea ecx, [ebp - 0x28]
call fcn.00420550
push str.DeleteFileSystemElement
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x14
call fcn.004204a0
mov byte [ebp - 4], 0x15
mov eax, dword [0x571ba4]
mov ecx, 0x571ba4
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x3c], ebx
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x16
call fcn.004215a0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0x17
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, esi
lea ecx, [ebp - 0x38]
call fcn.00421510
push 2
mov edx, eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x18
call fcn.004220c0
mov byte [ebp - 4], 0x17
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
add esp, 8
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4253cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x16
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4253eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebx - 0x10]
mov byte [ebp - 4], 0x15
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x425408
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x14
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x425428
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x425448
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.RemoveDirectory_error_
lea ecx, [ebp - 0x2c]
call fcn.004204a0
mov byte [ebp - 4], 0x19
mov eax, dword [0x571ba4]
mov ecx, 0x571ba4
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x3c], ebx
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x1a
call fcn.004215a0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0x1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, esi
lea ecx, [ebp - 0x24]
call fcn.00421510
add esp, 4
mov byte [ebp - 4], 0x1d
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4254bc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebx - 0x10]
mov byte [ebp - 4], 0x1e
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4254d9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x1f
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4254f9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5496f4
lea ecx, [ebp - 0x28]
call fcn.004204a0
mov byte [ebp - 4], 0x20
mov eax, dword [0x571ba4]
mov ecx, 0x571ba4
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x3c], esi
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x21
call fcn.004215a0
lea ecx, [ebp - 0x24]
push ecx
mov edx, eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x22
call fcn.004215a0
add esp, 8
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 0x23
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00428650
mov byte [ebp - 4], 0x22
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x425577
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x21
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x425597
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0x20
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4255b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x1f
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4255d4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4255fe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4255fe
mov ecx, dword [ebp - 0x1c]
call fcn.00420390
mov cl, byte [ebp - 0xd]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x425637
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret