Function at 0x414430
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x623b26
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x6cd400]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x6cd400]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp dword [esi + 0x14], 8
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x10], eax
jb 0x414481
mov eax, dword [esi]
jmp 0x414483
mov eax, esi
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
push 0xf023f
push 0
push 0
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [esp + 0x18], eax
test eax, eax
je 0x414520
mov ecx, dword [case.0x79a990.0]
test cl, 1
jne 0x4144eb
or ecx, 1
mov dword [case.0x79a990.0], ecx
mov dword [esp + 0x48], 0
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x18]
cmp dword [esi + 0x14], 8
jb 0x4144f3
mov esi, dword [esi]
push esi
push eax
mov eax, dword [0x6d66e8]
push 0x679c48
push 0x6796b0
push 0x6d66e8
call dword [eax + 0x24]
add esp, 0x14
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x41468d
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
mov dword [esp + 0x48], 1
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx]
mov eax, ecx
dec eax
je 0x414590
sub eax, 3
je 0x41456b
cmp dword [edi + 0x14], 8
jb 0x414565
mov edi, dword [edi]
push 4
push ebx
push ecx
jmp 0x4145d8
cmp dword [ebx + 0x14], 8
jb 0x414573
mov ebx, dword [ebx]
push ebx
call fcn.005eaf27
add esp, 4
cmp dword [edi + 0x14], 8
mov dword [esp + 0x34], eax
jb 0x414588
mov edi, dword [edi]
push 4
lea eax, [esp + 0x38]
jmp 0x4145d1
cmp dword [ebx + 0x14], 8
jb 0x414598
mov ebx, dword [ebx]
push 0
lea edx, [esp + 0x20]
mov ecx, ebx
call fcn.00499490
cmp dword [esp + 0x34], 0x10
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push 2
push eax
call fcn.005ead65
add esp, 0x10
cmp dword [edi + 0x14], 8
jb 0x4145cb
mov edi, dword [edi]
push 2
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
push dword [eax]
push 0
push edi
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x414651
call fcn.00401520
cmp dword [esi + 0x14], 8
lea ecx, [eax + 0xf8]
jb 0x4145fe
mov esi, dword [esi]
mov eax, dword [ecx]
push esi
push edi
push 0x679ce8
push 0x6796b0
push ecx
call dword [eax + 0x24]
add esp, 0x14
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x48], 0xffffffff
cmp dword [esp + 0x30], 0x10
jb 0x414638
push dword [esp + 0x1c]
call fcn.004c56c2
add esp, 4
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
xor al, al
jmp 0x41468d
mov dword [esp + 0x48], 0xffffffff
cmp dword [esp + 0x30], 0x10
jb 0x41466c
push dword [esp + 0x1c]
call fcn.004c56c2
add esp, 4
push dword [esp + 0x14]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.005e96ad
mov esp, ebp
pop ebp
ret 0x10