Function at 0x406941
Capabilities:
Delete directory
Delete file

Disassembly:
push 0x48
mov eax, 0x461a58
call fcn.0043fa79
mov edi, ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x54], edi
cmp byte [edi + 0x18], 0
mov dword [ebp - 4], 1
jne 0x406b6c
mov esi, dword [edi]
cmp esi, dword [edi + 4]
je 0x406a60
lea ebx, [esi + 4]
cmp dword [ebx + 0x14], 8
jb 0x40697e
mov eax, dword [ebx]
jmp 0x406980
mov eax, ebx
push eax
push 0
lea eax, [ebp - 0x41]
push eax
push 0x46b6b0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47686c
mov dword [ebp - 0x18], 0x46d060
call fcn.004065d0
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push eax
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0x50], esp
push 1
lea eax, [ebp - 0x41]
push eax
push str.DeleterDeleteFile
mov byte [ebp - 4], 2
call fcn.004067e8
sub esp, 0x30
mov ecx, esp
push 1
lea eax, [ebp - 0x41]
push eax
push str.ISSetupDLLOp
mov byte [ebp - 4], 3
call fcn.004067e8
mov byte [ebp - 4], 2
call fcn.0043187b
add esp, 0x68
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00401500
xor edi, edi
push 4
sub esp, 0x30
mov ecx, esp
push 0
push esi
mov dword [ecx], 0x47686c
mov dword [ecx + 0x28], 0x46d060
call fcn.004064e5
call fcn.00433a41
add esp, 0x34
test al, al
je 0x406a4e
cmp dword [ebx + 0x14], 8
jb 0x406a2f
mov eax, dword [ebx]
jmp 0x406a31
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x406a4e
mov eax, edi
inc edi
cmp eax, 0x64
jge 0x406a4e
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4069fd
mov edi, dword [ebp - 0x4c]
add esi, 0x30
add ebx, 0x30
cmp esi, dword [edi + 4]
jne 0x406974
mov esi, dword [edi + 0x10]
cmp esi, dword [edi + 0xc]
je 0x406b5e
lea ebx, [esi - 0x2c]
cmp dword [ebx + 0x14], 8
jb 0x406a79
mov eax, dword [ebx]
jmp 0x406a7b
mov eax, ebx
push eax
push 0
lea eax, [ebp - 0x41]
push eax
push str.Folder_s
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47686c
mov dword [ebp - 0x18], 0x46d060
call fcn.004065d0
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push eax
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0x48], esp
push 1
lea eax, [ebp - 0x41]
push eax
push str.DeleterDeleteFolder
mov byte [ebp - 4], 4
call fcn.004067e8
sub esp, 0x30
mov ecx, esp
push 1
lea eax, [ebp - 0x41]
push eax
push str.ISSetupDLLOp
mov byte [ebp - 4], 5
call fcn.004067e8
mov byte [ebp - 4], 4
call fcn.0043187b
add esp, 0x68
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00401500
xor edi, edi
push 8
sub esp, 0x30
mov ecx, esp
push 0
lea eax, [ebx - 4]
push eax
mov dword [ecx], 0x47686c
mov dword [ecx + 0x28], 0x46d060
call fcn.004064e5
call fcn.00433a41
add esp, 0x34
test al, al
je 0x406b4c
cmp dword [ebx + 0x14], 8
jb 0x406b2d
mov eax, dword [ebx]
jmp 0x406b2f
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x406b4c
mov eax, edi
inc edi
cmp eax, 0x64
jge 0x406b4c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406af8
mov edi, dword [ebp - 0x4c]
sub esi, 0x30
sub ebx, 0x30
cmp esi, dword [edi + 0xc]
jne 0x406a6f
cmp byte [edi + 0x19], 0
je 0x406b6c
push 1
call fcn.00406c97
pop ecx
lea ecx, [edi + 0xc]
call fcn.00423041
mov ecx, edi
call fcn.00423041
call fcn.0043fa28
ret