Function at 0x401e05
Capabilities:
Set registry value

Disassembly:
push ebx
mov edx, 0x11
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x401e0b
mov edx, dword [esp + 0x4c]
lea ecx, [esp]
call fcn.00403000
mov edx, dword [esp + 0x50]
lea ecx, [esp + 4]
call fcn.00403000
mov edx, dword [esp + 0x54]
lea ecx, [esp + 8]
call fcn.00403000
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0xc]
call fcn.00403000
push dword [esp]
call fcn.0040217d
push dword [esp + 0xc]
mov edx, 0x4060dc
pop ecx
call fcn.004030b0
je 0x401eb7
cmp dword [0x406df4], 0
je 0x401e9b
lea eax, [esp + 0x14]
push eax
mov ebx, dword [0x406df8]
or ebx, 0xf003f
push ebx
push 0
push dword [0x406de4]
push dword [0x406df0]
call sub.ADVAPI32.dll_RegOpenKeyExW
mov dword [esp + 0x10], eax
jmp 0x401eb5
lea eax, [esp + 0x14]
push eax
push dword [0x406de4]
push dword [0x406df0]
call sub.ADVAPI32.dll_RegOpenKeyW
mov dword [esp + 0x10], eax
jmp 0x401f1c
lea eax, [esp + 0x1c]
push eax
push dword [0x406df0]
push dword [esp + 0x14]
call sub.ADVAPI32.dll_RegConnectRegistryW
mov dword [esp + 0x18], eax
cmp dword [0x406df4], 0
je 0x401f04
lea eax, [esp + 0x14]
push eax
mov ebx, dword [0x406df8]
or ebx, 0xf003f
push ebx
push 0
push dword [0x406de4]
push dword [esp + 0x2c]
call sub.ADVAPI32.dll_RegOpenKeyExW
mov dword [esp + 0x10], eax
jmp 0x401f1c
lea eax, [esp + 0x14]
push eax
push dword [0x406de4]
push dword [esp + 0x24]
call sub.ADVAPI32.dll_RegOpenKeyW
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
and ebx, ebx
jne 0x402128
mov dword [esp + 0x20], 0xff
push dword [0x406e20]
push dword [0x406e20]
push 0xff
call fcn.004031e0
lea eax, [esp + 0x28]
push eax
call fcn.00404ae0
push dword [esp + 0x58]
mov ebx, 2
cmp ebx, dword [esp]
jne 0x401f92
push dword [esp + 0xc]
call fcn.00403560
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 0x40210e
mov ebx, 1
cmp ebx, dword [esp]
jne 0x401fd0
push dword [esp + 0xc]
call fcn.00403560
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 0x40210e
mov ebx, 4
cmp ebx, dword [esp]
jne 0x402011
push dword [esp + 0xc]
call fcn.00403590
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 0x40210e
mov ebx, 3
cmp ebx, dword [esp]
jne 0x40210e
push dword [esp + 0xc]
call fcn.00403560
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.00404410
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0
jmp 0x402051
mov ebx, dword [esp + 0x30]
dec ebx
cmp ebx, dword [esp + 0x38]
jl 0x4020e2
push dword [0x406e20]
push dword [0x406e20]
push 2
mov ebx, dword [esp + 0x44]
add ebx, ebx
inc ebx
push ebx
push dword [esp + 0x1c]
call fcn.004036d0
lea eax, [esp + 0x40]
push eax
call fcn.00404ae0
push dword [0x406e20]
push dword [0x406e20]
mov edx, 0x4060b2
push edx
call fcn.00404b60
mov edx, dword [esp + 0x44]
push edx
call fcn.00404b60
mov edx, dword [0x406598]
add dword [esp], edx
call fcn.00403590
pop dword [0x406e20]
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.004030a0
inc dword [esp + 0x38]
jno 0x402051
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.00404430
pop eax
push dword [esp + 0x14]
call sub.ADVAPI32.dll_RegCloseKey
mov dword [esp + 0x40], 1
mov eax, dword [esp + 0x40]
jmp 0x402141
push dword [esp + 0x14]
call sub.ADVAPI32.dll_RegCloseKey
mov dword [esp + 0x40], 0
mov eax, dword [esp + 0x40]
jmp 0x402141
push dword [esp + 0xc]
call fcn.00404bc0
push dword [esp + 0x24]
call fcn.00404bc0
push dword [esp + 0x38]
call fcn.00404bc0
push dword [esp]
call fcn.00404bc0
push dword [esp + 8]
call fcn.00404bc0
push dword [esp + 4]
call fcn.00404bc0
add esp, 0x44
pop ebx
ret 0x14