Function at 0x41574e
Capabilities:
Delete directory
Delete file

Disassembly:
push 0x44
mov eax, 0x44843e
call fcn.004465d1
mov edi, ecx
mov eax, dword [edi + 0x164]
xor ebx, ebx
cmp eax, ebx
jne 0x415780
cmp dword [edi + 0x160], ebx
jne 0x41577c
cmp dword [edi + 0x170], ebx
je 0x415966
cmp eax, ebx
je 0x4157aa
lea eax, [edi + 0x160]
lea esi, [ebp - 0x18]
call fcn.00412ba2
mov dword [ebp - 4], ebx
mov eax, dword [eax]
lea esi, [edi + 0x5c]
call fcn.00407939
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00402012
cmp dword [edi + 0x74], 8
jb 0x4157b5
mov eax, dword [edi + 0x60]
jmp 0x4157b8
lea eax, [edi + 0x60]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004026d8
lea esi, [ebp - 0x10]
mov dword [ebp - 4], 1
call fcn.00401cf9
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ecx, dword [ebp - 0x10]
call fcn.00402090
mov edx, esi
call fcn.00401ff1
push 0x44fd68
mov eax, esi
push eax
call fcn.00406223
lea eax, [edi + 0x160]
lea esi, [ebp - 0x1c]
call fcn.004132d9
mov byte [ebp - 4], 2
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.0040623e
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00402012
mov eax, dword [ebp - 0x10]
lea esi, [edi + 0xb8]
call fcn.00407939
mov dword [ebp - 0x4c], 0x450eb4
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], 0x450034
call fcn.004028ef
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x38], 0
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.00407817
jmp 0x415876
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x28], ebx
je 0x41586b
cmp dword [ebp - 0x24], ebx
je 0x415941
cmp dword [edi + 0xf0], 1
jne 0x415941
cmp dword [esi + 0x18], 8
jb 0x41589c
mov esi, dword [esi + 4]
jmp 0x41589f
add esi, 4
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call ebx
cmp dword [edi + 0x90], 8
jb 0x4158b6
mov eax, dword [edi + 0x7c]
jmp 0x4158b9
lea eax, [edi + 0x7c]
push eax
call ebx
cmp dword [edi + 0x74], 8
jb 0x4158c7
mov eax, dword [edi + 0x60]
jmp 0x4158ca
lea eax, [edi + 0x60]
push eax
call ebx
lea esi, [ebp - 0x20]
lea eax, [edi + 0x160]
call fcn.00412ba2
push dword [eax]
call ebx
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00402012
cmp dword [edi + 0x74], 8
jb 0x4158f5
mov edi, dword [edi + 0x60]
jmp 0x4158f8
add edi, 0x60
push edi
lea eax, [ebp - 0x14]
push eax
call fcn.004026d8
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x415936
lea esi, [ebp - 0x14]
call fcn.00401cf9
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ecx, dword [ebp - 0x14]
call fcn.00402090
mov edx, esi
call fcn.00401ff1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00402012
mov byte [ebp - 4], 1
lea esi, [ebp - 0x34]
mov dword [ebp - 0x4c], 0x450eb4
mov dword [ebp - 0x44], 0x450034
call fcn.00402907
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402012
xor eax, eax
inc eax
call fcn.004466a9
ret