Function at 0x511140
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6269bd
push eax
mov edx, dword [0x6d12bc]
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 0x511990
push 0x6bb054
push edx
call fcn.005e6490
mov esi, eax
add esp, 8
test esi, esi
je 0x511990
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 0x511990
lea eax, [ecx + ecx + 1]
push eax
call fcn.005feedc
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x20], ebp
je 0x511990
push ebp
push esi
call fcn.00577170
mov cx, word [ebp]
mov eax, 0x6bb050
add esp, 8
cmp cx, word [eax]
jne 0x511990
mov edx, dword [0x6cc708]
mov dword [esp + 0x1c], edx
push eax
push ebp
mov dword [esp + 0x16c], 0
call fcn.005e6490
mov edx, eax
add esp, 8
test edx, edx
je 0x511973
or esi, 0xffffffff
mov edi, 0x6bb050
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 0x511973
cmp byte [edx], 0x3b
je 0x511973
mov eax, dword [0x6cc708]
mov dword [esp + 0x10], eax
push edx
lea ecx, [esp + 0x14]
push 0x6a00a0
push ecx
mov byte [esp + 0x170], 1
call fcn.005fb90b
mov edx, dword [esp + 0x1c]
push 0x3b
push edx
call fcn.005e63d0
add esp, 0x14
test eax, eax
je 0x51126b
mov byte [eax], 0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push 0x6a00a0
push ecx
call fcn.005fb90b
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 0
call fcn.00602ad6
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 0x511980
mov al, byte [edx + 5]
cmp al, 0x2d
jne 0x511980
cmp byte [edx + 0xb], 0x2d
jne 0x511980
cmp byte [edx + 0x11], 0x2d
jne 0x511980
push edx
push 0x4aa
mov ecx, ebx
call fcn.00601fc6
mov edx, dword [0x6cc708]
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.00601f94
test eax, eax
jne 0x5113b6
push 0x6bb04c
push ebp
call fcn.005e6490
mov edx, eax
add esp, 8
test edx, edx
je 0x5113b6
mov edi, 0x6bb04c
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 0x5113b6
cmp byte [edx], 0x3b
je 0x5113b6
mov ecx, dword [0x6cc708]
mov dword [esp + 0x10], ecx
push edx
lea edx, [esp + 0x14]
push 0x6a00a0
push edx
mov byte [esp + 0x170], 3
call fcn.005fb90b
mov eax, dword [esp + 0x1c]
push 0x3b
push eax
call fcn.005e63d0
add esp, 0x14
test eax, eax
je 0x51137d
mov byte [eax], 0
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push 0x6a00a0
push edx
call fcn.005fb90b
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 2
call fcn.00602ad6
mov eax, dword [esp + 0x18]
mov ecx, ebx
push eax
push 0x4a5
call fcn.00601fc6
lea ecx, [esp + 0xf4]
push esi
push ecx
push 0x4b0
mov ecx, ebx
call fcn.00601f94
test eax, eax
jne 0x51147d
push 0x6bb048
push ebp
call fcn.005e6490
mov edx, eax
add esp, 8
test edx, edx
je 0x51147d
mov edi, 0x6bb048
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 0x51147d
cmp byte [edx], 0x3b
je 0x51147d
mov eax, dword [0x6cc708]
mov dword [esp + 0x10], eax
push edx
lea ecx, [esp + 0x14]
push 0x6a00a0
push ecx
mov byte [esp + 0x170], 4
call fcn.005fb90b
mov edx, dword [esp + 0x1c]
push 0x3b
push edx
call fcn.005e63d0
add esp, 0x14
test eax, eax
je 0x511444
mov byte [eax], 0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push 0x6a00a0
push ecx
call fcn.005fb90b
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 2
call fcn.00602ad6
mov edx, dword [esp + 0x18]
mov ecx, ebx
push edx
push 0x4b0
call fcn.00601fc6
lea eax, [esp + 0x128]
push esi
push eax
push 0x413
mov ecx, ebx
call fcn.00601f94
test eax, eax
jne 0x511545
push 0x6bb044
push ebp
call fcn.005e6490
mov edx, eax
add esp, 8
test edx, edx
je 0x511545
mov edi, 0x6bb044
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 0x511545
cmp byte [edx], 0x3b
je 0x511545
mov ecx, dword [0x6cc708]
mov dword [esp + 0x10], ecx
push edx
lea edx, [esp + 0x14]
push 0x6a00a0
push edx
mov byte [esp + 0x170], 5
call fcn.005fb90b
mov eax, dword [esp + 0x1c]
push 0x3b
push eax
call fcn.005e63d0
add esp, 0x14
test eax, eax
je 0x51150c
mov byte [eax], 0
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push 0x6a00a0
push edx
call fcn.005fb90b
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 2
call fcn.00602ad6
mov eax, dword [esp + 0x18]
mov ecx, ebx
push eax
push 0x413
call fcn.00601fc6
push 0x6bb040
push ebp
call fcn.005e6490
mov edx, eax
add esp, 8
test edx, edx
je 0x511607
mov edi, 0x6bb040
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 0x511607
cmp byte [edx], 0x3b
je 0x511607
mov ecx, dword [0x6cc708]
mov dword [esp + 0x10], ecx
push edx
lea edx, [esp + 0x14]
push 0x6a00a0
push edx
mov byte [esp + 0x170], 6
call fcn.005fb90b
mov eax, dword [esp + 0x1c]
push 0x3b
push eax
call fcn.005e63d0
add esp, 0x14
test eax, eax
je 0x5115bf
mov byte [eax], 0
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push 0x6a00a0
push edx
call fcn.005fb90b
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 2
call fcn.00602ad6
mov eax, dword [esp + 0x18]
push 0x6a9090
push eax
call fcn.005e6820
add esp, 8
test eax, eax
jne 0x511607
mov dword [ebx + 0xb4], 1
mov eax, dword [ebx + 0xb4]
test eax, eax
je 0x5118da
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
push ecx
push 1
push 0
push 0x69ffa4
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 0x51164e
mov edx, dword [0x6d12f4]
mov dword [esp + 0x10], edx
mov edx, dword [0x6d1bd4]
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 0x5116c3
mov eax, dword [0x6d1bd4]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [0x6d12f4]
push edx
push 0
push 0
push eax
push ecx
mov dword [esp + 0x2c], esi
call ebp
test eax, eax
je 0x5116c3
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 [0x6d1bd0]
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 0x511737
mov ecx, dword [0x6d1bd0]
lea edx, [esp + 0x14]
lea eax, [esp + 0x58]
push edx
mov edx, dword [0x6d12f4]
push eax
push 0
push 0
push ecx
push edx
mov dword [esp + 0x2c], esi
call ebp
test eax, eax
je 0x511737
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 [0x6d1bcc]
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 0x5117b4
mov ecx, dword [0x6d1bcc]
lea edx, [esp + 0x14]
lea eax, [esp + 0x8c]
push edx
mov edx, dword [0x6d12f4]
push eax
push 0
push 0
push ecx
push edx
mov dword [esp + 0x2c], esi
call ebp
test eax, eax
je 0x5117b4
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.00601f94
test eax, eax
je 0x511809
lea esi, [esp + 0xc0]
lea eax, [esp + 0x8c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x511800
test cl, cl
je 0x5117fc
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x511800
add eax, 2
add esi, 2
test cl, cl
jne 0x5117dc
xor eax, eax
jmp 0x511805
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x511813
mov dword [ebx + 0xb4], 0
mov eax, dword [ebx + 0xb4]
test eax, eax
je 0x5118c1
mov al, byte [esp + 0x24]
test al, al
je 0x51183a
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
push 0x4b0
call fcn.00601fc6
mov al, byte [esp + 0x58]
test al, al
je 0x511853
lea ecx, [esp + 0x58]
push ecx
push 0x413
mov ecx, ebx
call fcn.00601fc6
lea edx, [esp + 0xf4]
push 0x32
push edx
push 0x4b0
mov ecx, ebx
call fcn.00601f94
test eax, eax
je 0x511880
lea edi, [esp + 0xf4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x51188a
mov dword [ebx + 0xb4], 0
lea eax, [esp + 0x128]
push 0x32
push eax
push 0x413
mov ecx, ebx
call fcn.00601f94
test eax, eax
je 0x5118b7
lea edi, [esp + 0x128]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x5118c1
mov dword [ebx + 0xb4], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [0x6d12f4]
cmp eax, ecx
je 0x5118d6
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 0x6d3ff0
mov ecx, ebx
call fcn.0060218b
push 0x4a7
mov ecx, ebx
call fcn.00601f3c
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.005fef05
mov eax, dword [ebx + 0xb4]
add esp, 4
test eax, eax
je 0x511962
mov ecx, dword [ebx + 0x1c]
mov esi, dword [sym.imp.USER32.dll_SetActiveWindow]
push ecx
call esi
push eax
call fcn.005ff43f
mov edx, dword [ebx + 0x8c]
push edx
call esi
push eax
call fcn.005ff43f
mov eax, dword [ebx + 0x8c]
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.00602ad6
mov dword [esp + 0x164], 0xffffffff
jmp 0x511987
mov dword [esp + 0x164], esi
lea ecx, [esp + 0x1c]
call fcn.00602ad6
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret