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

Disassembly:
push 0xbc
mov eax, 0x1005a1af
call fcn.100422ea
lea esi, [ebx + 0x480]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001accc
test al, 0x10
je 0x1001accc
lea eax, [ebp - 0xc8]
push eax
call fcn.1001bb9d
xor eax, eax
push eax
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc8]
push eax
push 0x1001acd4
push 1
push esi
call fcn.10031add
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.1000cd18
test al, al
je 0x1001ab81
call fcn.1001be63
push 8
pop edi
cmp dword [eax + 0x18], edi
jb 0x1001aa49
mov eax, dword [eax + 4]
jmp 0x1001aa4c
add eax, 4
push eax
push str.delete_file:_ls
call fcn.10037607
pop ecx
pop ecx
lea esi, [ebp - 0x94]
call fcn.1001be63
cmp dword [eax + 0x18], edi
jb 0x1001aa6e
mov eax, dword [eax + 4]
jmp 0x1001aa71
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1001ab71
push 0x3e
push eax
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x52]
push eax
call fcn.10043280
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.1001be63
cmp dword [eax + 0x18], edi
jb 0x1001aaf9
mov eax, dword [eax + 4]
jmp 0x1001aafc
add eax, 4
lea ecx, [ebp - 0x54]
push ecx
push eax
push str._ls._ls
lea ecx, [ebp - 0x8c]
call fcn.100347ad
add esp, 0xc
cmp dword [ebp - 0x74], edi
mov edi, dword [ebp - 0x88]
jae 0x1001ab25
lea edi, [ebp - 0x88]
lea esi, [ebp - 0x94]
call fcn.1001be63
cmp dword [eax + 0x18], 8
jb 0x1001ab3b
mov eax, dword [eax + 4]
jmp 0x1001ab3e
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 0x1001ab5d
lea eax, [ebp - 0x88]
push 4
push esi
push eax
call edi
push esi
push 1
lea esi, [ebp - 0x8c]
call fcn.10002370
lea esi, [ebp - 0x94]
call fcn.1001c17b
jmp 0x1001aa06
lea eax, [ebx + 0x480]
push eax
call fcn.100324f7
lea edi, [ebx + 0x1180]
push edi
push str.delete_regedit:_ls
call fcn.10037607
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.10034707
test eax, eax
je 0x1001abcb
mov edi, reloc.WS2_32.dll_bind
jmp 0x1001abe3
push edi
mov esi, str.HKEY_USERS_
call fcn.10034707
test eax, eax
je 0x1001aca8
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.1000234b
cmp byte [ebx + 0x1988], 0
je 0x1001ac19
cmp dword [ebp - 0x58], 8
mov eax, dword [ebp - 0x6c]
jae 0x1001ac10
lea eax, [ebp - 0x6c]
push 1
push 0x20119
jmp 0x1001ac47
call fcn.10032756
test eax, eax
mov eax, dword [ebp - 0x6c]
je 0x1001ac37
cmp dword [ebp - 0x58], 8
jae 0x1001ac2e
lea eax, [ebp - 0x6c]
push 1
push 0x20219
jmp 0x1001ac47
cmp dword [ebp - 0x58], 8
jae 0x1001ac40
lea eax, [ebp - 0x6c]
push 1
push 0x20019
push eax
push edi
lea edi, [ebp - 0x94]
call fcn.1001237f
cmp dword [ebp - 0x90], 0
je 0x1001ac75
push 0x10062dd0
push dword [ebp - 0x90]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp dword [ebp - 0x90], 0
mov dword [ebp - 0x94], vtable.RegHandleHolder.0
je 0x1001ac8d
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 1
lea esi, [ebp - 0x70]
call fcn.10002370
lea eax, [ebp - 0xc8]
call fcn.1001bbda
mov al, 1
jmp 0x1001acce
push edi
push str.invalid_key_path:_ls
call fcn.10037607
pop ecx
pop ecx
push 0
push 1
lea esi, [ebp - 0x70]
call fcn.10002370
lea eax, [ebp - 0xc8]
call fcn.1001bbda
xor al, al
call fcn.1004236d
ret