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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab9bf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2e4
lea ecx, [ebp - 0x1b4]
call fcn.004081a0
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 0x407a5c
cmp dword [ebp - 0x1a0], 2
jne 0x407a5c
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1b4]
call fcn.004081d0
mov eax, dword [ebp - 0x2cc]
jmp 0x407cd1
push ecx
mov ecx, esp
mov dword [ebp - 0x2d0], esp
push 0xde
call fcn.00408180
push ecx
mov ecx, esp
mov dword [ebp - 0x2d4], esp
push 0x4c2ef0
call fcn.004044b0
lea ecx, [ebp - 0x1b4]
call fcn.004081f0
lea ecx, [ebp - 0x1b4]
call fcn.00408280
mov dword [ebp - 0x2c0], eax
lea ecx, [ebp - 0x1b4]
call fcn.00408260
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 0x407aeb
mov ecx, dword [ebp - 0x1ac]
add ecx, 1
mov dword [ebp - 0x1ac], ecx
mov edx, dword [ebp - 0x1ac]
cmp edx, dword [ebp - 0x114]
jae 0x407b17
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 0x407adc
push str.360fixreg.reg
push 0x104
lea eax, [ebp - 0x110]
push eax
call fcn.00408000
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea ecx, [ebp - 0x110]
push ecx
call dword [0x54b4dc]
mov dword [ebp - 0x2c8], eax
cmp dword [ebp - 0x2c8], 0xffffffff
jne 0x407b9d
mov edx, dword [ebp - 0x2c4]
mov dword [ebp - 0x2dc], edx
mov eax, dword [ebp - 0x2dc]
push eax
call fcn.004aa2c8
add esp, 4
mov dword [ebp - 0x2e0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1b4]
call fcn.004081d0
mov eax, dword [ebp - 0x2e0]
jmp 0x407cd1
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 [0x54b4d4]
test eax, eax
jne 0x407c14
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.004aa2c8
add esp, 4
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1b4]
call fcn.004081d0
mov eax, dword [ebp - 0x2e8]
jmp 0x407cd1
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.004082a0
mov eax, dword [ebp - 0x2c4]
mov dword [ebp - 0x2ec], eax
mov ecx, dword [ebp - 0x2ec]
push ecx
call fcn.004aa2c8
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.00408000
lea ecx, [ebp - 0x110]
push ecx
push 0x104
lea edx, [ebp - 0x2b8]
push edx
call fcn.00408000
push 0
lea eax, [ebp - 0x2b8]
push eax
call fcn.0041f084
add esp, 8
lea ecx, [ebp - 0x110]
push ecx
call dword [0x54b4b8]
mov dword [ebp - 0x2f0], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1b4]
call fcn.004081d0
mov eax, dword [ebp - 0x2f0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret