Function at 0x420220
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x45f75e
mov eax, dword fs:[0]
push eax
mov eax, 0x1e64
call fcn.0044bf30
mov eax, dword [0x47b038]
xor eax, esp
mov dword [esp + 0x1e60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47b038]
xor eax, esp
push eax
lea eax, [esp + 0x1e78]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1e88]
mov esi, ecx
push edi
push str.ProcessSectionDelFiles_____s__n
mov dword [esp + 0x20], esi
mov dword [esp + 0x38], edi
call fcn.0043e2c0
mov ecx, dword [esi + 4]
add esp, 8
xor ebx, ebx
push ebx
lea eax, [esp + 0x860]
push eax
push edi
push str.TargetPath
call fcn.00409080
test al, al
je 0x4202ba
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [esp + eax + 0x85c]
mov word [esp + eax + 0x244], cx
add eax, 2
cmp cx, bx
jne 0x4202a0
jmp 0x42031f
push ebx
lea ecx, [esp + 0x860]
push ecx
mov ecx, dword [esi + 4]
push str.Default
push str.TargetPath
call fcn.00409080
test al, al
je 0x4202fa
xor eax, eax
jmp 0x4202e0
movzx ecx, word [esp + eax + 0x85c]
mov word [esp + eax + 0x244], cx
add eax, 2
cmp cx, bx
jne 0x4202e0
jmp 0x42031f
mov eax, dword [esi + 8]
add eax, 0x624
lea edx, [esp + 0x244]
sub edx, eax
jmp 0x420310
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x420310
lea edx, [esp + 0x244]
push edx
mov ecx, esi
call fcn.004160e0
mov ecx, dword [esi + 4]
push ebx
lea eax, [esp + 0xe78]
push eax
push ebx
push edi
mov dword [esp + 0x34], ebx
call fcn.004090a0
test al, al
je 0x42086b
jmp 0x420354
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0xe74]
push ecx
push edx
push edi
push str.__s___d____s__n
mov ebp, 2
call fcn.0043e2c0
push 0x1c2d0
call fcn.0044ad7f
add esp, 0x14
mov dword [esp + 0x34], eax
mov dword [esp + 0x1e80], ebx
cmp eax, ebx
je 0x42039c
mov ecx, eax
call fcn.0043d9e0
mov esi, eax
mov dword [esp + 0x28], eax
jmp 0x4203a2
xor esi, esi
mov dword [esp + 0x28], esi
push 0x469868
lea eax, [esp + 0xe78]
push eax
mov ecx, esi
mov dword [esp + 0x1e88], 0xffffffff
call fcn.0043dc30
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x34], eax
mov byte [esp + 0x17], bl
mov byte [esp + 0x16], bl
mov dword [esp + 0x2c], edi
jle 0x420758
jmp 0x4203e0
cmp byte [esi + 0x1c2cc], bl
je 0x420402
cmp edi, dword [esi + 0x1c2c8]
jl 0x4203f4
xor eax, eax
jmp 0x420418
mov ecx, edi
shl ecx, 0xb
lea eax, [ecx + esi + 0x32c8]
jmp 0x420418
cmp edi, dword [esi + 0x1c2c8]
jl 0x42040e
xor eax, eax
jmp 0x420418
mov eax, edi
imul eax, eax, 0x104
add eax, esi
push eax
push edi
push str.___d____s__n
call fcn.0043e2c0
mov eax, edi
add esp, 0xc
sub eax, ebx
je 0x420703
sub eax, ebp
je 0x4206bc
sub eax, 1
jne 0x420749
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0xc]
lea edx, [esp + 0xc6c]
push edx
push ebx
lea eax, [esp + 0x44]
push eax
call fcn.004434c0
cmp byte [esi + 0x1c2cc], bl
je 0x420479
cmp dword [esi + 0x1c2c8], 3
jg 0x420471
xor eax, eax
jmp 0x42048c
lea eax, [esi + 0x4ac8]
jmp 0x42048c
cmp dword [esi + 0x1c2c8], 3
jg 0x420486
xor eax, eax
jmp 0x42048c
lea eax, [esi + 0x30c]
push str.CHECK_DEPENDENT_LIST
push eax
call fcn.0044b362
add esp, 8
test eax, eax
jne 0x420749
push 0x206
lea eax, [esp + 0x65a]
xor edx, edx
push ebx
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov word [esp + 0x660], dx
call fcn.0044ac90
add esp, 0xc
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + str.Windows_NT_x86]
mov word [esp + eax + 0x654], cx
add eax, ebp
cmp cx, bx
jne 0x4204d0
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0xc]
call fcn.00444240
test eax, eax
je 0x420516
xor eax, eax
jmp 0x420500
movzx ecx, word [eax + str.Windows_x64]
mov word [esp + eax + 0x654], cx
add eax, ebp
cmp cx, bx
jne 0x420500
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
push 3
lea ecx, [esp + 0x668]
push ecx
push ebx
call sub.WINSPOOL.DRV_EnumPrinterDriversW
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x420749
push eax
call fcn.0044b473
mov ecx, dword [esp + 0x24]
add esp, 4
mov ebp, eax
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
push ecx
push ebp
push 3
lea edx, [esp + 0x668]
push edx
push ebx
mov dword [esp + 0x54], ebp
call sub.WINSPOOL.DRV_EnumPrinterDriversW
xor edi, edi
cmp dword [esp + 0x1c], ebx
jbe 0x4206a5
add ebp, 0x1c
lea esp, [esp]
mov esi, dword [ebp]
cmp esi, ebx
je 0x42068f
cmp word [esi], bx
je 0x42068f
jmp 0x4205a0
push 0x206
lea ecx, [esp + 0xa6a]
xor eax, eax
push ebx
push ecx
mov word [esp + 0xa70], ax
call fcn.0044ac90
push 0x206
lea eax, [esp + 0x45e]
xor edx, edx
push ebx
push eax
mov word [esp + 0x464], dx
call fcn.0044ac90
lea edx, [esp + 0xa7c]
add esp, 0x18
mov eax, esi
sub edx, esi
jmp 0x4205f0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x4205f0
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x44c]
push ecx
mov ecx, dword [eax + 0xc]
push ebx
lea edx, [esp + 0xa6c]
push edx
call fcn.004434c0
lea ecx, [esp + 0x44c]
push ecx
push str.___DEP_File___s__n
call fcn.0043e2c0
lea edx, [esp + 0x454]
push edx
lea eax, [esp + 0xc78]
push eax
call fcn.0044b362
add esp, 0x10
test eax, eax
jne 0x42066c
lea ecx, [esp + 0xc6c]
push ecx
lea edx, [esp + 0x450]
push edx
push str._____File___s___s__n
call fcn.0043e2c0
add esp, 0xc
mov byte [esp + 0x17], 1
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x420671
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], bx
lea esi, [esi + eax*2 + 2]
jne 0x4205a0
inc edi
add ebp, 0x28
cmp edi, dword [esp + 0x1c]
jb 0x420580
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x28]
push ebp
call fcn.0044b468
mov edi, dword [esp + 0x30]
add esp, 4
mov ebp, 2
jmp 0x420749
cmp byte [esi + 0x1c2cc], bl
je 0x4206d8
cmp dword [esi + 0x1c2c8], ebp
jg 0x4206d0
xor eax, eax
jmp 0x4206ea
lea eax, [esi + 0x42c8]
jmp 0x4206ea
cmp dword [esi + 0x1c2c8], ebp
jg 0x4206e4
xor eax, eax
jmp 0x4206ea
lea eax, [esi + 0x208]
push str.DEL_REBOOT
push eax
call fcn.0044b362
add esp, 8
test eax, eax
jne 0x420749
mov byte [esp + 0x16], 1
jmp 0x420749
cmp byte [esi + 0x1c2cc], bl
je 0x42071f
cmp dword [esi + 0x1c2c8], ebx
jg 0x420717
xor eax, eax
jmp 0x42072d
lea eax, [esi + 0x32c8]
jmp 0x42072d
xor eax, eax
cmp dword [esi + 0x1c2c8], ebx
setle al
dec eax
and eax, esi
push eax
lea eax, [esp + 0x248]
push eax
lea ecx, [esp + 0x44]
push 0x461a90
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
inc edi
cmp edi, dword [esp + 0x34]
mov dword [esp + 0x2c], edi
jl 0x4203e0
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 8]
cmp byte [eax + 0x1e89], bl
je 0x420777
mov ecx, edx
call fcn.0040b1b0
mov edi, dword [esp + 0x18]
jmp 0x42082b
lea ecx, [esp + 0x3c]
push ecx
push 0xffffffffffffffff
mov esi, edx
push 4
mov ecx, esi
call fcn.00415ea0
lea edx, [esp + 0x3c]
push str..inf
push edx
call fcn.0044bc75
add esp, 8
test eax, eax
je 0x4207ab
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call fcn.0041cd30
mov esi, 1
mov al, 1
cmp byte [esp + 0x17], bl
je 0x4207cc
lea ecx, [esp + 0x3c]
push ecx
push str.XXX_dont_delete_this_file___s__n
call fcn.0043e2c0
add esp, 8
xor al, al
cmp byte [esp + 0x16], bl
je 0x4207ed
cmp al, bl
je 0x4208a5
mov edi, dword [esp + 0x18]
mov ecx, dword [edi + 0xc]
lea edx, [esp + 0x3c]
push edx
call fcn.00442c60
jmp 0x420806
cmp al, bl
je 0x4208a5
mov edi, dword [esp + 0x18]
mov ecx, dword [edi + 0xc]
lea eax, [esp + 0x3c]
push eax
call fcn.00442ba0
mov esi, eax
cmp esi, ebx
jne 0x4208a9
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 4
mov ecx, edi
call fcn.00415ea0
mov dword [edi + 0x28b8], ebx
mov esi, dword [esp + 0x28]
cmp esi, ebx
je 0x420843
mov ecx, esi
call fcn.0043d490
push esi
call fcn.0044ad0a
add esp, 4
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
push ebx
lea ecx, [esp + 0xe78]
push ecx
mov ecx, dword [edi + 4]
inc eax
push eax
push edx
mov dword [esp + 0x34], eax
call fcn.004090a0
test al, al
jne 0x420350
lea eax, [esp + 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov ecx, dword [esp + 0x1e78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1e60]
xor ecx, esp
call fcn.0044ac80
add esp, 0x1e70
ret 4
mov edi, dword [esp + 0x18]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x3c]
push ecx
push ebx
push 4
mov ecx, edi
call fcn.00415ea0
cmp esi, 2
jne 0x42082b
push 1
push ebx
push ebx
push 0x8901
mov ecx, edi
call fcn.00415f80
jmp 0x42082b