Function at 0x40c504
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x40c50c
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 0x40c7e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi]
cmp byte [eax], 0x22
jne 0x40c580
mov eax, esi
mov ecx, 1
mov edx, 1
call fcn.004030b8
mov edx, dword [esi]
mov eax, 0x40c800
call fcn.00403100
mov ebx, eax
test ebx, ebx
je 0x40c7cc
lea eax, [ebp - 4]
push eax
mov ecx, ebx
dec ecx
mov eax, dword [esi]
mov edx, 1
call fcn.00403078
push esi
lea edx, [ebx + 1]
mov eax, dword [esi]
mov ecx, 0x7fffffff
call fcn.00403078
jmp 0x40c599
mov eax, esi
mov ecx, 1
mov edx, 1
call fcn.004030b8
lea eax, [ebp - 4]
call fcn.00402bd0
lea edx, [ebp - 0x10]
mov eax, dword [esi]
call fcn.0040c120
mov edx, dword [ebp - 0x10]
mov eax, esi
call fcn.00402c68
cmp dword [esi], 0
je 0x40c7cc
mov eax, dword [esi]
cmp byte [eax], 0x3d
jne 0x40c7cc
mov eax, esi
mov ecx, 1
mov edx, 1
call fcn.004030b8
lea edx, [ebp - 0x14]
mov eax, dword [esi]
call fcn.0040c120
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.00402c68
mov eax, dword [esi]
cmp byte [eax], 0x22
jne 0x40c614
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
mov edx, edi
mov eax, dword [esi]
call fcn.0040c328
pop ecx
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
call fcn.0040bedc
jmp 0x40c7cc
mov ebx, 1
jmp 0x40c61c
inc ebx
mov eax, dword [esi]
call fcn.00402e24
cmp ebx, eax
jg 0x40c639
mov eax, dword [esi]
mov al, byte [eax + ebx - 1]
sub al, 0x20
je 0x40c639
sub al, 8
je 0x40c639
sub al, 0x12
jne 0x40c61b
lea eax, [ebp - 8]
push eax
mov ecx, ebx
dec ecx
mov eax, dword [esi]
mov edx, 1
call fcn.00403078
lea eax, [ebp - 0x20]
push eax
mov eax, dword [esi]
mov ecx, 0x7fffffff
mov edx, ebx
call fcn.00403078
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.0040c120
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.00402c68
mov edx, 0x40c80c
mov eax, dword [ebp - 8]
call fcn.0040c154
test eax, eax
jne 0x40c771
mov edi, 3
mov eax, dword [esi]
cmp byte [eax], 0x28
jne 0x40c718
mov eax, esi
mov ecx, 1
mov edx, 1
call fcn.004030b8
lea eax, [ebp - 8]
call fcn.00402bd0
mov ebx, 1
jmp 0x40c6d2
lea eax, [ebp - 0x24]
mov edx, dword [esi]
mov dl, byte [edx + ebx - 1]
call fcn.00402dac
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 8]
call fcn.00402e2c
inc ebx
mov eax, dword [esi]
call fcn.00402e24
cmp ebx, eax
jg 0x40c6e6
mov eax, dword [esi]
cmp byte [eax + ebx - 1], 0x29
jne 0x40c6b8
mov eax, dword [ebp - 8]
call fcn.0040c0c8
mov edi, eax
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebx + 1]
mov eax, dword [esi]
mov ecx, 0x7fffffff
call fcn.00403078
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.0040c1a8
mov edx, dword [ebp - 0x28]
mov eax, esi
call fcn.00402c68
mov eax, dword [esi]
cmp byte [eax], 0x3a
jne 0x40c7cc
mov eax, esi
mov ecx, 1
mov edx, 1
call fcn.004030b8
lea edx, [ebp - 0xc]
mov eax, dword [esi]
call fcn.0040c424
mov eax, dword [ebp - 0xc]
call fcn.00402e24
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040301c
push eax
push edi
push 0
mov eax, dword [ebp - 4]
call fcn.0040301c
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 0x40c7cc
jmp 0x40c7cc
mov edx, 0x40c818
mov eax, dword [ebp - 8]
call fcn.0040c154
test eax, eax
jne 0x40c7cc
mov eax, dword [esi]
cmp byte [eax], 0x3a
jne 0x40c7cc
mov eax, esi
mov ecx, 1
mov edx, 1
call fcn.004030b8
lea edx, [ebp - 0x34]
mov eax, dword [esi]
call fcn.0040c120
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov edx, 0x40c828
call fcn.00402e70
mov eax, dword [ebp - 0x30]
call fcn.0040c0c8
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
call fcn.0040bf08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c7ee
lea eax, [ebp - 0x34]
mov edx, 0xd
call fcn.00402bf4
ret