Function at 0x4083a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4083a8
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 0x408683
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi]
cmp byte [eax], 0x22
jne 0x40841c
mov eax, esi
mov ecx, 1
mov edx, 1
call fcn.00402a50
mov edx, dword [esi]
mov eax, 0x40869c
call fcn.00402a98
mov ebx, eax
test ebx, ebx
je 0x408668
lea eax, [ebp - 4]
push eax
mov ecx, ebx
dec ecx
mov eax, dword [esi]
mov edx, 1
call fcn.00402a10
push esi
lea edx, [ebx + 1]
mov eax, dword [esi]
mov ecx, 0x7fffffff
call fcn.00402a10
jmp 0x408435
mov eax, esi
mov ecx, 1
mov edx, 1
call fcn.00402a50
lea eax, [ebp - 4]
call fcn.00402568
lea edx, [ebp - 0x10]
mov eax, dword [esi]
call fcn.00407fbc
mov edx, dword [ebp - 0x10]
mov eax, esi
call fcn.00402600
cmp dword [esi], 0
je 0x408668
mov eax, dword [esi]
cmp byte [eax], 0x3d
jne 0x408668
mov eax, esi
mov ecx, 1
mov edx, 1
call fcn.00402a50
lea edx, [ebp - 0x14]
mov eax, dword [esi]
call fcn.00407fbc
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.00402600
mov eax, dword [esi]
cmp byte [eax], 0x22
jne 0x4084b0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
mov edx, edi
mov eax, dword [esi]
call fcn.004081c4
pop ecx
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
call fcn.00407c50
jmp 0x408668
mov ebx, 1
jmp 0x4084b8
inc ebx
mov eax, dword [esi]
call fcn.004027bc
cmp ebx, eax
jg 0x4084d5
mov eax, dword [esi]
mov al, byte [eax + ebx - 1]
sub al, 0x20
je 0x4084d5
sub al, 8
je 0x4084d5
sub al, 0x12
jne 0x4084b7
lea eax, [ebp - 8]
push eax
mov ecx, ebx
dec ecx
mov eax, dword [esi]
mov edx, 1
call fcn.00402a10
lea eax, [ebp - 0x20]
push eax
mov eax, dword [esi]
mov ecx, 0x7fffffff
mov edx, ebx
call fcn.00402a10
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.00407fbc
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.00402600
mov edx, 0x4086a8
mov eax, dword [ebp - 8]
call fcn.00407ff0
test eax, eax
jne 0x40860d
mov edi, 3
mov eax, dword [esi]
cmp byte [eax], 0x28
jne 0x4085b4
mov eax, esi
mov ecx, 1
mov edx, 1
call fcn.00402a50
lea eax, [ebp - 8]
call fcn.00402568
mov ebx, 1
jmp 0x40856e
lea eax, [ebp - 0x24]
mov edx, dword [esi]
mov dl, byte [edx + ebx - 1]
call fcn.00402744
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 8]
call fcn.004027c4
inc ebx
mov eax, dword [esi]
call fcn.004027bc
cmp ebx, eax
jg 0x408582
mov eax, dword [esi]
cmp byte [eax + ebx - 1], 0x29
jne 0x408554
mov eax, dword [ebp - 8]
call fcn.00407f64
mov edi, eax
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebx + 1]
mov eax, dword [esi]
mov ecx, 0x7fffffff
call fcn.00402a10
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.00408044
mov edx, dword [ebp - 0x28]
mov eax, esi
call fcn.00402600
mov eax, dword [esi]
cmp byte [eax], 0x3a
jne 0x408668
mov eax, esi
mov ecx, 1
mov edx, 1
call fcn.00402a50
lea edx, [ebp - 0xc]
mov eax, dword [esi]
call fcn.004082c0
mov eax, dword [ebp - 0xc]
call fcn.004027bc
push eax
mov eax, dword [ebp - 0xc]
call fcn.004029b4
push eax
push edi
push 0
mov eax, dword [ebp - 4]
call fcn.004029b4
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 0x408668
jmp 0x408668
mov edx, 0x4086b4
mov eax, dword [ebp - 8]
call fcn.00407ff0
test eax, eax
jne 0x408668
mov eax, dword [esi]
cmp byte [eax], 0x3a
jne 0x408668
mov eax, esi
mov ecx, 1
mov edx, 1
call fcn.00402a50
lea edx, [ebp - 0x34]
mov eax, dword [esi]
call fcn.00407fbc
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov edx, 0x4086c4
call fcn.00402808
mov eax, dword [ebp - 0x30]
call fcn.00407f64
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
call fcn.00407c7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40868a
lea eax, [ebp - 0x34]
mov edx, 0xd
call fcn.0040258c
ret