Function at 0x424d70
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520148
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x595cb8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], edx
mov byte [ebp - 0xd], cl
mov dword [ebp - 4], 0
mov esi, 1
mov edi, dword [ebp + 8]
sub esi, dword [edi - 4]
mov eax, dword [edi - 8]
or eax, esi
jge 0x424dc4
push 0
lea ecx, [ebp + 8]
call fcn.0041fb70
mov edi, dword [ebp + 8]
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x424dc7
sub edi, ecx
mov edx, 2
sar edi, 1
xor ecx, ecx
lea esi, [edi + 2]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004f45af
mov ecx, dword [ebp + 8]
mov ebx, eax
mov eax, 1
add esp, 4
sub eax, dword [ecx - 4]
mov edx, dword [ecx - 8]
or edx, eax
jge 0x424e15
push 0
lea ecx, [ebp + 8]
call fcn.0041fb70
mov ecx, dword [ebp + 8]
push ecx
push esi
push ebx
call fcn.00500b33
xor eax, eax
add esp, 0xc
mov dword [ebx + edi*2], eax
or edi, 0xffffffff
cmp byte [0x59c781], al
je 0x424f70
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x424e49
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
push dword [ebp + 8]
push str.pszFrom___s_
push eax
call fcn.00420c20
add esp, 0xc
lea ecx, [ebp - 0x24]
push str.DeleteFileSystemElement
call fcn.0041f910
mov byte [ebp - 4], 2
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x424e92
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x28]
call fcn.00420f70
add esp, 4
mov esi, eax
push 0x56d330
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0041f910
push 0
push esi
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004210a0
mov byte [ebp - 4], 4
mov eax, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x424ef8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, edi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x424f16
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x424f34
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x424f52
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x424f70
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 0x424fa0
mov eax, 0x54
mov word [ebp - 0x4c], ax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x4a], 0
push eax
mov dword [ebp - 0x42], 0
mov dword [ebp - 0x46], 0
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esi, eax
push ebx
mov dword [ebp - 0x3c], esi
call fcn.004f4577
add esp, 4
test esi, esi
sete al
mov byte [ebp - 0xd], al
test al, al
jne 0x4255a1
push str._error
lea ecx, [ebp - 0x28]
call fcn.0041f910
push str.SHFileOperation_path
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.0041f870
push str.DeleteFileSystemElement
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.0041f910
mov byte [ebp - 4], 8
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x425025
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 9
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x38]
call fcn.00420f70
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xa
push ecx
mov edx, eax
lea ecx, [ebp - 0x34]
call fcn.00420f70
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xb
push ecx
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00420f70
push esi
mov edx, eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x2c]
call fcn.00420ee0
add esp, 0x10
mov esi, eax
push 0x56d330
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xd
call fcn.0041f910
push 2
push esi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004210a0
mov byte [ebp - 4], 0xd
mov eax, edi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4250be
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
mov eax, edi
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4250dc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
mov eax, edi
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4250fa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov eax, edi
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x425118
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov eax, edi
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x425136
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov eax, edi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x425154
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov eax, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x425172
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x425190
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4251ae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.DeleteFileSystemElement_SHFileOperation_
lea ecx, [ebp - 0x28]
call fcn.0041f910
mov byte [ebp - 4], 0xf
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x4251d4
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x10
push eax
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x30]
call fcn.00420f70
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x34]
push dword [ebp - 0x3c]
mov edx, eax
call fcn.00420ee0
add esp, 8
mov ecx, dword [ebp - 0x18]
push eax
mov byte [ebp - 4], 0x12
call fcn.00421a50
mov byte [ebp - 4], 0x11
mov eax, edi
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x425231
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x10
mov eax, edi
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42524f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xf
lea edx, [esi - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42526a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x425288
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 0x425599
push str.RemoveDirectory_error
lea ecx, [ebp - 0x20]
call fcn.0041f870
push str.DeleteFileSystemElement
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x13
call fcn.0041f910
mov byte [ebp - 4], 0x14
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x4252ce
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x3c], ebx
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0x15
push eax
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x34]
call fcn.00420f70
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0x16
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, esi
lea ecx, [ebp - 0x38]
call fcn.00420ee0
add esp, 4
mov esi, eax
push 0x56d330
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x17
call fcn.0041f910
push 2
push esi
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0x18
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004210a0
mov byte [ebp - 4], 0x17
mov eax, edi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42534e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x16
mov eax, edi
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42536c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x15
mov eax, edi
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42538a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x14
lea edx, [ebx - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4253a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x13
mov eax, edi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4253c3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4253e1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.RemoveDirectory_error_
lea ecx, [ebp - 0x28]
call fcn.0041f910
mov byte [ebp - 4], 0x19
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x425407
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x3c], ebx
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x1a
push eax
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x38]
call fcn.00420f70
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 - 0x1c]
call fcn.00420ee0
add esp, 4
mov byte [ebp - 4], 0x1d
mov eax, edi
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x425460
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x1e
lea edx, [ebx - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42547b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x1f
mov eax, edi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x425499
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x56d0dc
lea ecx, [ebp - 0x24]
call fcn.0041f910
mov byte [ebp - 4], 0x20
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x4254bf
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x3c], esi
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0x21
push eax
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x30]
call fcn.00420f70
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x22
push ecx
mov edx, eax
lea ecx, [ebp - 0x34]
call fcn.00420f70
add esp, 8
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 0x23
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00428980
mov byte [ebp - 4], 0x22
mov eax, edi
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x425522
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x21
mov eax, edi
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x425540
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x20
lea edx, [esi - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42555b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x1f
mov eax, edi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x425579
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4255a1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4255a1
mov ecx, dword [ebp - 0x18]
call fcn.0041f9d0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x4255c0
mov ecx, dword [eax]
push eax
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