Function at 0x51f670
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x65a4d2
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x15c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x174]
mov dword fs:[0], eax
mov edx, dword [0x75dc34]
mov eax, edx
mov edi, ecx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x51f6b8
sub eax, esi
je 0x51fd8f
push 0x6a5958
push edx
call fcn.00621810
mov esi, eax
add esp, 8
test esi, esi
je 0x51fd8f
add esi, 3
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x51f6e7
sub eax, edx
cmp eax, 0x14
jl 0x51fd8f
lea eax, [eax + eax + 1]
push eax
call fcn.005f4427
mov ebp, eax
add esp, 4
mov dword [esp + 0x24], ebp
test ebp, ebp
je 0x51fd8f
push ebp
push esi
call fcn.0057b830
add esp, 8
cmp byte [ebp], 0x73
jne 0x51fd8f
cmp byte [ebp + 1], 0x3d
jne 0x51fd8f
lea ecx, [esp + 0x20]
call fcn.00402500
mov dword [esp + 0x17c], 0
lea eax, [esp + 0x20]
push eax
push 0x6a5954
push ebp
call fcn.0051f580
add esp, 0xc
test al, al
je 0x51fd7b
mov ecx, dword [esp + 0x20]
mov eax, ecx
lea esi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x51f770
sub eax, esi
cmp eax, 0x17
jne 0x51fd7b
mov edx, dword [ecx - 0xc]
cmp edx, 5
jge 0x51f794
push 0x80070057
call fcn.00401090
mov al, byte [ecx + 5]
cmp al, 0x2d
jne 0x51fd7b
cmp edx, 0xb
jge 0x51f7ae
push 0x80070057
call fcn.00401090
cmp byte [ecx + 0xb], 0x2d
jne 0x51fd7b
cmp edx, 0x11
jge 0x51f7c7
push 0x80070057
call fcn.00401090
cmp byte [ecx + 0x11], 0x2d
jne 0x51fd7b
push ecx
push 0x4aa
mov ecx, edi
call fcn.005f50f4
lea ecx, [esp + 0x14]
call fcn.00402500
mov byte [esp + 0x17c], 1
mov ebx, 0x32
push ebx
lea ecx, [esp + 0x10c]
push ecx
push 0x4a5
mov ecx, edi
call fcn.005f50ca
test eax, eax
jne 0x51f835
lea edx, [esp + 0x14]
push edx
push 0x6a5950
push ebp
call fcn.0051f580
add esp, 0xc
test al, al
je 0x51f835
mov eax, dword [esp + 0x14]
push eax
push 0x4a5
mov ecx, edi
call fcn.005f50f4
push ebx
lea ecx, [esp + 0xd8]
push ecx
push 0x4b0
mov ecx, edi
call fcn.005f50ca
mov ebp, dword [sym.imp.USER32.dll_SetDlgItemTextW]
test eax, eax
jne 0x51f942
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x14]
push edx
push 0x6a594c
push eax
call fcn.0051f580
add esp, 0xc
test al, al
je 0x51f942
xor esi, esi
xor ecx, ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], esi
mov word [esp + 0x30], cx
mov byte [esp + 0x17c], 2
mov edx, dword [esp + 0x14]
push 0xfde9
push edx
lea ecx, [esp + 0x34]
call fcn.00401980
mov eax, dword [esp + 0x2c]
cmp eax, esi
jne 0x51f8af
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call fcn.004182b0
mov byte [esp + 0x17c], 3
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, esi
jmp 0x51f8d0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x51f8f0
test dl, dl
je 0x51f8ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x51f8f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x51f8d0
xor eax, eax
jmp 0x51f8f5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x51f913
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x51f905
lea eax, [esp + 0x30]
push eax
mov eax, dword [edi + 0x20]
push 0x4b0
push eax
call ebp
jmp 0x51f920
push esi
push 0x4b0
mov ecx, edi
call fcn.005f50f4
mov byte [esp + 0x17c], 2
lea ecx, [esp + 0x18]
call fcn.00402570
mov byte [esp + 0x17c], 1
lea ecx, [esp + 0x2c]
call fcn.00401210
push ebx
lea ecx, [esp + 0x140]
push ecx
push 0x413
mov ecx, edi
call fcn.005f50ca
test eax, eax
jne 0x51fa49
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x14]
push edx
push 0x6a5948
push eax
call fcn.0051f580
add esp, 0xc
test al, al
je 0x51fa49
xor esi, esi
xor ecx, ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], esi
mov word [esp + 0x30], cx
mov bl, 4
mov byte [esp + 0x17c], bl
mov edx, dword [esp + 0x14]
push 0xfde9
push edx
lea ecx, [esp + 0x34]
call fcn.00401980
mov eax, dword [esp + 0x2c]
cmp eax, esi
jne 0x51f9b7
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call fcn.004182b0
mov byte [esp + 0x17c], 5
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x51f9f3
test dl, dl
je 0x51f9ef
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x51f9f3
add eax, 2
add ecx, 2
test dl, dl
jne 0x51f9d3
xor eax, eax
jmp 0x51f9f8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x51fa16
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x51fa08
lea eax, [esp + 0x30]
push eax
mov eax, dword [edi + 0x20]
push 0x413
push eax
call ebp
jmp 0x51fa23
push esi
push 0x413
mov ecx, edi
call fcn.005f50f4
mov byte [esp + 0x17c], bl
lea ecx, [esp + 0x18]
call fcn.00402570
mov byte [esp + 0x17c], 1
lea ecx, [esp + 0x2c]
call fcn.00401210
mov ebx, 0x32
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push ecx
push 0x6a5944
push edx
call fcn.0051f580
add esp, 0xc
test al, al
je 0x51fa84
mov eax, dword [esp + 0x14]
push 0x68dbc0
push eax
call fcn.00621c8e
add esp, 8
test eax, eax
jne 0x51fa84
mov dword [edi + 0xcc], 1
cmp dword [edi + 0xcc], 0
je 0x51fcf8
lea ecx, [esp + 0x18]
push ecx
push 1
push 0
push 0x678e18
push 0x80000002
mov byte [esp + 0x4c], 0
mov byte [esp + 0x80], 0
mov byte [esp + 0xb4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x51facd
mov edx, dword [0x75dbe4]
mov dword [esp + 0x18], edx
mov edx, dword [0x75f494]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x3c]
push ecx
xor ebp, ebp
push ebp
push ebp
push edx
push eax
mov dword [esp + 0x34], ebx
call esi
test eax, eax
je 0x51fb2d
mov eax, dword [0x75f494]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [0x75dbe4]
lea edx, [esp + 0x3c]
push edx
push ebp
push ebp
push eax
push ecx
mov dword [esp + 0x34], ebx
call esi
test eax, eax
je 0x51fb2d
mov edx, dword [str.default]
mov eax, dword [0x6842b8]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
mov eax, dword [0x75f498]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x70]
push edx
push ebp
push ebp
push eax
push ecx
mov dword [esp + 0x34], ebx
call esi
test eax, eax
je 0x51fb85
mov ecx, dword [0x75f498]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [0x75dbe4]
lea eax, [esp + 0x70]
push eax
push ebp
push ebp
push ecx
push edx
mov dword [esp + 0x34], ebx
call esi
test eax, eax
je 0x51fb85
mov eax, dword [str.default]
mov ecx, dword [0x6842b8]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
mov ecx, dword [0x75f49c]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0xa4]
push eax
push ebp
push ebp
push ecx
push edx
mov dword [esp + 0x34], ebx
call esi
test eax, eax
je 0x51fbea
mov edx, dword [0x75f49c]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [0x75dbe4]
lea ecx, [esp + 0xa4]
push ecx
push ebp
push ebp
push edx
push eax
mov dword [esp + 0x34], ebx
call esi
test eax, eax
je 0x51fbea
mov ecx, dword [str.default]
mov edx, dword [0x6842b8]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], edx
push ebx
lea eax, [esp + 0x10c]
push eax
push 0x4a5
mov ecx, edi
call fcn.005f50ca
test eax, eax
je 0x51fc3a
lea ecx, [esp + 0x108]
lea eax, [esp + 0xa0]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x51fc31
test dl, dl
je 0x51fc2d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x51fc31
add eax, 2
add ecx, 2
test dl, dl
jne 0x51fc11
xor eax, eax
jmp 0x51fc36
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
je 0x51fc40
mov dword [edi + 0xcc], ebp
cmp dword [edi + 0xcc], ebp
je 0x51fce5
cmp byte [esp + 0x38], 0
je 0x51fc64
lea ecx, [esp + 0x38]
push ecx
push 0x4b0
mov ecx, edi
call fcn.005f50f4
cmp byte [esp + 0x6c], 0
je 0x51fc7c
lea edx, [esp + 0x6c]
push edx
push 0x413
mov ecx, edi
call fcn.005f50f4
push ebx
lea eax, [esp + 0xd8]
push eax
push 0x4b0
mov ecx, edi
call fcn.005f50ca
test eax, eax
je 0x51fcab
lea eax, [esp + 0xd4]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x51fca0
sub eax, edx
jne 0x51fcb1
mov dword [edi + 0xcc], ebp
push ebx
lea ecx, [esp + 0x140]
push ecx
push 0x413
mov ecx, edi
call fcn.005f50ca
test eax, eax
je 0x51fcdf
lea eax, [esp + 0x13c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x51fcd4
sub eax, edx
jne 0x51fce5
mov dword [edi + 0xcc], ebp
mov eax, dword [esp + 0x18]
cmp eax, dword [0x75dbe4]
je 0x51fcf8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x43
push 0
push 0
push 0
push 0
push 0x761210
mov ecx, edi
call fcn.005f5541
push 0x4a7
mov ecx, edi
call fcn.005f5077
push eax
mov ecx, edi
call fcn.0051f3d0
mov edx, dword [edi + 0x20]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esp + 0x24]
push eax
call fcn.005f4432
add esp, 4
cmp dword [edi + 0xcc], 0
je 0x51fd6a
mov ecx, edi
call fcn.0051f3b0
lea ecx, [edi + 0xa0]
call fcn.0051f170
mov ecx, dword [edi + 0xa4]
push 0
push 0
push 0xf5
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov byte [esp + 0x17c], 0
lea ecx, [esp + 0x14]
call fcn.00402570
mov dword [esp + 0x17c], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00402570
mov ecx, dword [esp + 0x174]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x15c]
xor ecx, esp
call fcn.0062016f
add esp, 0x16c
ret