Function at 0x44a300
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4565
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x514080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0042b190
cmp byte [eax + 0x1c], 0
je 0x44a42e
call fcn.0042b190
test byte [eax + 0x20], 4
je 0x44a42e
call fcn.0042b190
mov dword [ebp - 0x1c], eax
call fcn.004046f0
mov edi, eax
test edi, edi
je 0x44a8bf
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e1514]
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.0040d6d0
call fcn.004046f0
mov edi, eax
test edi, edi
je 0x44a8bf
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e1514]
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 0x4ec684
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.0042b520
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 0x44a400
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e1514]
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 0x44a42e
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
xor edi, edi
mov dword [ebp - 0x1c], edi
cmp dword [ebx + 0x18], edi
jle 0x44a671
nop dword [eax]
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x44a490
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 0x44a8c9
cmp edi, dword [esi + 4]
jge 0x44a8c9
mov eax, dword [esi]
lea ecx, [edi*4]
push 0
push 9
push dword [eax + ecx]
mov ecx, edx
call dword [0x4e1514]
mov ecx, dword [ebp - 0x20]
call dword [ebp - 0x24]
lea edx, [edi*4]
jmp 0x44a4a7
lea ecx, [ebx + 0x14]
mov dword [ebp - 0x18], ecx
lea edx, [edi*4]
mov esi, ecx
test edi, edi
js 0x44a8c9
cmp edi, dword [esi + 4]
jge 0x44a8c9
mov eax, dword [esi]
push dword [eax + edx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x44a622
call fcn.0042b190
cmp byte [eax + 0x1c], 0
je 0x44a61f
call fcn.0042b190
test byte [eax + 0x20], 1
je 0x44a61f
call fcn.0042b190
mov dword [ebp - 0x20], eax
call fcn.004046f0
mov dword [ebp - 0x24], eax
test eax, eax
je 0x44a8bf
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e1514]
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 0x44a8c9
mov eax, dword [ebx + 0x14]
mov edx, dword [eax + edi*4]
test edx, edx
je 0x44a55b
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44a542
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.0042ae40
mov dword [ebp - 0x24], eax
call fcn.004046f0
mov edi, eax
test edi, edi
je 0x44a8bf
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e1514]
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 0x4ec684
call fcn.004025b0
push ecx
push dword [ebp - 0x24]
lea eax, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x20]
push eax
call fcn.0042b520
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 0x44a5f1
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e1514]
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 0x44a61f
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x44a640
mov eax, dword [eax]
push 1
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x4e1514]
mov ecx, dword [ebp - 0x24]
call esi
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x44a664
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x4e1514]
mov ecx, dword [ebp - 0x24]
call esi
test al, al
jne 0x44a8ab
inc edi
mov dword [ebp - 0x1c], edi
cmp edi, dword [ebx + 0x18]
jl 0x44a440
xor edi, edi
mov dword [ebp - 0x18], edi
cmp dword [ebx + 0xc], edi
jle 0x44a8ab
nop
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x44a6d0
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 0x44a8c9
cmp edi, dword [esi + 4]
jge 0x44a8c9
mov eax, dword [esi]
lea ecx, [edi*4]
push 0
push 9
push dword [eax + ecx]
mov ecx, edx
call dword [0x4e1514]
mov ecx, dword [ebp - 0x24]
call dword [ebp - 0x20]
lea edx, [edi*4]
jmp 0x44a6e7
lea ecx, [ebx + 8]
mov dword [ebp - 0x1c], ecx
lea edx, [edi*4]
mov esi, ecx
test edi, edi
js 0x44a8c9
cmp edi, dword [esi + 4]
jge 0x44a8c9
mov eax, dword [esi]
push dword [eax + edx]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x44a860
call fcn.0042b190
cmp byte [eax + 0x1c], 0
je 0x44a85d
call fcn.0042b190
test byte [eax + 0x20], 1
je 0x44a85d
call fcn.0042b190
mov dword [ebp - 0x20], eax
call fcn.004046f0
mov dword [ebp - 0x24], eax
test eax, eax
je 0x44a8bf
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e1514]
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.0040d6d0
mov eax, dword [ebp - 0x1c]
cmp edi, dword [eax + 4]
jge 0x44a8c9
mov eax, dword [ebx + 8]
mov edx, dword [eax + edi*4]
test edx, edx
je 0x44a799
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44a780
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.0042ae40
mov dword [ebp - 0x24], eax
call fcn.004046f0
mov edi, eax
test edi, edi
je 0x44a8bf
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e1514]
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 0x4ec684
call fcn.004025b0
push ecx
push dword [ebp - 0x24]
lea eax, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x20]
push eax
call fcn.0042b520
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 0x44a82f
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e1514]
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 0x44a85d
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x18]
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x44a87e
mov eax, dword [eax]
push 1
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x4e1514]
mov ecx, dword [ebp - 0x24]
call esi
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x44a89e
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x4e1514]
mov ecx, dword [ebp - 0x24]
call esi
test al, al
jne 0x44a8ab
inc edi
mov dword [ebp - 0x18], edi
cmp edi, dword [ebx + 0xc]
jl 0x44a680
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