Function at 0x4197cc
Capabilities:
Delete directory
Delete file

Disassembly:
push 0x14
mov eax, 0x457c08
call fcn.0043cc79
mov ebx, ecx
mov dword [ebp - 0x18], ebx
call fcn.00411415
mov al, byte [eax + 0x1c]
test al, al
je 0x419852
call fcn.00411415
test byte [eax + 0x20], 4
je 0x419852
lea ecx, [ebp - 0x10]
call fcn.0041108a
mov edi, eax
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0041108a
mov esi, eax
push str.DoErase_started.
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0040440c
push 0x467a40
mov ecx, esi
call fcn.00401881
push ecx
push edi
push ecx
push esi
call fcn.00411415
mov ecx, eax
call fcn.004114cb
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
xor esi, esi
mov dword [ebp - 0x14], esi
cmp dword [ebx + 0x1c], esi
jle 0x419981
lea edi, [ebx + 0x18]
mov dword [ebp - 0x10], edi
cmp dword [ebx + 0x24], 0
je 0x419882
push esi
mov ecx, edi
call fcn.0040301c
mov ecx, dword [ebx + 0x24]
push 0
push 9
push dword [eax]
mov edx, dword [ecx]
call dword [edx + 0x28]
push esi
mov ecx, edi
call fcn.0040301c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x419952
call fcn.00411415
mov al, byte [eax + 0x1c]
test al, al
je 0x419952
call fcn.00411415
test byte [eax + 0x20], 1
je 0x419952
lea ecx, [ebp - 0x20]
call fcn.0041108a
mov edi, eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 2
call fcn.0041108a
mov ebx, eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
push esi
call fcn.0040301c
push str.Failed_to_delete_file:
mov ecx, edi
mov esi, dword [eax]
call fcn.00401881
push esi
mov ecx, edi
call fcn.0041109e
mov esi, eax
push str._LastError:
mov ecx, esi
call fcn.00401881
push 0x467a40
mov ecx, ebx
call fcn.00401881
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.004111b0
push eax
push ecx
push ebx
call fcn.00411415
mov ecx, eax
call fcn.004114cb
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x419974
mov eax, dword [ecx]
push 1
call dword [eax + 0x18]
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x419974
mov eax, dword [ecx]
call dword [eax + 0x1c]
test al, al
jne 0x419aac
inc esi
mov dword [ebp - 0x14], esi
cmp esi, dword [ebx + 0x1c]
jl 0x419866
xor esi, esi
mov dword [ebp - 0x10], esi
cmp dword [ebx + 0x10], esi
jle 0x419aac
lea edi, [ebx + 0xc]
mov dword [ebp - 0x14], edi
cmp dword [ebx + 0x24], 0
je 0x4199b1
push esi
mov ecx, edi
call fcn.0040301c
mov ecx, dword [ebx + 0x24]
push 0
push 9
push dword [eax]
mov edx, dword [ecx]
call dword [edx + 0x28]
push esi
mov ecx, edi
call fcn.0040301c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x419a81
call fcn.00411415
mov al, byte [eax + 0x1c]
test al, al
je 0x419a81
call fcn.00411415
test byte [eax + 0x20], 1
je 0x419a81
lea ecx, [ebp - 0x1c]
call fcn.0041108a
mov edi, eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 4
call fcn.0041108a
mov ebx, eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x14]
push esi
call fcn.0040301c
push str.Failed_to_delete_folder:
mov ecx, edi
mov esi, dword [eax]
call fcn.0040440c
push esi
mov ecx, edi
call fcn.0041109e
mov esi, eax
push str._LastError:
mov ecx, esi
call fcn.00401881
push 0x467a40
mov ecx, ebx
call fcn.00401881
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.004111b0
push eax
push ecx
push ebx
call fcn.00411415
mov ecx, eax
call fcn.004114cb
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x419a9f
mov eax, dword [ecx]
push 1
call dword [eax + 0x18]
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x419a9f
mov eax, dword [ecx]
call dword [eax + 0x1c]
test al, al
jne 0x419aac
inc esi
mov dword [ebp - 0x10], esi
cmp esi, dword [ebx + 0x10]
jl 0x419995
xor eax, eax
call fcn.0043cc42
ret