Function at 0x44e9f0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a805
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x569080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0042b830
cmp byte [eax + 0x1c], 0
je 0x44eb1e
call fcn.0042b830
test byte [eax + 0x20], 4
je 0x44eb1e
call fcn.0042b830
mov dword [ebp - 0x1c], eax
call fcn.004047f0
mov edi, eax
test edi, edi
je 0x44efaf
mov edx, dword [edi]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x525578]
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.0040da80
call fcn.004047f0
mov edi, eax
test edi, edi
je 0x44efaf
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x525578]
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 0x530654
call fcn.00402660
push ecx
lea eax, [ebp - 0x14]
push eax
push ecx
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
call fcn.0042bba0
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 0x44eaf0
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
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 0x44eb1e
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
xor edi, edi
mov dword [ebp - 0x1c], edi
cmp dword [ebx + 0x18], edi
jle 0x44ed61
nop dword [eax]
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x44eb80
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 0x44efb9
cmp edi, dword [esi + 4]
jge 0x44efb9
mov eax, dword [esi]
lea ecx, [edi*4]
push 0
push 9
push dword [eax + ecx]
mov ecx, edx
call dword [0x525578]
mov ecx, dword [ebp - 0x20]
call dword [ebp - 0x24]
lea edx, [edi*4]
jmp 0x44eb97
lea ecx, [ebx + 0x14]
mov dword [ebp - 0x18], ecx
lea edx, [edi*4]
mov esi, ecx
test edi, edi
js 0x44efb9
cmp edi, dword [esi + 4]
jge 0x44efb9
mov eax, dword [esi]
push dword [eax + edx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x44ed12
call fcn.0042b830
cmp byte [eax + 0x1c], 0
je 0x44ed0f
call fcn.0042b830
test byte [eax + 0x20], 1
je 0x44ed0f
call fcn.0042b830
mov dword [ebp - 0x20], eax
call fcn.004047f0
mov dword [ebp - 0x24], eax
test eax, eax
je 0x44efaf
mov edx, dword [eax]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x525578]
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.00402660
mov eax, dword [ebp - 0x18]
cmp edi, dword [eax + 4]
jge 0x44efb9
mov eax, dword [ebx + 0x14]
mov edx, dword [eax + edi*4]
test edx, edx
je 0x44ec4b
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44ec32
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.00402660
push 0xc
push str._LastError:
lea ecx, [ebp - 0x10]
call fcn.00402660
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x10]
call fcn.0042b4e0
mov dword [ebp - 0x24], eax
call fcn.004047f0
mov edi, eax
test edi, edi
je 0x44efaf
mov edx, dword [edi]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x525578]
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 0x530654
call fcn.00402660
push ecx
push dword [ebp - 0x24]
lea eax, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x20]
push eax
call fcn.0042bba0
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 0x44ece1
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
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 0x44ed0f
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x44ed30
mov eax, dword [eax]
push 1
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x525578]
mov ecx, dword [ebp - 0x24]
call esi
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x44ed54
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x525578]
mov ecx, dword [ebp - 0x24]
call esi
test al, al
jne 0x44ef9b
inc edi
mov dword [ebp - 0x1c], edi
cmp edi, dword [ebx + 0x18]
jl 0x44eb30
xor edi, edi
mov dword [ebp - 0x18], edi
cmp dword [ebx + 0xc], edi
jle 0x44ef9b
nop
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x44edc0
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 0x44efb9
cmp edi, dword [esi + 4]
jge 0x44efb9
mov eax, dword [esi]
lea ecx, [edi*4]
push 0
push 9
push dword [eax + ecx]
mov ecx, edx
call dword [0x525578]
mov ecx, dword [ebp - 0x24]
call dword [ebp - 0x20]
lea edx, [edi*4]
jmp 0x44edd7
lea ecx, [ebx + 8]
mov dword [ebp - 0x1c], ecx
lea edx, [edi*4]
mov esi, ecx
test edi, edi
js 0x44efb9
cmp edi, dword [esi + 4]
jge 0x44efb9
mov eax, dword [esi]
push dword [eax + edx]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x44ef50
call fcn.0042b830
cmp byte [eax + 0x1c], 0
je 0x44ef4d
call fcn.0042b830
test byte [eax + 0x20], 1
je 0x44ef4d
call fcn.0042b830
mov dword [ebp - 0x20], eax
call fcn.004047f0
mov dword [ebp - 0x24], eax
test eax, eax
je 0x44efaf
mov edx, dword [eax]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x525578]
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.0040da80
mov eax, dword [ebp - 0x1c]
cmp edi, dword [eax + 4]
jge 0x44efb9
mov eax, dword [ebx + 8]
mov edx, dword [eax + edi*4]
test edx, edx
je 0x44ee89
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44ee70
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.00402660
push 0xc
push str._LastError:
lea ecx, [ebp - 0x10]
call fcn.00402660
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x10]
call fcn.0042b4e0
mov dword [ebp - 0x24], eax
call fcn.004047f0
mov edi, eax
test edi, edi
je 0x44efaf
mov edx, dword [edi]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x525578]
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 0x530654
call fcn.00402660
push ecx
push dword [ebp - 0x24]
lea eax, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x20]
push eax
call fcn.0042bba0
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 0x44ef1f
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
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 0x44ef4d
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x18]
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x44ef6e
mov eax, dword [eax]
push 1
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x525578]
mov ecx, dword [ebp - 0x24]
call esi
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x44ef8e
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x525578]
mov ecx, dword [ebp - 0x24]
call esi
test al, al
jne 0x44ef9b
inc edi
mov dword [ebp - 0x18], edi
cmp edi, dword [ebx + 0xc]
jl 0x44ed70
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.004027d0
push 0x8000000b
call fcn.004027d0
int3