Function at 0x449e60
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3c25
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.0042ad70
cmp byte [eax + 0x1c], 0
je 0x449f8e
call fcn.0042ad70
test byte [eax + 0x20], 4
je 0x449f8e
call fcn.0042ad70
mov dword [ebp - 0x1c], eax
call fcn.00404710
mov edi, eax
test edi, edi
je 0x44a41f
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.0040d6e0
call fcn.00404710
mov edi, eax
test edi, edi
je 0x44a41f
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.004025d0
push ecx
lea eax, [ebp - 0x14]
push eax
push ecx
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
call fcn.0042b100
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 0x449f60
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 0x449f8e
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 0x44a1d1
nop dword [eax]
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x449ff0
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 0x44a429
cmp edi, dword [esi + 4]
jge 0x44a429
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 0x44a007
lea ecx, [ebx + 0x14]
mov dword [ebp - 0x18], ecx
lea edx, [edi*4]
mov esi, ecx
test edi, edi
js 0x44a429
cmp edi, dword [esi + 4]
jge 0x44a429
mov eax, dword [esi]
push dword [eax + edx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x44a182
call fcn.0042ad70
cmp byte [eax + 0x1c], 0
je 0x44a17f
call fcn.0042ad70
test byte [eax + 0x20], 1
je 0x44a17f
call fcn.0042ad70
mov dword [ebp - 0x20], eax
call fcn.00404710
mov dword [ebp - 0x24], eax
test eax, eax
je 0x44a41f
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.004025d0
mov eax, dword [ebp - 0x18]
cmp edi, dword [eax + 4]
jge 0x44a429
mov eax, dword [ebx + 0x14]
mov edx, dword [eax + edi*4]
test edx, edx
je 0x44a0bb
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44a0a2
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.004025d0
push 0xc
push str._LastError:
lea ecx, [ebp - 0x10]
call fcn.004025d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x10]
call fcn.0042aa20
mov dword [ebp - 0x24], eax
call fcn.00404710
mov edi, eax
test edi, edi
je 0x44a41f
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.004025d0
push ecx
push dword [ebp - 0x24]
lea eax, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x20]
push eax
call fcn.0042b100
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 0x44a151
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 0x44a17f
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 0x44a1a0
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 0x44a1c4
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 0x44a40b
inc edi
mov dword [ebp - 0x1c], edi
cmp edi, dword [ebx + 0x18]
jl 0x449fa0
xor edi, edi
mov dword [ebp - 0x18], edi
cmp dword [ebx + 0xc], edi
jle 0x44a40b
nop
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x44a230
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 0x44a429
cmp edi, dword [esi + 4]
jge 0x44a429
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 0x44a247
lea ecx, [ebx + 8]
mov dword [ebp - 0x1c], ecx
lea edx, [edi*4]
mov esi, ecx
test edi, edi
js 0x44a429
cmp edi, dword [esi + 4]
jge 0x44a429
mov eax, dword [esi]
push dword [eax + edx]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x44a3c0
call fcn.0042ad70
cmp byte [eax + 0x1c], 0
je 0x44a3bd
call fcn.0042ad70
test byte [eax + 0x20], 1
je 0x44a3bd
call fcn.0042ad70
mov dword [ebp - 0x20], eax
call fcn.00404710
mov dword [ebp - 0x24], eax
test eax, eax
je 0x44a41f
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.0040d6e0
mov eax, dword [ebp - 0x1c]
cmp edi, dword [eax + 4]
jge 0x44a429
mov eax, dword [ebx + 8]
mov edx, dword [eax + edi*4]
test edx, edx
je 0x44a2f9
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44a2e0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.004025d0
push 0xc
push str._LastError:
lea ecx, [ebp - 0x10]
call fcn.004025d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x10]
call fcn.0042aa20
mov dword [ebp - 0x24], eax
call fcn.00404710
mov edi, eax
test edi, edi
je 0x44a41f
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.004025d0
push ecx
push dword [ebp - 0x24]
lea eax, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x20]
push eax
call fcn.0042b100
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 0x44a38f
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 0x44a3bd
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 0x44a3de
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 0x44a3fe
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 0x44a40b
inc edi
mov dword [ebp - 0x18], edi
cmp edi, dword [ebx + 0xc]
jl 0x44a1e0
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.00402740
push 0x8000000b
call fcn.00402740
int3