Function at 0x408e68
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x408e70
push ecx
push ebx
push esi
push edi
mov edi, eax
mov esi, dword [ebp + 8]
add esi, 0xfffffffc
xor eax, eax
push ebp
push 0x40914b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi]
cmp byte [eax], 0x22
jne 0x408ee4
mov eax, esi
mov ecx, 1
mov edx, 1
call fcn.004042e4
mov edx, dword [esi]
mov eax, 0x409164
call fcn.0040432c
mov ebx, eax
test ebx, ebx
je 0x409130
lea eax, [ebp - 4]
push eax
mov ecx, ebx
dec ecx
mov eax, dword [esi]
mov edx, 1
call fcn.004042a4
push esi
lea edx, [ebx + 1]
mov eax, dword [esi]
mov ecx, 0x7fffffff
call fcn.004042a4
jmp 0x408efd
mov eax, esi
mov ecx, 1
mov edx, 1
call fcn.004042e4
lea eax, [ebp - 4]
call fcn.00403da8
lea edx, [ebp - 0x10]
mov eax, dword [esi]
call fcn.00408a84
mov edx, dword [ebp - 0x10]
mov eax, esi
call fcn.00403e40
cmp dword [esi], 0
je 0x409130
mov eax, dword [esi]
cmp byte [eax], 0x3d
jne 0x409130
mov eax, esi
mov ecx, 1
mov edx, 1
call fcn.004042e4
lea edx, [ebp - 0x14]
mov eax, dword [esi]
call fcn.00408a84
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.00403e40
mov eax, dword [esi]
cmp byte [eax], 0x22
jne 0x408f78
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
mov edx, edi
mov eax, dword [esi]
call fcn.00408c8c
pop ecx
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
call fcn.00408718
jmp 0x409130
mov ebx, 1
jmp 0x408f80
inc ebx
mov eax, dword [esi]
call fcn.00404044
cmp ebx, eax
jg 0x408f9d
mov eax, dword [esi]
mov al, byte [eax + ebx - 1]
sub al, 0x20
je 0x408f9d
sub al, 8
je 0x408f9d
sub al, 0x12
jne 0x408f7f
lea eax, [ebp - 8]
push eax
mov ecx, ebx
dec ecx
mov eax, dword [esi]
mov edx, 1
call fcn.004042a4
lea eax, [ebp - 0x20]
push eax
mov eax, dword [esi]
mov ecx, 0x7fffffff
mov edx, ebx
call fcn.004042a4
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.00408a84
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.00403e40
mov edx, 0x409170
mov eax, dword [ebp - 8]
call fcn.00408ab8
test eax, eax
jne 0x4090d5
mov edi, 3
mov eax, dword [esi]
cmp byte [eax], 0x28
jne 0x40907c
mov eax, esi
mov ecx, 1
mov edx, 1
call fcn.004042e4
lea eax, [ebp - 8]
call fcn.00403da8
mov ebx, 1
jmp 0x409036
lea eax, [ebp - 0x24]
mov edx, dword [esi]
mov dl, byte [edx + ebx - 1]
call fcn.00403f90
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 8]
call fcn.0040404c
inc ebx
mov eax, dword [esi]
call fcn.00404044
cmp ebx, eax
jg 0x40904a
mov eax, dword [esi]
cmp byte [eax + ebx - 1], 0x29
jne 0x40901c
mov eax, dword [ebp - 8]
call fcn.00408a2c
mov edi, eax
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebx + 1]
mov eax, dword [esi]
mov ecx, 0x7fffffff
call fcn.004042a4
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.00408b0c
mov edx, dword [ebp - 0x28]
mov eax, esi
call fcn.00403e40
mov eax, dword [esi]
cmp byte [eax], 0x3a
jne 0x409130
mov eax, esi
mov ecx, 1
mov edx, 1
call fcn.004042e4
lea edx, [ebp - 0xc]
mov eax, dword [esi]
call fcn.00408d88
mov eax, dword [ebp - 0xc]
call fcn.00404044
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404244
push eax
push edi
push 0
mov eax, dword [ebp - 4]
call fcn.00404244
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
jne 0x409130
jmp 0x409130
mov edx, 0x40917c
mov eax, dword [ebp - 8]
call fcn.00408ab8
test eax, eax
jne 0x409130
mov eax, dword [esi]
cmp byte [eax], 0x3a
jne 0x409130
mov eax, esi
mov ecx, 1
mov edx, 1
call fcn.004042e4
lea edx, [ebp - 0x34]
mov eax, dword [esi]
call fcn.00408a84
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov edx, 0x40918c
call fcn.00404090
mov eax, dword [ebp - 0x30]
call fcn.00408a2c
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
call fcn.00408744
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409152
lea eax, [ebp - 0x34]
mov edx, 0xd
call fcn.00403dcc
ret