Function at 0x44a950
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4e15
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x515080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0042b3e0
cmp byte [eax + 0x1c], 0
je 0x44aa7e
call fcn.0042b3e0
test byte [eax + 0x20], 4
je 0x44aa7e
call fcn.0042b3e0
mov dword [ebp - 0x1c], eax
call fcn.004046f0
mov edi, eax
test edi, edi
je 0x44af0f
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x14]
push str.DoErase_started.
call fcn.0040d900
call fcn.004046f0
mov edi, eax
test edi, edi
je 0x44af0f
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10]
push 0
push 0x4ed694
call fcn.004025b0
push ecx
lea eax, [ebp - 0x14]
push eax
push ecx
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
call fcn.0042b770
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x44aa50
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x44aa7e
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
xor edi, edi
mov dword [ebp - 0x1c], edi
cmp dword [ebx + 0x18], edi
jle 0x44acc1
nop dword [eax]
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x44aae0
mov eax, dword [eax]
lea esi, [ebx + 0x14]
mov dword [ebp - 0x18], esi
mov edx, dword [eax + 0x28]
mov dword [ebp - 0x24], edx
test edi, edi
js 0x44af19
cmp edi, dword [esi + 4]
jge 0x44af19
mov eax, dword [esi]
lea ecx, [edi*4]
push 0
push 9
push dword [eax + ecx]
mov ecx, edx
call dword [0x4e2514]
mov ecx, dword [ebp - 0x20]
call dword [ebp - 0x24]
lea edx, [edi*4]
jmp 0x44aaf7
lea ecx, [ebx + 0x14]
mov dword [ebp - 0x18], ecx
lea edx, [edi*4]
mov esi, ecx
test edi, edi
js 0x44af19
cmp edi, dword [esi + 4]
jge 0x44af19
mov eax, dword [esi]
push dword [eax + edx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x44ac72
call fcn.0042b3e0
cmp byte [eax + 0x1c], 0
je 0x44ac6f
call fcn.0042b3e0
test byte [eax + 0x20], 1
je 0x44ac6f
call fcn.0042b3e0
mov dword [ebp - 0x20], eax
call fcn.004046f0
mov dword [ebp - 0x24], eax
test eax, eax
je 0x44af0f
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, dword [ebp - 0x24]
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xc
lea ecx, [ebp - 0x10]
push 0x17
push str.Failed_to_delete_file:
call fcn.004025b0
mov eax, dword [ebp - 0x18]
cmp edi, dword [eax + 4]
jge 0x44af19
mov eax, dword [ebx + 0x14]
mov edx, dword [eax + edi*4]
test edx, edx
je 0x44abab
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44ab92
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.004025b0
push 0xc
push str._LastError:
lea ecx, [ebp - 0x10]
call fcn.004025b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x10]
call fcn.0042b090
mov dword [ebp - 0x24], eax
call fcn.004046f0
mov edi, eax
test edi, edi
je 0x44af0f
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x14]
push 0
push 0x4ed694
call fcn.004025b0
push ecx
push dword [ebp - 0x24]
lea eax, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x20]
push eax
call fcn.0042b770
mov byte [ebp - 4], 0xc
or eax, 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x44ac41
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x44ac6f
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x44ac90
mov eax, dword [eax]
push 1
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x4e2514]
mov ecx, dword [ebp - 0x24]
call esi
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x44acb4
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x4e2514]
mov ecx, dword [ebp - 0x24]
call esi
test al, al
jne 0x44aefb
inc edi
mov dword [ebp - 0x1c], edi
cmp edi, dword [ebx + 0x18]
jl 0x44aa90
xor edi, edi
mov dword [ebp - 0x18], edi
cmp dword [ebx + 0xc], edi
jle 0x44aefb
nop
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x44ad20
mov eax, dword [eax]
lea esi, [ebx + 8]
mov dword [ebp - 0x1c], esi
mov edx, dword [eax + 0x28]
mov dword [ebp - 0x20], edx
test edi, edi
js 0x44af19
cmp edi, dword [esi + 4]
jge 0x44af19
mov eax, dword [esi]
lea ecx, [edi*4]
push 0
push 9
push dword [eax + ecx]
mov ecx, edx
call dword [0x4e2514]
mov ecx, dword [ebp - 0x24]
call dword [ebp - 0x20]
lea edx, [edi*4]
jmp 0x44ad37
lea ecx, [ebx + 8]
mov dword [ebp - 0x1c], ecx
lea edx, [edi*4]
mov esi, ecx
test edi, edi
js 0x44af19
cmp edi, dword [esi + 4]
jge 0x44af19
mov eax, dword [esi]
push dword [eax + edx]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x44aeb0
call fcn.0042b3e0
cmp byte [eax + 0x1c], 0
je 0x44aead
call fcn.0042b3e0
test byte [eax + 0x20], 1
je 0x44aead
call fcn.0042b3e0
mov dword [ebp - 0x20], eax
call fcn.004046f0
mov dword [ebp - 0x24], eax
test eax, eax
je 0x44af0f
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, dword [ebp - 0x24]
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0x16
lea ecx, [ebp - 0x10]
push str.Failed_to_delete_folder:
call fcn.0040d900
mov eax, dword [ebp - 0x1c]
cmp edi, dword [eax + 4]
jge 0x44af19
mov eax, dword [ebx + 8]
mov edx, dword [eax + edi*4]
test edx, edx
je 0x44ade9
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44add0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.004025b0
push 0xc
push str._LastError:
lea ecx, [ebp - 0x10]
call fcn.004025b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x10]
call fcn.0042b090
mov dword [ebp - 0x24], eax
call fcn.004046f0
mov edi, eax
test edi, edi
je 0x44af0f
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x14]
push 0
push 0x4ed694
call fcn.004025b0
push ecx
push dword [ebp - 0x24]
lea eax, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x20]
push eax
call fcn.0042b770
mov byte [ebp - 4], 0x16
or eax, 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x44ae7f
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x44aead
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x18]
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x44aece
mov eax, dword [eax]
push 1
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x4e2514]
mov ecx, dword [ebp - 0x24]
call esi
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x44aeee
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x4e2514]
mov ecx, dword [ebp - 0x24]
call esi
test al, al
jne 0x44aefb
inc edi
mov dword [ebp - 0x18], edi
cmp edi, dword [ebx + 0xc]
jl 0x44acd0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402720
push 0x8000000b
call fcn.00402720
int3