Function at 0x419527
Capabilities:
Set registry value

Disassembly:
push ebx
mov edx, 0x11
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x41952d
call fcn.00435af0
mov edx, dword [esp + 0x4c]
lea ecx, [esp]
call fcn.0041d000
mov edx, dword [esp + 0x50]
lea ecx, [esp + 4]
call fcn.0041d000
mov edx, dword [esp + 0x54]
lea ecx, [esp + 8]
call fcn.0041d000
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0xc]
call fcn.0041d000
push dword [esp]
call fcn.00419949
push dword [esp + 0xc]
mov edx, 0x47f77a
pop ecx
call fcn.0041d320
je 0x4195de
cmp dword [0xa345c0], 0
je 0x4195c2
lea eax, [esp + 0x14]
push eax
mov ebx, dword [0xa345d8]
or ebx, 0xf003f
push ebx
push 0
push dword [0xa345a0]
push dword [0xa345bc]
call sub.ADVAPI32.DLL_RegOpenKeyExW
mov dword [esp + 0x10], eax
jmp 0x4195dc
lea eax, [esp + 0x14]
push eax
push dword [0xa345a0]
push dword [0xa345bc]
call sub.ADVAPI32.DLL_RegOpenKeyW
mov dword [esp + 0x10], eax
jmp 0x419643
lea eax, [esp + 0x1c]
push eax
push dword [0xa345bc]
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegConnectRegistryW
mov dword [esp + 0x18], eax
cmp dword [0xa345c0], 0
je 0x41962b
lea eax, [esp + 0x14]
push eax
mov ebx, dword [0xa345d8]
or ebx, 0xf003f
push ebx
push 0
push dword [0xa345a0]
push dword [esp + 0x2c]
call sub.ADVAPI32.DLL_RegOpenKeyExW
mov dword [esp + 0x10], eax
jmp 0x419643
lea eax, [esp + 0x14]
push eax
push dword [0xa345a0]
push dword [esp + 0x24]
call sub.ADVAPI32.DLL_RegOpenKeyW
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
and ebx, ebx
jne 0x419858
mov dword [esp + 0x20], 0x400
push edx
call fcn.00435950
pop edx
push eax
push edx
call fcn.00435950
pop edx
push eax
push dword [esp + 0x28]
call fcn.0041dcb0
lea eax, [esp + 0x28]
push eax
call fcn.004359f0
push dword [esp + 0x58]
mov ebx, 2
cmp ebx, dword [esp]
jne 0x4196bc
push dword [esp + 0xc]
call fcn.0041e250
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 0x41983e
mov ebx, 1
cmp ebx, dword [esp]
jne 0x4196fa
push dword [esp + 0xc]
call fcn.0041e250
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 0x41983e
mov ebx, 4
cmp ebx, dword [esp]
jne 0x41973b
push dword [esp + 0xc]
call fcn.0041df20
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 0x41983e
mov ebx, 3
cmp ebx, dword [esp]
jne 0x41983e
push dword [esp + 0xc]
call fcn.0041e250
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.00433d30
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0
jmp 0x41977b
mov ebx, dword [esp + 0x30]
dec ebx
cmp ebx, dword [esp + 0x38]
jl 0x419812
push edx
call fcn.00435950
pop edx
push eax
push edx
call fcn.00435950
pop edx
push eax
push 2
mov ebx, dword [esp + 0x44]
add ebx, ebx
inc ebx
push ebx
push dword [esp + 0x1c]
call fcn.0041de40
lea eax, [esp + 0x40]
push eax
call fcn.004359f0
push edx
call fcn.00435950
pop edx
push eax
push edx
call fcn.00435950
pop edx
push eax
mov edx, 0x47f672
push edx
call fcn.00435990
mov edx, dword [esp + 0x44]
push edx
call fcn.00435990
call fcn.0041d372
add dword [esp], edx
call fcn.0041df20
call fcn.0041d390
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.0041d2f0
inc dword [esp + 0x38]
jno 0x41977b
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.00433ef0
pop eax
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegCloseKey
mov dword [esp + 0x40], 1
mov eax, dword [esp + 0x40]
jmp 0x419871
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegCloseKey
mov dword [esp + 0x40], 0
mov eax, dword [esp + 0x40]
jmp 0x419871
push dword [esp + 0xc]
call fcn.00435b50
push dword [esp + 0x24]
call fcn.00435b50
push dword [esp + 0x38]
call fcn.00435b50
push dword [esp]
call fcn.00435b50
push dword [esp + 8]
call fcn.00435b50
push dword [esp + 4]
call fcn.00435b50
add esp, 0x44
pop ebx
ret 0x14