Function at 0x52e869
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c906d
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push esi
push edi
mov eax, dword [0x72cec4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp dword [esi + 0x88], 0
je 0x52ec46
mov edi, dword [esi + 0x84]
mov ecx, edi
call fcn.0052ce90
test eax, eax
je 0x52ec46
cmp byte [edi + 0x14], 0
jne 0x52ec46
mov ecx, edi
call fcn.0052ce90
test eax, eax
je 0x52ec46
mov ecx, dword [ebp + 8]
sub esp, 0xc
mov edx, esp
mov edi, dword [ecx]
mov dword [edx], edi
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
test edi, edi
je 0x52e75d
mov eax, 1
lock xadd dword [edi], eax
lea eax, [ebp - 0x44]
push eax
call fcn.0052cb00
mov ebx, dword [esi + 0x90]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], 0
push eax
call fcn.0052d4b0
add esp, 0x18
mov dword [ebp - 0x10], eax
cmp dword [esi + 0x88], 0
mov byte [ebp - 4], 1
je 0x52e7b3
mov edi, dword [esi + 0x84]
mov ecx, edi
call fcn.0052ce90
test eax, eax
je 0x52e7b3
cmp byte [edi + 0x14], 0
jne 0x52e7b3
mov ecx, edi
call fcn.0052ce90
jmp 0x52e7b5
xor eax, eax
push ebx
push dword [ebp - 0x10]
push 0x2001f
push eax
call fcn.0052c780
mov edx, dword [ebp - 0x5c]
add esp, 0x10
mov edi, eax
mov byte [ebp - 4], 0
or ebx, 0xffffffff
mov dword [ebp - 0x20], edi
test edx, edx
je 0x52e7f9
mov ecx, ebx
lock xadd dword [edx], ecx
cmp ecx, 1
setne al
test al, al
jne 0x52e7f9
push 4
push 2
push dword [ebp - 0x5c]
call fcn.00461780
add esp, 0xc
test edi, edi
jne 0x52e80b
push 1
mov ecx, esi
call fcn.004e0b90
jmp 0x52ec13
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004cca10
mov ecx, eax
mov eax, dword [ecx]
test eax, eax
je case.0x52e862.6
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x52e84f
push dword [ecx]
call fcn.004824f0
add esp, 4
add eax, 0xfffffffe
cmp eax, 0xa
ja case.0x52e862.6
movzx eax, byte [eax + 0x52ec78]
jmp dword [eax*4 + 0x52ec64]
lea eax, [ebp - 0x80]
mov dword [ebp - 0x10], 7
push eax
mov ecx, esi
call fcn.004ce150
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 3
push eax
call fcn.004e2890
add esp, 8
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 5
call fcn.00478ea0
mov ecx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
mov edi, esi
lea eax, [ecx + ecx*2]
lea eax, [edi + eax*4]
cmp edi, eax
je 0x52e8e9
nop word [eax + eax]
cmp dword [edi + 8], 0
je 0x52e97d
xor eax, eax
mov ecx, edi
push 1
push eax
mov word [ebp - 0x18], ax
push dword [ebp - 0x18]
call fcn.00493da0
cmp eax, 0xffffffff
jne 0x52e97d
mov ecx, dword [ebp - 0x30]
add edi, 0xc
mov esi, dword [ebp - 0x34]
lea eax, [ecx + ecx*2]
lea eax, [esi + eax*4]
cmp edi, eax
jne 0x52e8b0
lea eax, [ecx + ecx*2]
lea eax, [esi + eax*4]
cmp esi, eax
je 0x52e958
mov eax, dword [esi + 8]
mov ecx, esi
lea edi, [eax*2 + 2]
call fcn.00498670
push edi
push eax
lea ecx, [ebp - 0x68]
call fcn.00461d40
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.00462590
mov ecx, dword [ebp - 0x68]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x52e945
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x52e945
push 4
push 1
push dword [ebp - 0x68]
call fcn.00461780
add esp, 0xc
mov eax, dword [ebp - 0x30]
add esi, 0xc
lea ecx, [eax + eax*2]
mov eax, dword [ebp - 0x34]
lea eax, [eax + ecx*4]
cmp esi, eax
jne 0x52e8f3
push 0
lea ecx, [ebp - 0x2c]
call fcn.00462620
push 0
lea ecx, [ebp - 0x2c]
call fcn.00462620
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00478e60
jmp 0x52eb57
push dword [ebp + 0xc]
lea eax, [ebp - 0x50]
mov dword [ebp - 0x10], 3
push eax
call fcn.004e2c60
add esp, 8
mov eax, dword [ebp - 0x48]
mov ecx, 0x5e7030
mov byte [ebp - 4], 6
lea edx, [eax + eax]
mov eax, dword [ebp - 0x4c]
test eax, eax
push edx
cmovne ecx, eax
push ecx
lea ecx, [ebp - 0x68]
call fcn.00461d40
mov edx, dword [ebp - 0x2c]
mov esi, eax
mov ecx, dword [esi]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [esi + 4]
mov dword [esi], edx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x28], ecx
mov eax, dword [esi + 8]
mov dword [esi + 4], edx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x24], eax
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0x68]
test ecx, ecx
je 0x52e9fe
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x52e9fe
push 4
push 1
push dword [ebp - 0x68]
call fcn.00461780
add esp, 0xc
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x52e96c
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x52e96c
push 4
push 2
push dword [ebp - 0x50]
call fcn.00461780
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.00478e60
jmp 0x52eb57
push 0
mov ecx, esi
mov dword [ebp - 0x10], 4
call fcn.004cddf0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 4
push eax
lea ecx, [ebp - 0x80]
call fcn.00461d40
push eax
lea ecx, [ebp - 0x2c]
call fcn.00479570
lea ecx, [ebp - 0x80]
call fcn.004019c0
jmp 0x52eb57
push 0
mov ecx, esi
mov dword [ebp - 0x10], 0xb
call fcn.004ce250
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], edx
push 8
jmp 0x52ea55
lea eax, [ebp - 0x38]
push esi
push eax
call fcn.004e2c60
add esp, 8
xor eax, eax
mov byte [ebp - 4], 8
push 1
push eax
mov word [ebp - 0x18], ax
lea ecx, [ebp - 0x38]
push dword [ebp - 0x18]
call fcn.00493da0
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
lea ecx, [ecx*2 + 1]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x30]
jne 0x52eace
inc ecx
lea eax, [ecx + ecx]
push eax
lea ecx, [ebp - 0x38]
call fcn.00498670
push eax
lea ecx, [ebp - 0x68]
call fcn.00461d40
mov edx, dword [ebp - 0x2c]
mov esi, eax
mov ecx, dword [esi]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [esi + 4]
mov dword [esi], edx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x28], ecx
mov eax, dword [esi + 8]
mov dword [esi + 4], edx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x24], eax
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0x68]
test ecx, ecx
je 0x52eb2d
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x52eb2d
push 4
push 1
push dword [ebp - 0x68]
call fcn.00461780
add esp, 0xc
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x52eb57
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x52eb57
push 4
push 2
push dword [ebp - 0x38]
call fcn.00461780
add esp, 0xc
mov eax, dword [ebp - 0x28]
mov edi, 0x5e4db8
mov esi, dword [ebp - 0x24]
test eax, eax
cmovne edi, eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0052d360
add esp, 8
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.00498670
push esi
push edi
push dword [ebp - 0x10]
mov edi, dword [ebp - 0x20]
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x52ebbb
mov ecx, ebx
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x52ebbb
push 4
push 2
push dword [ebp - 0x74]
call fcn.00461780
add esp, 0xc
test esi, esi
jne 0x52ebcb
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 0x8c], 0
jmp 0x52ebec
lea ecx, [ebp - 0x44]
call fcn.00498670
push eax
push str.QSettings:_failed_to_set_subkey___ls_
push esi
call fcn.004a1150
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push 1
call fcn.004e0b90
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x52ec13
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x52ec13
push 4
push eax
push dword [ebp - 0x2c]
call fcn.00461780
add esp, 0xc
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x52ec4f
lock xadd dword [eax], ebx
cmp ebx, 1
jne 0x52ec4f
push 4
push 2
push dword [ebp - 0x44]
call fcn.00461780
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, esi
call fcn.004e0b90
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