Function at 0x1001711f
Capabilities:
Check if file exists
Delete file
Delete registry key
Get file attributes
Move file

Disassembly:
push 0xbc
mov eax, 0x1004ee18
call fcn.1003755a
lea esi, [ebx + 0x480]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10017453
test al, 0x10
je 0x10017453
lea eax, [ebp - 0xc8]
push eax
call fcn.10018306
xor eax, eax
push eax
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc8]
push eax
push 0x1001745b
push 1
push esi
call fcn.1002a68a
mov eax, dword [ebp - 0xb4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xc8]
lea edi, [ebp - 0xac]
lea esi, [ebp - 0x94]
mov dword [ebp - 0xac], eax
call fcn.1000b769
test al, al
je 0x10017308
call fcn.10018655
push 8
pop edi
cmp dword [eax + 0x18], edi
jb 0x100171d0
mov eax, dword [eax + 4]
jmp 0x100171d3
add eax, 4
push eax
push str.delete_file:_ls
call fcn.1002fd9f
pop ecx
pop ecx
lea esi, [ebp - 0x94]
call fcn.10018655
cmp dword [eax + 0x18], edi
jb 0x100171f5
mov eax, dword [eax + 4]
jmp 0x100171f8
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100172f8
push 0x3e
push eax
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x52]
push eax
call fcn.100384f0
add esp, 0xc
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x98]
push eax
movzx eax, word [ebp - 0x9a]
push eax
movzx eax, word [ebp - 0x9c]
push eax
movzx eax, word [ebp - 0x9e]
push eax
movzx eax, word [ebp - 0xa2]
push eax
movzx eax, word [ebp - 0xa4]
push eax
push str._04d_02d_02d_02d_02d_02d
lea eax, [ebp - 0x54]
push 0x20
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x24
lea esi, [ebp - 0x94]
call fcn.10018655
cmp dword [eax + 0x18], edi
jb 0x10017280
mov eax, dword [eax + 4]
jmp 0x10017283
add eax, 4
lea ecx, [ebp - 0x54]
push ecx
push eax
push str._ls._ls
lea ecx, [ebp - 0x8c]
call fcn.1002d119
add esp, 0xc
cmp dword [ebp - 0x74], edi
mov edi, dword [ebp - 0x88]
jae 0x100172ac
lea edi, [ebp - 0x88]
lea esi, [ebp - 0x94]
call fcn.10018655
cmp dword [eax + 0x18], 8
jb 0x100172c2
mov eax, dword [eax + 4]
jmp 0x100172c5
add eax, 4
xor esi, esi
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push eax
call edi
cmp dword [ebp - 0x74], 8
mov eax, dword [ebp - 0x88]
jae 0x100172e4
lea eax, [ebp - 0x88]
push 4
push esi
push eax
call edi
push esi
push 1
lea esi, [ebp - 0x8c]
call fcn.100021e2
lea esi, [ebp - 0x94]
call fcn.100188e4
jmp 0x1001718d
lea eax, [ebx + 0x480]
push eax
call fcn.1002b0a4
lea edi, [ebx + 0x1180]
push edi
push str.delete_regedit:_ls
call fcn.1002fd9f
and dword [ebp - 0x5c], 0
pop ecx
xor eax, eax
pop ecx
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
push edi
mov esi, str.HKEY_LOCAL_MACHINE_
mov byte [ebp - 4], 1
call fcn.1002d073
test eax, eax
je 0x10017352
mov edi, reloc.WS2_32.dll_bind
jmp 0x1001736a
push edi
mov esi, str.HKEY_USERS_
call fcn.1002d073
test eax, eax
je 0x1001742f
mov edi, reloc.WS2_32.dll_closesocket
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebx + eax*2 + 0x1180]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.100021bd
cmp byte [ebx + 0x1988], 0
je 0x100173a0
cmp dword [ebp - 0x58], 8
mov eax, dword [ebp - 0x6c]
jae 0x10017397
lea eax, [ebp - 0x6c]
push 1
push 0x20119
jmp 0x100173ce
call fcn.1002b303
test eax, eax
mov eax, dword [ebp - 0x6c]
je 0x100173be
cmp dword [ebp - 0x58], 8
jae 0x100173b5
lea eax, [ebp - 0x6c]
push 1
push 0x20219
jmp 0x100173ce
cmp dword [ebp - 0x58], 8
jae 0x100173c7
lea eax, [ebp - 0x6c]
push 1
push 0x20019
push eax
push edi
lea edi, [ebp - 0x94]
call fcn.1000fc3c
cmp dword [ebp - 0x90], 0
je 0x100173fc
push 0x10055d50
push dword [ebp - 0x90]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp dword [ebp - 0x90], 0
mov dword [ebp - 0x94], vtable.RegHandleHolder.0
je 0x10017414
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 1
lea esi, [ebp - 0x70]
call fcn.100021e2
lea eax, [ebp - 0xc8]
call fcn.10018343
mov al, 1
jmp 0x10017455
push edi
push str.invalid_key_path:_ls
call fcn.1002fd9f
pop ecx
pop ecx
push 0
push 1
lea esi, [ebp - 0x70]
call fcn.100021e2
lea eax, [ebp - 0xc8]
call fcn.10018343
xor al, al
call fcn.100375dd
ret