Function at 0x4cd960
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558085
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x6f9540]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], edi
mov eax, dword [edi + 0x54]
cmp dword [eax + 4], 0
je 0x4cdb7d
mov esi, dword [eax + 0xc]
add esi, eax
mov ecx, esi
call fcn.004cc1e0
test eax, eax
je 0x4cdb7d
cmp byte [esi + 0xc], 0
jne 0x4cdb7d
mov ecx, esi
call fcn.004cc1e0
test eax, eax
je 0x4cdb7d
mov eax, dword [ebp + 8]
push ecx
mov ecx, esp
mov eax, dword [eax]
mov dword [ecx], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x4cd55f
cmp ecx, 0xffffffff
je 0x4cd55f
lock inc dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.004cbec0
add esp, 8
mov ebx, dword [edi + 0x5c]
push 1
push 0xffffffffffffffff
push ecx
mov eax, esp
mov dword [ebp - 4], 0
mov ecx, 0x5c
mov word [eax], cx
lea ecx, [ebp - 0x14]
call fcn.00409aa0
cmp eax, 0xffffffff
jne 0x4cd59a
mov dword [ebp - 0x18], 0x6e6190
jmp 0x4cd5a8
inc eax
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00409b40
mov eax, dword [edi + 0x54]
mov byte [ebp - 4], 1
cmp dword [eax + 4], 0
je 0x4cd5d4
mov esi, dword [eax + 0xc]
add esi, eax
mov ecx, esi
call fcn.004cc1e0
test eax, eax
je 0x4cd5d4
cmp byte [esi + 0xc], 0
jne 0x4cd5d4
mov ecx, esi
call fcn.004cc1e0
jmp 0x4cd5d6
xor eax, eax
push ebx
lea ecx, [ebp - 0x18]
push ecx
push 0x2001f
push eax
call fcn.004cbb50
mov ecx, dword [ebp - 0x18]
add esp, 0x10
mov esi, eax
mov byte [ebp - 4], 0
or ebx, 0xffffffff
mov dword [ebp - 0x34], esi
mov ecx, dword [ecx]
test ecx, ecx
je 0x4cd613
cmp ecx, ebx
je 0x4cd622
mov eax, dword [ebp - 0x18]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4cd622
push 4
push 2
push dword [ebp - 0x18]
call fcn.00403d20
add esp, 0xc
test esi, esi
jne 0x4cd634
push 1
mov ecx, edi
call fcn.0049f8d0
jmp 0x4cdb3d
mov dword [ebp - 0x10], 0x6e6190
mov edi, dword [ebp + 0xc]
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00485c20
add eax, 0xfffffffe
cmp eax, 0xa
ja case.0x4cd65c.6
movzx eax, byte [eax + 0x4cdbb0]
jmp dword [eax*4 + 0x4cdb9c]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 7
push eax
mov ecx, edi
call fcn.004852f0
push eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 3
push eax
call fcn.004a0d40
add esp, 8
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 6
mov eax, dword [eax]
test eax, eax
je 0x4cd6a9
cmp eax, 0xffffffff
je 0x4cd6fa
mov eax, dword [ebp - 0x20]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4cd6fa
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edx
mov ecx, dword [edx + 8]
mov esi, dword [edx + 0xc]
add ecx, 4
add esi, 4
lea ecx, [edx + ecx*4]
lea esi, [edx + esi*4]
mov dword [ebp - 0x28], ecx
cmp esi, ecx
je 0x4cd6f1
mov edi, dword [esi - 4]
sub esi, 4
test edi, edi
je 0x4cd6e7
mov ecx, edi
call fcn.00481b10
push 0x10
push edi
call fcn.005247e1
mov ecx, dword [ebp - 0x28]
add esp, 8
cmp esi, ecx
jne 0x4cd6c8
mov edx, dword [ebp - 0x2c]
mov edi, dword [ebp + 0xc]
push edx
call fcn.0040eed0
add esp, 4
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 5
mov eax, dword [ecx + 8]
add eax, 4
lea esi, [ecx + eax*4]
mov eax, dword [ecx + 0xc]
add eax, 4
lea eax, [ecx + eax*4]
cmp esi, eax
je 0x4cd75b
nop word [eax + eax]
mov eax, dword [esi]
cmp dword [eax + 4], 0
je 0x4cd848
xor eax, eax
mov ecx, esi
push 1
push eax
mov word [ebp + 0xc], ax
push dword [ebp + 0xc]
call fcn.00409590
cmp eax, 0xffffffff
jne 0x4cd848
mov ecx, dword [ebp + 8]
add esi, 4
mov eax, dword [ecx + 0xc]
add eax, 4
lea eax, [ecx + eax*4]
cmp esi, eax
jne 0x4cd720
mov eax, dword [ecx + 8]
add eax, 4
lea esi, [ecx + eax*4]
mov eax, dword [ecx + 0xc]
add eax, 4
lea eax, [ecx + eax*4]
cmp esi, eax
je 0x4cd7e0
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
lea edi, [eax*2 + 2]
call fcn.0040dd20
push edi
push eax
lea ecx, [ebp + 0xc]
call fcn.00429950
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.00429e40
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 5
mov eax, dword [eax]
test eax, eax
je 0x4cd7be
cmp eax, 0xffffffff
je 0x4cd7cd
mov eax, dword [ebp + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4cd7cd
push 4
push 1
push dword [ebp + 0xc]
call fcn.00403d20
add esp, 0xc
mov eax, dword [ebp + 8]
add esi, 4
mov ecx, dword [eax + 0xc]
lea eax, [eax + ecx*4]
add eax, 0x10
cmp esi, eax
jne 0x4cd771
push 0
lea ecx, [ebp - 0x10]
call fcn.00429f00
push 0
lea ecx, [ebp - 0x10]
call fcn.00429f00
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 9
mov eax, dword [eax]
test eax, eax
je 0x4cd817
cmp eax, 0xffffffff
je 0x4cd83f
mov eax, dword [ebp + 8]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4cd83f
mov esi, dword [ebp + 8]
lea ecx, [ebp + 8]
mov eax, dword [esi + 0xc]
add eax, 4
lea eax, [esi + eax*4]
push eax
mov eax, dword [esi + 8]
add eax, 4
lea eax, [esi + eax*4]
push eax
call fcn.004028a0
push esi
call fcn.0040eed0
add esp, 4
mov byte [ebp - 4], 2
jmp 0x4cda21
lea eax, [ebp + 0xc]
mov dword [ebp - 0x1c], 3
push edi
push eax
call fcn.004a0e50
add esp, 8
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 7
mov esi, dword [eax + 4]
add esi, esi
call fcn.0040dd20
push esi
push eax
lea ecx, [ebp - 0x20]
call fcn.00429950
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
test eax, eax
je 0x4cd8a3
cmp eax, 0xffffffff
je 0x4cd8b2
mov eax, dword [ebp - 0x20]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4cd8b2
push 4
push 1
push dword [ebp - 0x20]
call fcn.00403d20
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x4cd8d9
cmp eax, 0xffffffff
je 0x4cd7f4
mov eax, dword [ebp + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4cd7f4
push 4
push 2
push dword [ebp + 0xc]
call fcn.00403d20
add esp, 0xc
jmp 0x4cd7f4
push 0
mov ecx, edi
mov dword [ebp - 0x1c], 4
call fcn.00484e30
mov dword [ebp + 0xc], eax
lea ecx, [ebp + 8]
push 4
lea eax, [ebp + 0xc]
push eax
call fcn.00429950
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp + 8]
mov dword [eax], edx
call fcn.00405d60
jmp 0x4cda21
push 0
mov ecx, edi
mov dword [ebp - 0x1c], 0xb
call fcn.00485310
mov dword [ebp - 0x30], eax
lea ecx, [ebp + 0xc]
push 8
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], edx
push eax
call fcn.00429950
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp + 0xc]
mov dword [eax], edx
call fcn.00405d60
jmp 0x4cda21
lea eax, [ebp + 0xc]
push edi
push eax
call fcn.004a0e50
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0xa
push 1
push eax
mov word [ebp + 8], ax
lea ecx, [ebp + 0xc]
push dword [ebp + 8]
call fcn.00409590
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
lea ecx, [ecx*2 + 1]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 4]
lea edx, [ecx + 1]
cmovne edx, ecx
lea ecx, [ebp + 0xc]
add edx, edx
push edx
call fcn.0040dd20
push eax
lea ecx, [ebp + 8]
call fcn.00429950
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
je 0x4cd9e0
cmp eax, 0xffffffff
je 0x4cd9ef
mov eax, dword [ebp + 8]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4cd9ef
push 4
push 1
push dword [ebp + 8]
call fcn.00403d20
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov eax, dword [eax]
test eax, eax
je 0x4cda12
cmp eax, 0xffffffff
je 0x4cda21
mov eax, dword [ebp + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4cda21
push 4
push 2
push dword [ebp + 0xc]
call fcn.00403d20
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov edi, dword [eax + 0xc]
mov esi, dword [eax + 4]
add edi, eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.004cc2f0
add esp, 8
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.0040dd20
push esi
push edi
push dword [ebp - 0x1c]
mov edi, dword [ebp - 0x34]
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov byte [ebp - 4], 2
mov eax, dword [ecx]
test eax, eax
je 0x4cda7e
cmp eax, 0xffffffff
je 0x4cda8d
mov eax, dword [ebp + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4cda8d
push 4
push 2
push dword [ebp + 0xc]
call fcn.00403d20
add esp, 0xc
test esi, esi
jne 0x4cda9a
mov ecx, dword [ebp - 0x24]
mov byte [ecx + 0x58], 0
jmp 0x4cdb08
mov eax, dword [ebp - 0x14]
mov dword [ebp + 0xc], eax
mov eax, dword [eax]
test eax, eax
je 0x4cdab1
cmp eax, 0xffffffff
je 0x4cdab1
mov eax, dword [ebp - 0x14]
lock inc dword [eax]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0xc
call fcn.0040dd20
push eax
push str.QSettings:_failed_to_set_subkey___ls_
push esi
call fcn.00427830
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov byte [ebp - 4], 2
mov eax, dword [eax]
test eax, eax
je 0x4cdaef
cmp eax, 0xffffffff
je 0x4cdafe
mov eax, dword [ebp + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4cdafe
push 4
push 2
push dword [ebp + 0xc]
call fcn.00403d20
add esp, 0xc
mov ecx, dword [ebp - 0x24]
push 1
call fcn.0049f8d0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
je 0x4cdb2e
cmp eax, 0xffffffff
je 0x4cdb3d
mov eax, dword [ebp - 0x10]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4cdb3d
push 4
push 1
push dword [ebp - 0x10]
call fcn.00403d20
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
je 0x4cdb5a
cmp eax, 0xffffffff
je 0x4cdb86
mov eax, dword [ebp - 0x14]
lock xadd dword [eax], ebx
dec ebx
setne al
test al, al
jne 0x4cdb86
push 4
push 2
push dword [ebp - 0x14]
call fcn.00403d20
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
mov ecx, edi
call fcn.0049f8d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8