Function at 0x40797c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
lea eax, [ebp - 4]
push eax
push 0x6edd6a
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyA
test eax, eax
je 0x4079ee
lea edx, [ebp - 4]
push edx
push 0x6edd6f
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegCreateKeyA
test eax, eax
jne 0x4079ee
push 0x6edd74
lea ecx, [ebp - 0x110]
push ecx
call fcn.006712b0
add esp, 8
lea eax, [ebp - 0x110]
push eax
call fcn.0066ce38
pop ecx
inc eax
push eax
lea edx, [ebp - 0x110]
push edx
push 1
push 0
push 0x6edd7d
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegSetValueExA
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
xor ecx, ecx
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 4]
push eax
push 0x6edd7e
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyA
test eax, eax
jne 0x407a5b
lea edx, [ebp - 8]
push edx
push 0x6edd87
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegOpenKeyA
test eax, eax
jne 0x407a53
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
lea ecx, [ebp - 8]
push ecx
push 0x6edd93
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegOpenKeyA
test eax, eax
jne 0x407a53
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
mov dword [ebp - 0xc], 1
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x407c08
lea edx, [ebp - 4]
push edx
push 0x6edd99
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegCreateKeyA
test eax, eax
jne 0x407c08
push dword [0x833724]
push 0x6edda2
lea ecx, [ebp - 0x110]
push ecx
call fcn.006712b0
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
call fcn.0066ce38
pop ecx
inc eax
push eax
lea edx, [ebp - 0x110]
push edx
push 1
push 0
push 0x6eddae
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegSetValueExA
lea ecx, [ebp - 8]
push ecx
push 0x6eddaf
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCreateKeyA
test eax, eax
jne 0x407b1f
push 0x830318
push 0x6eddbb
lea eax, [ebp - 0x110]
push eax
call fcn.006712b0
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
call fcn.0066ce38
pop ecx
inc eax
push eax
lea ecx, [ebp - 0x110]
push ecx
push 1
push 0
push 0x6eddcf
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegSetValueExA
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
lea eax, [ebp - 8]
push eax
push 0x6eddd0
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCreateKeyA
test eax, eax
jne 0x407c00
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
lea edx, [ebp - 8]
push edx
push 0x6eddd6
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCreateKeyA
test eax, eax
jne 0x407c00
push 0x59d9
call fcn.00402b9c
pop ecx
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.006712b0
add esp, 8
lea eax, [ebp - 0x110]
push eax
call fcn.0066ce38
pop ecx
inc eax
push eax
lea edx, [ebp - 0x110]
push edx
push 1
push 0
push 0x6edde1
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegSetValueExA
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
lea ecx, [ebp - 8]
push ecx
push 0x6edde2
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCreateKeyA
test eax, eax
jne 0x407c00
push 0x830318
push 0x6eddf5
lea eax, [ebp - 0x110]
push eax
call fcn.006712b0
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
call fcn.0066ce38
pop ecx
inc eax
push eax
lea ecx, [ebp - 0x110]
push ecx
push 1
push 0
push 0x6ede0c
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegSetValueExA
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
mov esp, ebp
pop ebp
ret