Function at 0x4250d0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50cab8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x573be0]
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 0x425124
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 0x425127
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.004e9b36
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 0x425175
push 0
lea ecx, [ebp + 8]
call fcn.004206e0
mov ecx, dword [ebp + 8]
push ecx
push esi
push ebx
call fcn.004ebcbb
xor eax, eax
mov dword [ebx + edi*2], eax
add esp, 0xc
or edi, 0xffffffff
cmp byte [0x57ac6b], al
je 0x4252c0
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
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.00421610
add esp, 0xc
lea ecx, [ebp - 0x24]
push str.DeleteFileSystemElement
call fcn.004204a0
mov byte [ebp - 4], 2
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
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.00421890
add esp, 4
mov esi, eax
push 0x54c6b0
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.004219a0
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 0x425240
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 0x425260
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 0x425280
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 0x4252a0
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 0x4252c0
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 0x4252f0
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.004e9b31
add esp, 4
cmp dword [ebp - 0x18], 0
sete cl
mov byte [ebp - 0xd], cl
test cl, cl
jne 0x4258f1
push str._error
lea ecx, [ebp - 0x2c]
call fcn.004204a0
mov byte [ebp - 4], 6
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
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 0x42537b
movzx esi, ax
mov ecx, esi
call fcn.0041fcd0
test eax, eax
je 0x425388
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.00420bb0
jmp 0x425388
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 [0x574ba4]
mov ecx, 0x574ba4
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.00421890
lea ecx, [ebp + 8]
push ecx
mov edx, eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xb
call fcn.00421890
lea ecx, [ebp - 0x2c]
push ecx
mov edx, eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xc
call fcn.00421890
mov byte [ebp - 4], 0xd
push dword [ebp - 0x18]
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00421800
add esp, 0x10
mov esi, eax
push 0x54c6b0
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.004219a0
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 0x425442
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 0x425462
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 0x425482
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 0x4254a2
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 0x4254c2
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 0x4254e2
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 0x425502
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 0x425522
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 0x425542
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 [0x574ba4]
mov ecx, 0x574ba4
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.00421890
mov byte [ebp - 4], 0x12
push dword [ebp - 0x18]
mov edx, eax
lea ecx, [ebp - 0x38]
call fcn.00421800
add esp, 8
mov ecx, dword [ebp - 0x1c]
push eax
mov byte [ebp - 4], 0x13
call fcn.004222b0
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 0x4255ba
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 0x4255da
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 0x4255f7
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 0x425617
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 0x4258e6
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 [0x574ba4]
mov ecx, 0x574ba4
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.00421890
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.00421800
push 2
mov edx, eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x18
call fcn.004223b0
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 0x4256bb
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 0x4256db
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 0x4256f8
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 0x425718
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 0x425738
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 [0x574ba4]
mov ecx, 0x574ba4
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.00421890
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.00421800
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 0x4257ac
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 0x4257c9
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 0x4257e9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x54b724
lea ecx, [ebp - 0x28]
call fcn.004204a0
mov byte [ebp - 4], 0x20
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
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.00421890
lea ecx, [ebp - 0x24]
push ecx
mov edx, eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x22
call fcn.00421890
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.00428940
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 0x425867
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 0x425887
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 0x4258a4
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 0x4258c4
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 0x4258ee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4258ee
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 0x425927
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