Function at 0x407a3a
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a5c0f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2e4
lea ecx, [ebp - 0x1b4]
call fcn.00408230
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 0x407acc
cmp dword [ebp - 0x1a0], 2
jne 0x407acc
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1b4]
call fcn.00408260
mov eax, dword [ebp - 0x2cc]
jmp 0x407d41
push ecx
mov ecx, esp
mov dword [ebp - 0x2d0], esp
push 0xde
call fcn.00408210
push ecx
mov ecx, esp
mov dword [ebp - 0x2d4], esp
push str.FIXREG
call fcn.00404500
lea ecx, [ebp - 0x1b4]
call fcn.00408280
lea ecx, [ebp - 0x1b4]
call fcn.00408310
mov dword [ebp - 0x2c0], eax
lea ecx, [ebp - 0x1b4]
call fcn.004082f0
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 0x407b5b
mov ecx, dword [ebp - 0x1ac]
add ecx, 1
mov dword [ebp - 0x1ac], ecx
mov edx, dword [ebp - 0x1ac]
cmp edx, dword [ebp - 0x114]
jae 0x407b87
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 0x407b4c
push str.360fixreg.reg
push 0x104
lea eax, [ebp - 0x110]
push eax
call fcn.00408090
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea ecx, [ebp - 0x110]
push ecx
call dword [0x54299c]
mov dword [ebp - 0x2c8], eax
cmp dword [ebp - 0x2c8], 0xffffffff
jne 0x407c0d
mov edx, dword [ebp - 0x2c4]
mov dword [ebp - 0x2dc], edx
mov eax, dword [ebp - 0x2dc]
push eax
call fcn.004a4518
add esp, 4
mov dword [ebp - 0x2e0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1b4]
call fcn.00408260
mov eax, dword [ebp - 0x2e0]
jmp 0x407d41
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 [0x542994]
test eax, eax
jne 0x407c84
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.004a4518
add esp, 4
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1b4]
call fcn.00408260
mov eax, dword [ebp - 0x2e8]
jmp 0x407d41
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.00408330
mov eax, dword [ebp - 0x2c4]
mov dword [ebp - 0x2ec], eax
mov ecx, dword [ebp - 0x2ec]
push ecx
call fcn.004a4518
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.00408090
lea ecx, [ebp - 0x110]
push ecx
push 0x104
lea edx, [ebp - 0x2b8]
push edx
call fcn.00408090
push 0
lea eax, [ebp - 0x2b8]
push eax
call fcn.0041ad54
add esp, 8
lea ecx, [ebp - 0x110]
push ecx
call dword [0x542978]
mov dword [ebp - 0x2f0], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1b4]
call fcn.00408260
mov eax, dword [ebp - 0x2f0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret