Function at 0x417060
Capabilities:
Check if file exists
Check os version
Create process on windows
Get file attributes
Persist via windows service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x63b7bb
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x74f8a0]
xor eax, esp
mov dword [esp + 0xe4], eax
push ebx
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x60]
push eax
mov dword [esp + 0x64], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41728b
cmp dword [esp + 0x70], 2
jne 0x41728b
cmp dword [esp + 0x64], 6
jb 0x4171e2
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x5c], ebx
mov word [esp + 0x58], cx
mov dword [esp + 0x100], ebx
mov eax, dword [0x754c5c]
cmp eax, ebx
jne 0x4170f3
mov eax, 0x754c60
push ebx
push str.Uninstall.exe
push eax
push 0x66fde0
lea ecx, [esp + 0x64]
call fcn.00402320
push 0x3c
lea edx, [esp + 0x1c]
push ebx
push edx
call fcn.00618760
mov eax, dword [esp + 0x60]
add esp, 0xc
mov dword [esp + 0x18], 0x3c
mov dword [esp + 0x1c], 0x40
mov dword [esp + 0x24], str.open
cmp eax, ebx
je 0x41713e
mov dword [esp + 0x28], eax
jmp 0x417146
lea ecx, [esp + 0x58]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 3
mov dword [esp + 0x38], ebx
cmp eax, ebx
jne 0x41715e
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4171c9
mov eax, dword [esp + 0x54]
cmp eax, ebx
jne 0x417176
lea eax, [esp + 0x58]
push ebx
push eax
mov ecx, esi
call fcn.00416d10
test al, al
je 0x4171c9
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], str._stopdriv
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4171c3
mov eax, dword [esp + 0x50]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x4171c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x100], 0xffffffff
lea ecx, [esp + 0x54]
call fcn.00401210
jmp 0x41728b
call fcn.004475d0
neg eax
sbb eax, eax
and eax, 0x100
lea ecx, [esp + 0x10]
push ecx
add eax, 0xf003f
push eax
xor ebx, ebx
push ebx
push str.SYSTEMCurrentControlSetServicesIDMTDI
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x417243
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0x18]
push edx
push 4
push ebx
push 0x672668
push eax
mov dword [esp + 0x2c], 3
call esi
mov ecx, dword [esp + 0x10]
push ecx
call edi
push ebx
lea edx, [esp + 0x14]
push edx
push ebx
push 0xf003f
push ebx
push 0x670984
push ebx
push 0x66fe18
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41728b
mov ecx, dword [esp + 0x10]
push 4
lea eax, [esp + 0x18]
push eax
push 4
push ebx
push str.AdvIntDriverEnabled2
push ecx
mov dword [esp + 0x2c], ebx
call esi
mov edx, dword [esp + 0x10]
push edx
call edi
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.0061807e
add esp, 0xf4
ret