Function at 0x4414d0
Capabilities:
Check if file exists
Delete directory
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5166fe
mov eax, dword fs:[0]
push eax
sub esp, 0x48c
mov eax, dword [0x56d06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x441538
lea ecx, [edi + 8]
lea eax, [ebp + 8]
cmp ecx, eax
je 0x441531
push 0xffffffffffffffff
push 0
push eax
call fcn.0041d980
mov dword [edi + 4], 2
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x441737
mov eax, 0x5c
mov dword [ebp - 0x34], 0
mov word [ebp - 0x38], ax
mov dword [ebp - 0x30], 0
push 0x55b680
lea edx, [ebp + 8]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00439f74
add esp, 4
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x44158c
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x490]
call fcn.00440db0
mov byte [ebp - 4], 1
mov esi, eax
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x4415b3
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0041e1c0
test esi, esi
je 0x4416c7
mov ecx, dword [ebp - 0x30]
nop
xor edx, edx
test ecx, ecx
je 0x4415fe
mov eax, dword [ebp - 0x490]
shr eax, 4
and eax, 1
je 0x4415fe
cmp word [ebp - 0x464], 0x2e
jne 0x4415fe
mov ax, word [ebp - 0x462]
test ax, ax
je 0x4415f9
cmp ax, 0x2e
jne 0x4415fe
cmp word [ebp - 0x460], dx
jne 0x4415fe
mov edx, 1
test edx, edx
jne 0x4416a1
lea eax, [ebp - 0x494]
push eax
lea ecx, [ebp - 0x490]
call fcn.00440d00
mov esi, eax
push 0x557874
lea edx, [ebp + 8]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00439f74
sub esp, 0x14
mov byte [ebp - 4], 4
mov ecx, esp
mov edx, eax
push dword [esi]
call fcn.0043a808
add esp, 4
mov ecx, edi
call fcn.004414d0
test eax, eax
mov eax, dword [ebp - 0x14]
sete bl
cmp eax, 8
jb 0x441664
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0041e1c0
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x494]
mov word [ebp - 0x28], ax
add edx, 0xfffffff0
mov dword [ebp - 0x14], 7
or eax, 0xffffffff
mov dword [ebp - 0x18], 0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44169a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x441712
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4416c7
test ecx, ecx
je 0x4416c7
lea ecx, [ebp - 0x490]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, eax
mov dword [ebp - 0x30], ecx
test ecx, ecx
jne 0x4415c0
xor esi, esi
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x441716
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 4
cmovae eax, dword [ebp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [edi + 8]
lea eax, [ebp + 8]
cmp ecx, eax
je 0x441707
push 0xffffffffffffffff
push esi
push eax
call fcn.0041d980
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
jmp 0x44171b
xor esi, esi
jmp 0x44171b
mov esi, 1
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], 0
test eax, eax
je 0x441786
cmp eax, 0xffffffff
je 0x441786
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x441786
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x441786
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 4
cmovae eax, dword [ebp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
test esi, esi
jne 0x441786
lea ecx, [edi + 8]
lea eax, [ebp + 8]
cmp ecx, eax
je 0x44177d
push 0xffffffffffffffff
push esi
push eax
call fcn.0041d980
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x44179b
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.0041e1c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00471876
mov esp, ebp
pop ebp
ret 0x18