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

Disassembly:
push 0xbc
mov eax, 0x100597e5
call fcn.100418da
lea esi, [ebx + 0x480]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001acf5
test al, 0x10
je 0x1001acf5
lea eax, [ebp - 0xc8]
push eax
call fcn.1001bbc6
xor eax, eax
push eax
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc8]
push eax
push 0x1001acfd
push 1
push esi
call fcn.1003149b
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.1000cca9
test al, al
je 0x1001abaa
call fcn.1001be8c
push 8
pop edi
cmp dword [eax + 0x18], edi
jb 0x1001aa72
mov eax, dword [eax + 4]
jmp 0x1001aa75
add eax, 4
push eax
push str.delete_file:_ls
call fcn.10036ea1
pop ecx
pop ecx
lea esi, [ebp - 0x94]
call fcn.1001be8c
cmp dword [eax + 0x18], edi
jb 0x1001aa97
mov eax, dword [eax + 4]
jmp 0x1001aa9a
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1001ab9a
push 0x3e
push eax
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x52]
push eax
call fcn.10042870
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.1001be8c
cmp dword [eax + 0x18], edi
jb 0x1001ab22
mov eax, dword [eax + 4]
jmp 0x1001ab25
add eax, 4
lea ecx, [ebp - 0x54]
push ecx
push eax
push str._ls._ls
lea ecx, [ebp - 0x8c]
call fcn.1003416b
add esp, 0xc
cmp dword [ebp - 0x74], edi
mov edi, dword [ebp - 0x88]
jae 0x1001ab4e
lea edi, [ebp - 0x88]
lea esi, [ebp - 0x94]
call fcn.1001be8c
cmp dword [eax + 0x18], 8
jb 0x1001ab64
mov eax, dword [eax + 4]
jmp 0x1001ab67
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 0x1001ab86
lea eax, [ebp - 0x88]
push 4
push esi
push eax
call edi
push esi
push 1
lea esi, [ebp - 0x8c]
call fcn.1000233f
lea esi, [ebp - 0x94]
call fcn.1001bf49
jmp 0x1001aa2f
lea eax, [ebx + 0x480]
push eax
call fcn.10031eb5
lea edi, [ebx + 0x1180]
push edi
push str.delete_regedit:_ls
call fcn.10036ea1
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.100340c5
test eax, eax
je 0x1001abf4
mov edi, reloc.WS2_32.dll_bind
jmp 0x1001ac0c
push edi
mov esi, str.HKEY_USERS_
call fcn.100340c5
test eax, eax
je 0x1001acd1
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.1000231a
cmp byte [ebx + 0x1988], 0
je 0x1001ac42
cmp dword [ebp - 0x58], 8
mov eax, dword [ebp - 0x6c]
jae 0x1001ac39
lea eax, [ebp - 0x6c]
push 1
push 0x20119
jmp 0x1001ac70
call fcn.10032114
test eax, eax
mov eax, dword [ebp - 0x6c]
je 0x1001ac60
cmp dword [ebp - 0x58], 8
jae 0x1001ac57
lea eax, [ebp - 0x6c]
push 1
push 0x20219
jmp 0x1001ac70
cmp dword [ebp - 0x58], 8
jae 0x1001ac69
lea eax, [ebp - 0x6c]
push 1
push 0x20019
push eax
push edi
lea edi, [ebp - 0x94]
call fcn.10012376
cmp dword [ebp - 0x90], 0
je 0x1001ac9e
push 0x10061dc0
push dword [ebp - 0x90]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp dword [ebp - 0x90], 0
mov dword [ebp - 0x94], vtable.RegHandleHolder.0
je 0x1001acb6
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 1
lea esi, [ebp - 0x70]
call fcn.1000233f
lea eax, [ebp - 0xc8]
call fcn.1001bc03
mov al, 1
jmp 0x1001acf7
push edi
push str.invalid_key_path:_ls
call fcn.10036ea1
pop ecx
pop ecx
push 0
push 1
lea esi, [ebp - 0x70]
call fcn.1000233f
lea eax, [ebp - 0xc8]
call fcn.1001bc03
xor al, al
call fcn.1004195d
ret