Function at 0x417662
Capabilities:
Set registry value

Disassembly:
push ebx
mov edx, 0x11
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x417668
call fcn.00430eb0
mov edx, dword [esp + 0x4c]
lea ecx, [esp]
call fcn.0041b000
mov edx, dword [esp + 0x50]
lea ecx, [esp + 4]
call fcn.0041b000
mov edx, dword [esp + 0x54]
lea ecx, [esp + 8]
call fcn.0041b000
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0xc]
call fcn.0041b000
push dword [esp]
call fcn.00417a6f
push dword [esp + 0xc]
mov edx, 0x46f66c
pop ecx
call fcn.00430dc0
je 0x417719
cmp dword [0x9e59f4], 0
je 0x4176fd
lea eax, [esp + 0x14]
push eax
mov ebx, dword [0x9e5a0c]
or ebx, 0xf003f
push ebx
push 0
push dword [0x9e59d4]
push dword [0x9e59f0]
call sub.ADVAPI32.DLL_RegOpenKeyExW
mov dword [esp + 0x10], eax
jmp 0x417717
lea eax, [esp + 0x14]
push eax
push dword [0x9e59d4]
push dword [0x9e59f0]
call sub.ADVAPI32.DLL_RegOpenKeyW
mov dword [esp + 0x10], eax
jmp 0x41777e
lea eax, [esp + 0x1c]
push eax
push dword [0x9e59f0]
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegConnectRegistryW
mov dword [esp + 0x18], eax
cmp dword [0x9e59f4], 0
je 0x417766
lea eax, [esp + 0x14]
push eax
mov ebx, dword [0x9e5a0c]
or ebx, 0xf003f
push ebx
push 0
push dword [0x9e59d4]
push dword [esp + 0x2c]
call sub.ADVAPI32.DLL_RegOpenKeyExW
mov dword [esp + 0x10], eax
jmp 0x41777e
lea eax, [esp + 0x14]
push eax
push dword [0x9e59d4]
push dword [esp + 0x24]
call sub.ADVAPI32.DLL_RegOpenKeyW
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
and ebx, ebx
jne 0x417983
mov dword [esp + 0x20], 0x400
call fcn.00430c90
push eax
call fcn.00430c90
push eax
push dword [esp + 0x28]
call fcn.0041b390
lea eax, [esp + 0x28]
push eax
call fcn.00430d30
push dword [esp + 0x58]
mov ebx, 2
cmp ebx, dword [esp]
jne 0x4177f3
push dword [esp + 0xc]
call fcn.0041ba00
mov ebx, eax
add ebx, ebx
inc ebx
push ebx
mov eax, dword [esp + 0x10]
push eax
push 2
push 0
push dword [esp + 0x18]
push dword [esp + 0x2c]
call sub.ADVAPI32.DLL_RegSetValueExW
mov dword [esp + 0x14], eax
jmp 0x417969
mov ebx, 1
cmp ebx, dword [esp]
jne 0x417831
push dword [esp + 0xc]
call fcn.0041ba00
mov ebx, eax
add ebx, ebx
inc ebx
push ebx
mov eax, dword [esp + 0x10]
push eax
push 1
push 0
push dword [esp + 0x18]
push dword [esp + 0x2c]
call sub.ADVAPI32.DLL_RegSetValueExW
mov dword [esp + 0x14], eax
jmp 0x417969
mov ebx, 4
cmp ebx, dword [esp]
jne 0x417872
push dword [esp + 0xc]
call fcn.0041b600
mov dword [esp + 0x2c], eax
push 4
lea eax, [esp + 0x30]
push eax
push 4
push 0
push dword [esp + 0x18]
push dword [esp + 0x2c]
call sub.ADVAPI32.DLL_RegSetValueExW
mov dword [esp + 0x14], eax
jmp 0x417969
mov ebx, 3
cmp ebx, dword [esp]
jne 0x417969
push dword [esp + 0xc]
call fcn.0041ba00
mov ebx, eax
mov eax, ebx
mov ecx, 2
cdq
idiv ecx
mov ebx, eax
mov dword [esp + 0x30], ebx
push dword [esp + 0x30]
call fcn.0042fda0
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0
mov ebx, dword [esp + 0x30]
dec ebx
cmp ebx, dword [esp + 0x38]
jl 0x41793d
call fcn.00430c90
push eax
call fcn.00430c90
push eax
push 2
mov ebx, dword [esp + 0x44]
add ebx, ebx
inc ebx
push ebx
push dword [esp + 0x1c]
call fcn.0041b520
lea eax, [esp + 0x40]
push eax
call fcn.00430d30
call fcn.00430c90
push eax
call fcn.00430c90
push eax
mov edx, 0x46f57a
call fcn.00430cd0
mov edx, dword [esp + 0x44]
call fcn.00430cd0
call fcn.00430e42
add dword [esp], edx
call fcn.0041b600
call fcn.00430e60
mov dword [esp + 0x40], eax
push dword [esp + 0x40]
mov ebx, dword [esp + 0x38]
add ebx, dword [esp + 0x3c]
push ebx
pop eax
call fcn.0042ffc0
inc dword [esp + 0x38]
jno 0x4178b0
push dword [esp + 0x30]
push dword [esp + 0x38]
push 3
push 0
push dword [esp + 0x18]
push dword [esp + 0x2c]
call sub.ADVAPI32.DLL_RegSetValueExW
mov dword [esp + 0x14], eax
push dword [esp + 0x34]
call fcn.0042ff70
pop eax
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegCloseKey
mov dword [esp + 0x40], 1
mov eax, dword [esp + 0x40]
jmp 0x41799c
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegCloseKey
mov dword [esp + 0x40], 0
mov eax, dword [esp + 0x40]
jmp 0x41799c
push dword [esp + 0xc]
call fcn.00430f50
push dword [esp + 0x24]
call fcn.00430f50
push dword [esp + 0x38]
call fcn.00430f50
push dword [esp]
call fcn.00430f50
push dword [esp + 8]
call fcn.00430f50
push dword [esp + 4]
call fcn.00430f50
add esp, 0x44
pop ebx
ret 0x14