Function at 0x416569
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
mov eax, 0x5189ec
call fcn.00505774
mov dword [ebp - 0x2c], 6
mov word [ebp - 0x38], 0xc
xor edx, edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], SysStringLen
xor ecx, ecx
mov dword [ebp - 0x54], ecx
mov word [ebp - 0x38], 0x18
mov edx, str.HKEY_CLASSES_ROOT
lea eax, [ebp - 0xc]
call fcn.00512fa4
inc dword [ebp - 0x2c]
lea edx, [ebp - 0xc]
lea eax, [ebp + 8]
call fcn.005131f8
push eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00513124
pop ecx
test cl, cl
je 0x4165da
mov dword [ebp - 0x50], SysStringLen
jmp 0x416698
mov word [ebp - 0x38], 0x24
mov edx, str.HKEY_CURRENT_CONFIG
lea eax, [ebp - 0x10]
call fcn.00512fa4
inc dword [ebp - 0x2c]
lea edx, [ebp - 0x10]
lea eax, [ebp + 8]
call fcn.005131f8
push eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00513124
pop ecx
test cl, cl
je 0x41661a
mov dword [ebp - 0x50], reloc.OLEAUT32.DLL_SysFreeString
jmp 0x416698
mov word [ebp - 0x38], 0x30
mov edx, str.HKEY_CURRENT_USER
lea eax, [ebp - 0x14]
call fcn.00512fa4
inc dword [ebp - 0x2c]
lea edx, [ebp - 0x14]
lea eax, [ebp + 8]
call fcn.005131f8
push eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00513124
pop ecx
test cl, cl
je 0x41665a
mov dword [ebp - 0x50], SysStringLen
jmp 0x416698
mov word [ebp - 0x38], 0x3c
mov edx, str.HKEY_USERS
lea eax, [ebp - 0x18]
call fcn.00512fa4
inc dword [ebp - 0x2c]
lea edx, [ebp - 0x18]
lea eax, [ebp + 8]
call fcn.005131f8
push eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00513124
pop ecx
test cl, cl
je 0x416698
mov dword [ebp - 0x50], SysStringLen
mov word [ebp - 0x38], 0x48
lea eax, [ebp - 4]
call fcn.0040af7c
inc dword [ebp - 0x2c]
mov word [ebp - 0x38], 0xc
mov word [ebp - 0x38], 0x54
lea eax, [ebp - 8]
call fcn.0040af7c
inc dword [ebp - 0x2c]
mov word [ebp - 0x38], 0xc
lea edx, [ebp + 0xc]
lea eax, [ebp - 4]
call fcn.0051314c
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 4]
call fcn.0040adf4
push eax
push dword [ebp - 0x50]
call sub.ADVAPI32.DLL_RegCreateKeyW
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x416779
xor eax, eax
push eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00513124
dec dword [ebp - 0x2c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00513124
dec dword [ebp - 0x2c]
dec dword [ebp - 0x2c]
lea eax, [ebp + 0x18]
mov edx, 2
call fcn.00513124
dec dword [ebp - 0x2c]
lea eax, [ebp + 0x14]
mov edx, 2
call fcn.00513124
dec dword [ebp - 0x2c]
lea eax, [ebp + 0x10]
mov edx, 2
call fcn.00513124
dec dword [ebp - 0x2c]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00513124
dec dword [ebp - 0x2c]
lea eax, [ebp + 8]
mov edx, 2
call fcn.00513124
pop eax
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
jmp 0x416a8a
lea eax, [ebp + 0x10]
call fcn.0040afac
test al, al
jne 0x416a09
lea edx, [ebp + 0x10]
lea eax, [ebp - 4]
call fcn.0051314c
mov dword [ebp - 0x58], 1
xor edx, edx
mov dword [ebp - 0x5c], edx
xor ecx, ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
xor eax, eax
mov dword [ebp - 0x6c], eax
mov word [ebp - 0x38], 0x60
mov edx, str.REG_SZ
lea eax, [ebp - 0x1c]
call fcn.00512fa4
inc dword [ebp - 0x2c]
lea edx, [ebp - 0x1c]
lea eax, [ebp + 0x14]
call fcn.005131f8
push eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00513124
pop ecx
test cl, cl
je 0x416817
lea edx, [ebp + 0x18]
lea eax, [ebp - 8]
call fcn.0051314c
lea eax, [ebp - 8]
call fcn.00410c00
add eax, eax
mov dword [ebp - 0x60], eax
lea eax, [ebp - 8]
call fcn.0040adf4
mov dword [ebp - 0x6c], eax
jmp 0x41695a
mov word [ebp - 0x38], 0x6c
mov edx, str.REG_DWORD
lea eax, [ebp - 0x20]
call fcn.00512fa4
inc dword [ebp - 0x2c]
lea edx, [ebp - 0x20]
lea eax, [ebp + 0x14]
call fcn.005131f8
push eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00513124
pop ecx
test cl, cl
je 0x416872
mov dword [ebp - 0x58], 4
mov eax, dword [ebp + 0x18]
call fcn.00449e98
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], 4
lea edx, [ebp - 0x5c]
mov dword [ebp - 0x6c], edx
jmp 0x41695a
mov word [ebp - 0x38], 0x78
mov edx, str.REG_QWORD
lea eax, [ebp - 0x24]
call fcn.00512fa4
inc dword [ebp - 0x2c]
lea edx, [ebp - 0x24]
lea eax, [ebp + 0x14]
call fcn.005131f8
push eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00513124
pop ecx
test cl, cl
je 0x4168d4
mov dword [ebp - 0x58], 0xb
push 0
push 0
mov eax, dword [ebp + 0x18]
call fcn.00449f0c
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x60], 8
lea edx, [ebp - 0x68]
mov dword [ebp - 0x6c], edx
jmp 0x41695a
xor eax, eax
push eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00513124
dec dword [ebp - 0x2c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00513124
dec dword [ebp - 0x2c]
dec dword [ebp - 0x2c]
lea eax, [ebp + 0x18]
mov edx, 2
call fcn.00513124
dec dword [ebp - 0x2c]
lea eax, [ebp + 0x14]
mov edx, 2
call fcn.00513124
dec dword [ebp - 0x2c]
lea eax, [ebp + 0x10]
mov edx, 2
call fcn.00513124
dec dword [ebp - 0x2c]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00513124
dec dword [ebp - 0x2c]
lea eax, [ebp + 8]
mov edx, 2
call fcn.00513124
pop eax
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
jmp 0x416a8a
push dword [ebp - 0x60]
push dword [ebp - 0x6c]
push dword [ebp - 0x58]
push 0
lea eax, [ebp - 4]
call fcn.0040adf4
push eax
push dword [ebp - 0x54]
call sub.ADVAPI32.DLL_RegSetValueExW
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x416a09
xor eax, eax
push eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00513124
dec dword [ebp - 0x2c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00513124
dec dword [ebp - 0x2c]
dec dword [ebp - 0x2c]
lea eax, [ebp + 0x18]
mov edx, 2
call fcn.00513124
dec dword [ebp - 0x2c]
lea eax, [ebp + 0x14]
mov edx, 2
call fcn.00513124
dec dword [ebp - 0x2c]
lea eax, [ebp + 0x10]
mov edx, 2
call fcn.00513124
dec dword [ebp - 0x2c]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00513124
dec dword [ebp - 0x2c]
lea eax, [ebp + 8]
mov edx, 2
call fcn.00513124
pop eax
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
jmp 0x416a8a
mov al, 1
push eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00513124
dec dword [ebp - 0x2c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00513124
dec dword [ebp - 0x2c]
dec dword [ebp - 0x2c]
lea eax, [ebp + 0x18]
mov edx, 2
call fcn.00513124
dec dword [ebp - 0x2c]
lea eax, [ebp + 0x14]
mov edx, 2
call fcn.00513124
dec dword [ebp - 0x2c]
lea eax, [ebp + 0x10]
mov edx, 2
call fcn.00513124
dec dword [ebp - 0x2c]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00513124
dec dword [ebp - 0x2c]
lea eax, [ebp + 8]
mov edx, 2
call fcn.00513124
pop eax
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret 0x14