Function at 0x52d131
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c76cd
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push esi
push edi
mov eax, dword [0x72b01c]
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 0x52d2e6
mov edi, dword [esi + 0x84]
mov ecx, edi
call fcn.0052b530
test eax, eax
je 0x52d2e6
cmp byte [edi + 0x14], 0
jne 0x52d2e6
mov ecx, edi
call fcn.0052b530
test eax, eax
je 0x52d2e6
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 0x52cdfd
mov eax, 1
lock xadd dword [edi], eax
lea eax, [ebp - 0x44]
push eax
call fcn.0052b1a0
mov ebx, dword [esi + 0x90]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], 0
push eax
call fcn.0052bb50
add esp, 0x18
mov dword [ebp - 0x10], eax
cmp dword [esi + 0x88], 0
mov byte [ebp - 4], 1
je 0x52ce53
mov edi, dword [esi + 0x84]
mov ecx, edi
call fcn.0052b530
test eax, eax
je 0x52ce53
cmp byte [edi + 0x14], 0
jne 0x52ce53
mov ecx, edi
call fcn.0052b530
jmp 0x52ce55
xor eax, eax
push ebx
push dword [ebp - 0x10]
push 0x2001f
push eax
call fcn.0052ae20
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 0x52ce99
mov ecx, ebx
lock xadd dword [edx], ecx
cmp ecx, 1
setne al
test al, al
jne 0x52ce99
push 4
push 2
push dword [ebp - 0x5c]
call fcn.0045fe90
add esp, 0xc
test edi, edi
jne 0x52ceab
push 1
mov ecx, esi
call fcn.004df260
jmp 0x52d2b3
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.004cb0f0
mov ecx, eax
mov eax, dword [ecx]
test eax, eax
je case.0x52cf02.6
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x52ceef
push dword [ecx]
call fcn.00480bf0
add esp, 4
add eax, 0xfffffffe
cmp eax, 0xa
ja case.0x52cf02.6
movzx eax, byte [eax + 0x52d318]
jmp dword [eax*4 + 0x52d304]
lea eax, [ebp - 0x80]
mov dword [ebp - 0x10], 7
push eax
mov ecx, esi
call fcn.004cc820
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 3
push eax
call fcn.004e0f60
add esp, 8
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 5
call fcn.004775b0
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 0x52cf89
nop word [eax + eax]
cmp dword [edi + 8], 0
je 0x52d01d
xor eax, eax
mov ecx, edi
push 1
push eax
mov word [ebp - 0x18], ax
push dword [ebp - 0x18]
call fcn.004924a0
cmp eax, 0xffffffff
jne 0x52d01d
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 0x52cf50
lea eax, [ecx + ecx*2]
lea eax, [esi + eax*4]
cmp esi, eax
je 0x52cff8
mov eax, dword [esi + 8]
mov ecx, esi
lea edi, [eax*2 + 2]
call fcn.00496d70
push edi
push eax
lea ecx, [ebp - 0x68]
call fcn.00460450
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.00460ca0
mov ecx, dword [ebp - 0x68]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x52cfe5
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x52cfe5
push 4
push 1
push dword [ebp - 0x68]
call fcn.0045fe90
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 0x52cf93
push 0
lea ecx, [ebp - 0x2c]
call fcn.00460d30
push 0
lea ecx, [ebp - 0x2c]
call fcn.00460d30
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00477570
jmp 0x52d1f7
push dword [ebp + 0xc]
lea eax, [ebp - 0x50]
mov dword [ebp - 0x10], 3
push eax
call fcn.004e1330
add esp, 8
mov eax, dword [ebp - 0x48]
mov ecx, 0x5e2da0
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.00460450
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 0x52d09e
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x52d09e
push 4
push 1
push dword [ebp - 0x68]
call fcn.0045fe90
add esp, 0xc
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x52d00c
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x52d00c
push 4
push 2
push dword [ebp - 0x50]
call fcn.0045fe90
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.00477570
jmp 0x52d1f7
push 0
mov ecx, esi
mov dword [ebp - 0x10], 4
call fcn.004cc4d0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 4
push eax
lea ecx, [ebp - 0x80]
call fcn.00460450
push eax
lea ecx, [ebp - 0x2c]
call fcn.00477c80
lea ecx, [ebp - 0x80]
call fcn.004019c0
jmp 0x52d1f7
push 0
mov ecx, esi
mov dword [ebp - 0x10], 0xb
call fcn.004cc920
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], edx
push 8
jmp 0x52d0f5
lea eax, [ebp - 0x38]
push esi
push eax
call fcn.004e1330
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.004924a0
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
lea ecx, [ecx*2 + 1]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x30]
jne 0x52d16e
inc ecx
lea eax, [ecx + ecx]
push eax
lea ecx, [ebp - 0x38]
call fcn.00496d70
push eax
lea ecx, [ebp - 0x68]
call fcn.00460450
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 0x52d1cd
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x52d1cd
push 4
push 1
push dword [ebp - 0x68]
call fcn.0045fe90
add esp, 0xc
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x52d1f7
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x52d1f7
push 4
push 2
push dword [ebp - 0x38]
call fcn.0045fe90
add esp, 0xc
mov eax, dword [ebp - 0x28]
mov edi, 0x5e0b28
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.0052ba00
add esp, 8
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.00496d70
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 0x52d25b
mov ecx, ebx
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x52d25b
push 4
push 2
push dword [ebp - 0x74]
call fcn.0045fe90
add esp, 0xc
test esi, esi
jne 0x52d26b
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 0x8c], 0
jmp 0x52d28c
lea ecx, [ebp - 0x44]
call fcn.00496d70
push eax
push str.QSettings:_failed_to_set_subkey___ls_
push esi
call fcn.0049f850
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push 1
call fcn.004df260
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x52d2b3
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x52d2b3
push 4
push eax
push dword [ebp - 0x2c]
call fcn.0045fe90
add esp, 0xc
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x52d2ef
lock xadd dword [eax], ebx
cmp ebx, 1
jne 0x52d2ef
push 4
push 2
push dword [ebp - 0x44]
call fcn.0045fe90
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.004df260
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