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

Disassembly:
push 0xbc
mov eax, 0x1004f6f0
call fcn.10037d5a
lea esi, [ebx + 0x480]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10017a1b
test al, 0x10
je 0x10017a1b
lea eax, [ebp - 0xc8]
push eax
call fcn.100188ce
xor eax, eax
push eax
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc8]
push eax
push 0x10017a23
push 1
push esi
call fcn.1002ac0c
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.1000abe1
test al, al
je 0x100178d0
call fcn.10005b5c
push 8
pop edi
cmp dword [eax + 0x18], edi
jb 0x10017798
mov eax, dword [eax + 4]
jmp 0x1001779b
add eax, 4
push eax
push str.delete_file:_ls
call fcn.1003048c
pop ecx
pop ecx
lea esi, [ebp - 0x94]
call fcn.10005b5c
cmp dword [eax + 0x18], edi
jb 0x100177bd
mov eax, dword [eax + 4]
jmp 0x100177c0
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100178c0
push 0x3e
push eax
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x52]
push eax
call fcn.10038cf0
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.10005b5c
cmp dword [eax + 0x18], edi
jb 0x10017848
mov eax, dword [eax + 4]
jmp 0x1001784b
add eax, 4
lea ecx, [ebp - 0x54]
push ecx
push eax
push str._ls._ls
lea ecx, [ebp - 0x8c]
call fcn.1002d7c0
add esp, 0xc
cmp dword [ebp - 0x74], edi
mov edi, dword [ebp - 0x88]
jae 0x10017874
lea edi, [ebp - 0x88]
lea esi, [ebp - 0x94]
call fcn.10005b5c
cmp dword [eax + 0x18], 8
jb 0x1001788a
mov eax, dword [eax + 4]
jmp 0x1001788d
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 0x100178ac
lea eax, [ebp - 0x88]
push 4
push esi
push eax
call edi
push esi
push 1
lea esi, [ebp - 0x8c]
call fcn.100021ef
lea esi, [ebp - 0x94]
call fcn.10018e81
jmp 0x10017755
lea eax, [ebx + 0x480]
push eax
call fcn.1002b626
lea edi, [ebx + 0x1180]
push edi
push str.delete_regedit:_ls
call fcn.1003048c
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.1002d71a
test eax, eax
je 0x1001791a
mov edi, reloc.WS2_32.dll_bind
jmp 0x10017932
push edi
mov esi, str.HKEY_USERS_
call fcn.1002d71a
test eax, eax
je 0x100179f7
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.100021ca
cmp byte [ebx + 0x1988], 0
je 0x10017968
cmp dword [ebp - 0x58], 8
mov eax, dword [ebp - 0x6c]
jae 0x1001795f
lea eax, [ebp - 0x6c]
push 1
push 0x20119
jmp 0x10017996
call fcn.1002b885
test eax, eax
mov eax, dword [ebp - 0x6c]
je 0x10017986
cmp dword [ebp - 0x58], 8
jae 0x1001797d
lea eax, [ebp - 0x6c]
push 1
push 0x20219
jmp 0x10017996
cmp dword [ebp - 0x58], 8
jae 0x1001798f
lea eax, [ebp - 0x6c]
push 1
push 0x20019
push eax
push edi
lea edi, [ebp - 0x94]
call fcn.1000fe05
cmp dword [ebp - 0x90], 0
je 0x100179c4
push 0x10056d70
push dword [ebp - 0x90]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp dword [ebp - 0x90], 0
mov dword [ebp - 0x94], vtable.RegHandleHolder.0
je 0x100179dc
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 1
lea esi, [ebp - 0x70]
call fcn.100021ef
lea eax, [ebp - 0xc8]
call fcn.1001890b
mov al, 1
jmp 0x10017a1d
push edi
push str.invalid_key_path:_ls
call fcn.1003048c
pop ecx
pop ecx
push 0
push 1
lea esi, [ebp - 0x70]
call fcn.100021ef
lea eax, [ebp - 0xc8]
call fcn.1001890b
xor al, al
call fcn.10037ddd
ret