Function at 0x4222a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0xffffffff
mov eax, dword [ebp + 0x14]
push eax
call fcn.00414dc0
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp + 0x10], 1
je 0x4222d9
cmp dword [ebp + 0x10], 7
je 0x4222d9
cmp dword [ebp + 0x10], 2
jne 0x4223f1
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.004393f0
add esp, 4
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp + 0x10], 7
jne 0x4223bb
mov eax, dword [ebp - 8]
add eax, 5
push eax
call fcn.0043982d
add esp, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0043a1e0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov byte [ecx], 0
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 8]
mov byte [edx + 1], 0
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
test eax, eax
je 0x422394
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0xd
jne 0x42236d
mov eax, dword [ebp - 4]
add eax, 1
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004392f0
add esp, 8
jmp 0x422392
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0xa
jne 0x422389
mov ecx, dword [ebp - 4]
mov byte [ecx], 0
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x422392
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x422343
mov ecx, dword [ebp - 4]
mov byte [ecx], 0
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov byte [eax], 0
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0x10], 7
jne 0x4223ec
mov edx, dword [ebp - 0xc]
push edx
call fcn.004397f5
add esp, 4
jmp 0x4224cc
cmp dword [ebp + 0x10], 4
jne 0x422419
push 4
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x18], eax
jmp 0x4224cc
cmp dword [ebp + 0x10], 3
jne 0x4224cc
mov dword [ebp - 0x1c], 0x1000
mov ecx, dword [ebp - 0x1c]
add ecx, 0x10
push ecx
call fcn.0043982d
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 4]
movsx ecx, byte [eax + edx]
test ecx, ecx
je 0x42249e
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 4]
movsx ecx, byte [eax + edx]
test ecx, ecx
je 0x42249e
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x1c]
jae 0x42249e
mov eax, dword [ebp - 4]
push eax
call fcn.00413f00
add esp, 4
mov ecx, dword [ebp - 0x10]
mov byte [ecx], al
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
jmp 0x422448
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.004397f5
add esp, 4
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret