Function at 0x412b3a
Capabilities:
Set registry value

Disassembly:
push 0x24
mov eax, 0x433926
call fcn.0042e724
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x20], edi
mov eax, dword [esi + 0x44]
cmp eax, edi
jbe 0x412b59
mov eax, dword [esi + 0x40]
jmp 0x412b71
push 0x438a10
lea eax, [ebp - 0x28]
push eax
call fcn.00404084
mov dword [ebp - 4], edi
mov dword [ebp - 0x20], 1
mov eax, dword [eax]
sub eax, 0x10
call fcn.0040482d
lea ebx, [eax + 0x10]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], 2
test byte [ebp - 0x20], 1
je 0x412b99
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.00401053
cmp dword [ebx - 0xc], edi
jne 0x412bad
lea eax, [ebx - 0x10]
call fcn.00401053
xor al, al
jmp 0x412e82
push edi
lea eax, [ebp - 0x24]
push 0x43a320
push eax
mov dword [ebp - 0x18], edi
call fcn.00413ad1
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x18]
push ecx
push 0x2001f
push edi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov eax, dword [ebp - 0x24]
setne byte [ebp - 0xd]
add eax, 0xfffffff0
call fcn.00401053
cmp byte [ebp - 0xd], 0
jne 0x412b9e
push edi
lea eax, [ebp - 0x24]
push 0x43a394
push eax
call fcn.00413ad1
mov ecx, dword [ebx - 0xc]
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ecx + ecx + 2]
push ecx
push ebx
push 1
push edi
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov eax, dword [ebp - 0x24]
neg ebx
sbb bl, bl
inc bl
and bl, 1
add eax, 0xfffffff0
mov byte [ebp - 0xd], bl
call fcn.00401053
xor eax, eax
inc eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], eax
cmp dword [esi + 0x44], eax
jbe 0x412d63
mov eax, dword [ebp - 0x14]
lea ecx, [esi + 0x40]
call fcn.0041303a
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
mov ecx, dword [ebp - 0x1c]
inc dword [ebp - 0x14]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x44]
jb 0x412c46
mov eax, dword [ebp - 0x1c]
cmp eax, edi
jle 0x412d63
inc eax
lea ecx, [eax + eax]
mov dword [ebp - 0x24], ecx
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041b18b
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x412ca5
mov byte [ebp - 0xd], 0
mov bl, byte [ebp - 0xd]
jmp 0x412d63
push dword [ebp - 0x24]
push edi
push eax
call fcn.0041ca10
xor eax, eax
inc eax
add esp, 0xc
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], eax
cmp dword [esi + 0x44], eax
jbe 0x412d1d
mov eax, dword [ebp - 0x14]
lea ecx, [esi + 0x40]
call fcn.0041303a
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
lea ecx, [esi + 0x40]
call fcn.0041303a
mov ecx, dword [ebp - 0x2c]
add ecx, ecx
push ecx
push dword [eax]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
lea eax, [eax + ecx*2]
push eax
call fcn.0041ead0
mov eax, dword [ebp - 0x14]
add esp, 0xc
lea ecx, [esi + 0x40]
call fcn.0041303a
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
mov ecx, dword [ebp - 0x1c]
inc dword [ebp - 0x14]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x44]
jb 0x412cc0
push edi
lea eax, [ebp - 0x2c]
push 0x43a3b8
push eax
call fcn.00413ad1
mov eax, dword [eax]
add esp, 0xc
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push 7
push edi
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb al, al
inc al
and bl, al
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 0xd], bl
call fcn.00401053
push dword [ebp - 0x20]
call fcn.0041a939
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x412e75
push edi
lea eax, [ebp - 0x2c]
push 0x43a4c0
push eax
call fcn.00413ad1
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
push 0x2001f
push edi
push eax
push SysReAllocString
call esi
mov ebx, eax
mov eax, dword [ebp - 0x2c]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.00401053
test bl, bl
je 0x412df4
push edi
lea eax, [ebp - 0x24]
push 0x43a55c
push eax
mov dword [ebp - 0x2c], edi
call fcn.00413ad1
add esp, 0xc
push 4
lea ecx, [ebp - 0x2c]
push ecx
push 4
push edi
push dword [eax]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00401053
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
lea eax, [ebp - 0x2c]
push 0x43a578
push eax
call fcn.00413ad1
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
push 0x2001f
push edi
push eax
push SysReAllocString
call esi
mov ebx, eax
mov eax, dword [ebp - 0x2c]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.00401053
test bl, bl
je 0x412e72
push edi
lea eax, [ebp - 0x24]
push 0x43a604
push eax
mov dword [ebp - 0x2c], 1
call fcn.00413ad1
add esp, 0xc
push 4
lea ecx, [ebp - 0x2c]
push ecx
push 4
push edi
push dword [eax]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00401053
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, byte [ebp - 0xd]
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
call fcn.00401053
mov al, bl
call fcn.0042e7fc
ret