Function at 0x401160
Capabilities:
Check if file exists
Delete file
Delete registry value
Get common file path
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x5363de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b0
mov eax, dword [0x5ab980]
mov dword [esp + 4], eax
lea ecx, [esp + 0xa8]
push 0x103
push ecx
mov dword [esp + 0x1c0], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4011d1
lea ecx, [esp + 4]
mov dword [esp + 0x1b8], 0xffffffff
call fcn.005128e4
xor eax, eax
mov ecx, dword [esp + 0x1b0]
mov dword fs:[0], ecx
add esp, 0x1bc
ret
push ebx
push esi
lea edx, [esp + 0xb0]
push edi
push edx
lea ecx, [esp + 0x14]
call fcn.00512a6d
lea eax, [esp + 0x10]
push eax
call fcn.0041f9c0
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0x24]
add esp, 4
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea edx, [esp + 0x10]
push str.vf9485.exe
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00512b79
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call esi
test eax, eax
lea ecx, [esp + 0xc]
sete bl
call fcn.005128e4
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test bl, bl
je 0x4012eb
call edi
cmp eax, 2
je 0x4012eb
push 0x5b0738
lea ecx, [esp + 0x10]
call fcn.00512952
push 0x596258
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c8], 1
call fcn.00512952
lea ecx, [esp + 0x10]
push str.vf9485.exe
lea edx, [esp + 0x18]
push ecx
push edx
mov byte [esp + 0x1d0], 2
call fcn.00512b79
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x1c]
push edx
push ecx
push eax
mov byte [esp + 0x1d4], 3
call fcn.00420980
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x1c4], 2
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x1c4], 1
call fcn.005128e4
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c4], 0
call fcn.005128e4
lea edx, [esp + 0x10]
push str.va49679.exe
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00512b79
mov eax, dword [eax]
push eax
call esi
test eax, eax
lea ecx, [esp + 0x14]
sete bl
call fcn.005128e4
test bl, bl
je 0x4013b8
call edi
cmp eax, 2
je 0x4013b8
push 0x5b0738
lea ecx, [esp + 0x1c]
call fcn.00512952
push 0x596258
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c8], 4
call fcn.00512952
lea ecx, [esp + 0x10]
push str.va49679.exe
lea edx, [esp + 0x18]
mov bl, 5
push ecx
push edx
mov byte [esp + 0x1d0], bl
call fcn.00512b79
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x10]
push edx
push ecx
push eax
mov byte [esp + 0x1d4], 6
call fcn.00420980
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x1c4], bl
call fcn.005128e4
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c4], 4
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x1c4], 0
call fcn.005128e4
lea edx, [esp + 0x10]
push str.vf38574.dll
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00512b79
mov eax, dword [eax]
push eax
call esi
test eax, eax
lea ecx, [esp + 0x14]
sete bl
call fcn.005128e4
test bl, bl
je 0x401485
call edi
cmp eax, 2
je 0x401485
push 0x5b0738
lea ecx, [esp + 0x1c]
call fcn.00512952
push 0x596258
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c8], 7
call fcn.00512952
lea ecx, [esp + 0x10]
push str.vf38574.dll
lea edx, [esp + 0x18]
mov bl, 8
push ecx
push edx
mov byte [esp + 0x1d0], bl
call fcn.00512b79
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x10]
push edx
push ecx
push eax
mov byte [esp + 0x1d4], 9
call fcn.00420980
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x1c4], bl
call fcn.005128e4
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c4], 7
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x1c4], 0
call fcn.005128e4
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x1c]
push edx
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], 0
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4014ce
mov eax, dword [esp + 0x1c]
push 0x59620c
push eax
call edi
mov ecx, dword [esp + 0x1c]
push ecx
call ebx
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push edx
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push bind
call esi
test eax, eax
jne 0x401505
mov eax, dword [esp + 0x1c]
push 0x59620c
push eax
call edi
mov ecx, dword [esp + 0x1c]
push ecx
call ebx
push str.PCR4_LF0001
call fcn.00401950
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c4], 0xffffffff
call fcn.005128e4
mov ecx, dword [esp + 0x1bc]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1bc
ret