Function at 0x510670
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x626dfd
push eax
mov edx, dword [0x6f632c]
mov dword fs:[0], esp
sub esp, 0x14c
xor eax, eax
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x510ec0
push 0x6e0068
push edx
call fcn.005e5290
mov esi, eax
add esp, 8
test esi, esi
je 0x510ec0
add esi, 3
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x14
jl 0x510ec0
lea eax, [ecx + ecx + 1]
push eax
call fcn.005fdccd
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x20], ebp
je 0x510ec0
push ebp
push esi
call fcn.00575e70
mov cx, word [ebp]
mov eax, 0x6e0064
add esp, 8
cmp cx, word [eax]
jne 0x510ec0
mov edx, dword [0x6f175c]
mov dword [esp + 0x1c], edx
push eax
push ebp
mov dword [esp + 0x16c], 0
call fcn.005e5290
mov edx, eax
add esp, 8
test edx, edx
je 0x510ea3
or esi, 0xffffffff
mov edi, 0x6e0064
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
mov ecx, esi
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x510ea3
cmp byte [edx], 0x3b
je 0x510ea3
mov eax, dword [0x6f175c]
mov dword [esp + 0x10], eax
push edx
lea ecx, [esp + 0x14]
push 0x6c5098
push ecx
mov byte [esp + 0x170], 1
call fcn.005fa6fb
mov edx, dword [esp + 0x1c]
push 0x3b
push edx
call fcn.005e51d0
add esp, 0x14
test eax, eax
je 0x51079b
mov byte [eax], 0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push 0x6c5098
push ecx
call fcn.005fa6fb
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 0
call fcn.006018cc
mov edx, dword [esp + 0x1c]
mov ecx, esi
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x17
jne 0x510eb0
mov al, byte [edx + 5]
cmp al, 0x2d
jne 0x510eb0
cmp byte [edx + 0xb], 0x2d
jne 0x510eb0
cmp byte [edx + 0x11], 0x2d
jne 0x510eb0
push edx
push 0x4aa
mov ecx, ebx
call fcn.006012d0
mov edx, dword [0x6f175c]
mov dword [esp + 0x18], edx
mov esi, 0x32
lea eax, [esp + 0xc0]
push esi
push eax
push 0x4a5
mov ecx, ebx
mov byte [esp + 0x170], 2
call fcn.0060129e
test eax, eax
jne 0x5108e6
push 0x6e0060
push ebp
call fcn.005e5290
mov edx, eax
add esp, 8
test edx, edx
je 0x5108e6
mov edi, 0x6e0060
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5108e6
cmp byte [edx], 0x3b
je 0x5108e6
mov ecx, dword [0x6f175c]
mov dword [esp + 0x10], ecx
push edx
lea edx, [esp + 0x14]
push 0x6c5098
push edx
mov byte [esp + 0x170], 3
call fcn.005fa6fb
mov eax, dword [esp + 0x1c]
push 0x3b
push eax
call fcn.005e51d0
add esp, 0x14
test eax, eax
je 0x5108ad
mov byte [eax], 0
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push 0x6c5098
push edx
call fcn.005fa6fb
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 2
call fcn.006018cc
mov eax, dword [esp + 0x18]
mov ecx, ebx
push eax
push 0x4a5
call fcn.006012d0
lea ecx, [esp + 0xf4]
push esi
push ecx
push 0x4b0
mov ecx, ebx
call fcn.0060129e
test eax, eax
jne 0x5109ad
push 0x6e005c
push ebp
call fcn.005e5290
mov edx, eax
add esp, 8
test edx, edx
je 0x5109ad
mov edi, 0x6e005c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5109ad
cmp byte [edx], 0x3b
je 0x5109ad
mov eax, dword [0x6f175c]
mov dword [esp + 0x10], eax
push edx
lea ecx, [esp + 0x14]
push 0x6c5098
push ecx
mov byte [esp + 0x170], 4
call fcn.005fa6fb
mov edx, dword [esp + 0x1c]
push 0x3b
push edx
call fcn.005e51d0
add esp, 0x14
test eax, eax
je 0x510974
mov byte [eax], 0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push 0x6c5098
push ecx
call fcn.005fa6fb
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 2
call fcn.006018cc
mov edx, dword [esp + 0x18]
mov ecx, ebx
push edx
push 0x4b0
call fcn.006012d0
lea eax, [esp + 0x128]
push esi
push eax
push 0x413
mov ecx, ebx
call fcn.0060129e
test eax, eax
jne 0x510a75
push 0x6e0058
push ebp
call fcn.005e5290
mov edx, eax
add esp, 8
test edx, edx
je 0x510a75
mov edi, 0x6e0058
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x510a75
cmp byte [edx], 0x3b
je 0x510a75
mov ecx, dword [0x6f175c]
mov dword [esp + 0x10], ecx
push edx
lea edx, [esp + 0x14]
push 0x6c5098
push edx
mov byte [esp + 0x170], 5
call fcn.005fa6fb
mov eax, dword [esp + 0x1c]
push 0x3b
push eax
call fcn.005e51d0
add esp, 0x14
test eax, eax
je 0x510a3c
mov byte [eax], 0
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push 0x6c5098
push edx
call fcn.005fa6fb
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 2
call fcn.006018cc
mov eax, dword [esp + 0x18]
mov ecx, ebx
push eax
push 0x413
call fcn.006012d0
push 0x6e0054
push ebp
call fcn.005e5290
mov edx, eax
add esp, 8
test edx, edx
je 0x510b37
mov edi, 0x6e0054
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x510b37
cmp byte [edx], 0x3b
je 0x510b37
mov ecx, dword [0x6f175c]
mov dword [esp + 0x10], ecx
push edx
lea edx, [esp + 0x14]
push 0x6c5098
push edx
mov byte [esp + 0x170], 6
call fcn.005fa6fb
mov eax, dword [esp + 0x1c]
push 0x3b
push eax
call fcn.005e51d0
add esp, 0x14
test eax, eax
je 0x510aef
mov byte [eax], 0
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push 0x6c5098
push edx
call fcn.005fa6fb
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 2
call fcn.006018cc
mov eax, dword [esp + 0x18]
push 0x6ce0b8
push eax
call fcn.005e5520
add esp, 8
test eax, eax
jne 0x510b37
mov dword [ebx + 0x164], 1
mov eax, dword [ebx + 0x164]
test eax, eax
je 0x510e0a
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
push ecx
push 1
push 0
push 0x6c4f9c
push reloc.WS2_32.dll_bind
mov byte [esp + 0x6c], 0
mov byte [esp + 0xa0], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x510b7e
mov edx, dword [0x6f6360]
mov dword [esp + 0x10], edx
mov edx, dword [0x6f6c1c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x14]
push ecx
push 0
push 0
push edx
push eax
mov dword [esp + 0x2c], esi
call ebp
test eax, eax
je 0x510bf3
mov eax, dword [0x6f6c1c]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [0x6f6360]
push edx
push 0
push 0
push eax
push ecx
mov dword [esp + 0x2c], esi
call ebp
test eax, eax
je 0x510bf3
mov edi, str.default
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x6f6c18]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push 0
push 0
mov esi, 0x32
push eax
push ecx
mov dword [esp + 0x2c], esi
call ebp
test eax, eax
je 0x510c67
mov ecx, dword [0x6f6c18]
lea edx, [esp + 0x14]
lea eax, [esp + 0x58]
push edx
mov edx, dword [0x6f6360]
push eax
push 0
push 0
push ecx
push edx
mov dword [esp + 0x2c], esi
call ebp
test eax, eax
je 0x510c67
mov edi, str.default
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x58]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x6f6c14]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push 0
push 0
mov esi, 0x32
push eax
push ecx
mov dword [esp + 0x2c], esi
call ebp
test eax, eax
je 0x510ce4
mov ecx, dword [0x6f6c14]
lea edx, [esp + 0x14]
lea eax, [esp + 0x8c]
push edx
mov edx, dword [0x6f6360]
push eax
push 0
push 0
push ecx
push edx
mov dword [esp + 0x2c], esi
call ebp
test eax, eax
je 0x510ce4
mov edi, str.default
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x8c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc0]
push 0x32
push ecx
push 0x4a5
mov ecx, ebx
call fcn.0060129e
test eax, eax
je 0x510d39
lea esi, [esp + 0xc0]
lea eax, [esp + 0x8c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x510d30
test cl, cl
je 0x510d2c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x510d30
add eax, 2
add esi, 2
test cl, cl
jne 0x510d0c
xor eax, eax
jmp 0x510d35
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x510d43
mov dword [ebx + 0x164], 0
mov eax, dword [ebx + 0x164]
test eax, eax
je 0x510df1
mov al, byte [esp + 0x24]
test al, al
je 0x510d6a
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
push 0x4b0
call fcn.006012d0
mov al, byte [esp + 0x58]
test al, al
je 0x510d83
lea ecx, [esp + 0x58]
push ecx
push 0x413
mov ecx, ebx
call fcn.006012d0
lea edx, [esp + 0xf4]
push 0x32
push edx
push 0x4b0
mov ecx, ebx
call fcn.0060129e
test eax, eax
je 0x510db0
lea edi, [esp + 0xf4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x510dba
mov dword [ebx + 0x164], 0
lea eax, [esp + 0x128]
push 0x32
push eax
push 0x413
mov ecx, ebx
call fcn.0060129e
test eax, eax
je 0x510de7
lea edi, [esp + 0x128]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x510df1
mov dword [ebx + 0x164], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [0x6f6360]
cmp eax, ecx
je 0x510e06
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x20]
push 0x43
push 0
push 0
push 0
push 0
push 0x6f9038
mov ecx, ebx
call fcn.00601495
push 0x4a7
mov ecx, ebx
call fcn.00601246
mov ecx, dword [eax + 0x1c]
mov edx, dword [ebx + 0x1c]
push 1
push ecx
push 0x28
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push ebp
call fcn.005fdcf6
mov eax, dword [ebx + 0x164]
add esp, 4
test eax, eax
je 0x510e92
mov ecx, dword [ebx + 0x1c]
mov esi, dword [sym.imp.USER32.dll_SetActiveWindow]
push ecx
call esi
push eax
call fcn.005fe230
mov edx, dword [ebx + 0x100]
push edx
call esi
push eax
call fcn.005fe230
mov eax, dword [ebx + 0x100]
push 0
push 0
push 0xf5
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0x18]
mov byte [esp + 0x164], 0
call fcn.006018cc
mov dword [esp + 0x164], 0xffffffff
jmp 0x510eb7
mov dword [esp + 0x164], esi
lea ecx, [esp + 0x1c]
call fcn.006018cc
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret