Function at 0x4078ca
Capabilities:
Check os version
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa79f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2e4
lea ecx, [ebp - 0x1b4]
call fcn.004080a0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x110]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x1a8], 0x94
lea ecx, [ebp - 0x1a8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x1a4], 5
jne 0x40795c
cmp dword [ebp - 0x1a0], 2
jne 0x40795c
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1b4]
call fcn.004080d0
mov eax, dword [ebp - 0x2cc]
jmp 0x407bd1
push ecx
mov ecx, esp
mov dword [ebp - 0x2d0], esp
push 0xde
call fcn.00408080
push ecx
mov ecx, esp
mov dword [ebp - 0x2d4], esp
push str.FIXREG
call fcn.00404390
lea ecx, [ebp - 0x1b4]
call fcn.004080f0
lea ecx, [ebp - 0x1b4]
call fcn.00408180
mov dword [ebp - 0x2c0], eax
lea ecx, [ebp - 0x1b4]
call fcn.00408160
mov dword [ebp - 0x114], eax
mov edx, dword [ebp - 0x114]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x2d8], eax
mov eax, dword [ebp - 0x2d8]
mov dword [ebp - 0x2c4], eax
mov dword [ebp - 0x1ac], 0
jmp 0x4079eb
mov ecx, dword [ebp - 0x1ac]
add ecx, 1
mov dword [ebp - 0x1ac], ecx
mov edx, dword [ebp - 0x1ac]
cmp edx, dword [ebp - 0x114]
jae 0x407a17
mov eax, dword [ebp - 0x2c4]
add eax, dword [ebp - 0x1ac]
mov ecx, dword [ebp - 0x2c0]
add ecx, dword [ebp - 0x1ac]
mov dl, byte [ecx]
mov byte [eax], dl
jmp 0x4079dc
push str.360fixreg.reg
push 0x104
lea eax, [ebp - 0x110]
push eax
call fcn.00407f00
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x2c8], eax
cmp dword [ebp - 0x2c8], 0xffffffff
jne 0x407a9d
mov edx, dword [ebp - 0x2c4]
mov dword [ebp - 0x2dc], edx
mov eax, dword [ebp - 0x2dc]
push eax
call fcn.004a90a8
add esp, 4
mov dword [ebp - 0x2e0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1b4]
call fcn.004080d0
mov eax, dword [ebp - 0x2e0]
jmp 0x407bd1
push 0
lea ecx, [ebp - 0x2bc]
push ecx
mov edx, dword [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x2c4]
push eax
mov ecx, dword [ebp - 0x2c8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x407b14
mov edx, dword [ebp - 0x2c8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2c4]
mov dword [ebp - 0x2e4], eax
mov ecx, dword [ebp - 0x2e4]
push ecx
call fcn.004a90a8
add esp, 4
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1b4]
call fcn.004080d0
mov eax, dword [ebp - 0x2e8]
jmp 0x407bd1
mov edx, dword [ebp - 0x2c8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2c8], 0xffffffff
lea ecx, [ebp - 0x1b4]
call fcn.004081a0
mov eax, dword [ebp - 0x2c4]
mov dword [ebp - 0x2ec], eax
mov ecx, dword [ebp - 0x2ec]
push ecx
call fcn.004a90a8
add esp, 4
push 0x104
lea edx, [ebp - 0x2b8]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str._regedit.exe__s
push 0x104
lea eax, [ebp - 0x2b8]
push eax
call fcn.00407f00
lea ecx, [ebp - 0x110]
push ecx
push 0x104
lea edx, [ebp - 0x2b8]
push edx
call fcn.00407f00
push 0
lea eax, [ebp - 0x2b8]
push eax
call fcn.0041b614
add esp, 8
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x2f0], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1b4]
call fcn.004080d0
mov eax, dword [ebp - 0x2f0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret