Function at 0x418dcc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x418dd4
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 0x4190af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi]
cmp byte [eax], 0x22
jne 0x418e48
mov eax, esi
mov ecx, 1
mov edx, 1
call fcn.0040318c
mov edx, dword [esi]
mov eax, 0x4190c8
call fcn.004031d4
mov ebx, eax
test ebx, ebx
je 0x419094
lea eax, [ebp - 4]
push eax
mov ecx, ebx
dec ecx
mov eax, dword [esi]
mov edx, 1
call fcn.0040314c
push esi
lea edx, [ebx + 1]
mov eax, dword [esi]
mov ecx, 0x7fffffff
call fcn.0040314c
jmp 0x418e61
mov eax, esi
mov ecx, 1
mov edx, 1
call fcn.0040318c
lea eax, [ebp - 4]
call fcn.00402ca4
lea edx, [ebp - 0x10]
mov eax, dword [esi]
call fcn.004189e8
mov edx, dword [ebp - 0x10]
mov eax, esi
call fcn.00402d3c
cmp dword [esi], 0
je 0x419094
mov eax, dword [esi]
cmp byte [eax], 0x3d
jne 0x419094
mov eax, esi
mov ecx, 1
mov edx, 1
call fcn.0040318c
lea edx, [ebp - 0x14]
mov eax, dword [esi]
call fcn.004189e8
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.00402d3c
mov eax, dword [esi]
cmp byte [eax], 0x22
jne 0x418edc
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
mov edx, edi
mov eax, dword [esi]
call fcn.00418bf0
pop ecx
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
call fcn.004187a4
jmp 0x419094
mov ebx, 1
jmp 0x418ee4
inc ebx
mov eax, dword [esi]
call fcn.00402ef8
cmp ebx, eax
jg 0x418f01
mov eax, dword [esi]
mov al, byte [eax + ebx - 1]
sub al, 0x20
je 0x418f01
sub al, 8
je 0x418f01
sub al, 0x12
jne 0x418ee3
lea eax, [ebp - 8]
push eax
mov ecx, ebx
dec ecx
mov eax, dword [esi]
mov edx, 1
call fcn.0040314c
lea eax, [ebp - 0x20]
push eax
mov eax, dword [esi]
mov ecx, 0x7fffffff
mov edx, ebx
call fcn.0040314c
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.004189e8
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.00402d3c
mov edx, 0x4190d4
mov eax, dword [ebp - 8]
call fcn.00418a1c
test eax, eax
jne 0x419039
mov edi, 3
mov eax, dword [esi]
cmp byte [eax], 0x28
jne 0x418fe0
mov eax, esi
mov ecx, 1
mov edx, 1
call fcn.0040318c
lea eax, [ebp - 8]
call fcn.00402ca4
mov ebx, 1
jmp 0x418f9a
lea eax, [ebp - 0x24]
mov edx, dword [esi]
mov dl, byte [edx + ebx - 1]
call fcn.00402e80
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 8]
call fcn.00402f00
inc ebx
mov eax, dword [esi]
call fcn.00402ef8
cmp ebx, eax
jg 0x418fae
mov eax, dword [esi]
cmp byte [eax + ebx - 1], 0x29
jne 0x418f80
mov eax, dword [ebp - 8]
call fcn.00418990
mov edi, eax
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebx + 1]
mov eax, dword [esi]
mov ecx, 0x7fffffff
call fcn.0040314c
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.00418a70
mov edx, dword [ebp - 0x28]
mov eax, esi
call fcn.00402d3c
mov eax, dword [esi]
cmp byte [eax], 0x3a
jne 0x419094
mov eax, esi
mov ecx, 1
mov edx, 1
call fcn.0040318c
lea edx, [ebp - 0xc]
mov eax, dword [esi]
call fcn.00418cec
mov eax, dword [ebp - 0xc]
call fcn.00402ef8
push eax
mov eax, dword [ebp - 0xc]
call fcn.004030f0
push eax
push edi
push 0
mov eax, dword [ebp - 4]
call fcn.004030f0
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 0x419094
jmp 0x419094
mov edx, 0x4190e0
mov eax, dword [ebp - 8]
call fcn.00418a1c
test eax, eax
jne 0x419094
mov eax, dword [esi]
cmp byte [eax], 0x3a
jne 0x419094
mov eax, esi
mov ecx, 1
mov edx, 1
call fcn.0040318c
lea edx, [ebp - 0x34]
mov eax, dword [esi]
call fcn.004189e8
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov edx, 0x4190f0
call fcn.00402f44
mov eax, dword [ebp - 0x30]
call fcn.00418990
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
call fcn.004187d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4190b6
lea eax, [ebp - 0x34]
mov edx, 0xd
call fcn.00402cc8
ret