Function at 0x512060
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6279ad
push eax
mov edx, dword [0x6d231c]
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 0x5128b0
push 0x6bc0f4
push edx
call fcn.005e72b0
mov esi, eax
add esp, 8
test esi, esi
je 0x5128b0
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 0x5128b0
lea eax, [ecx + ecx + 1]
push eax
call fcn.005ffe3f
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x20], ebp
je 0x5128b0
push ebp
push esi
call fcn.00577f20
mov cx, word [ebp]
mov eax, 0x6bc0f0
add esp, 8
cmp cx, word [eax]
jne 0x5128b0
mov edx, dword [0x6cd768]
mov dword [esp + 0x1c], edx
push eax
push ebp
mov dword [esp + 0x16c], 0
call fcn.005e72b0
mov edx, eax
add esp, 8
test edx, edx
je 0x512893
or esi, 0xffffffff
mov edi, 0x6bc0f0
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 0x512893
cmp byte [edx], 0x3b
je 0x512893
mov eax, dword [0x6cd768]
mov dword [esp + 0x10], eax
push edx
lea ecx, [esp + 0x14]
push 0x6a10a0
push ecx
mov byte [esp + 0x170], 1
call fcn.005fc86b
mov edx, dword [esp + 0x1c]
push 0x3b
push edx
call fcn.005e71f0
add esp, 0x14
test eax, eax
je 0x51218b
mov byte [eax], 0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push 0x6a10a0
push ecx
call fcn.005fc86b
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 0
call fcn.00603a3c
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 0x5128a0
mov al, byte [edx + 5]
cmp al, 0x2d
jne 0x5128a0
cmp byte [edx + 0xb], 0x2d
jne 0x5128a0
cmp byte [edx + 0x11], 0x2d
jne 0x5128a0
push edx
push 0x4aa
mov ecx, ebx
call fcn.00602f2a
mov edx, dword [0x6cd768]
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.00602ef8
test eax, eax
jne 0x5122d6
push 0x6bc0ec
push ebp
call fcn.005e72b0
mov edx, eax
add esp, 8
test edx, edx
je 0x5122d6
mov edi, 0x6bc0ec
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 0x5122d6
cmp byte [edx], 0x3b
je 0x5122d6
mov ecx, dword [0x6cd768]
mov dword [esp + 0x10], ecx
push edx
lea edx, [esp + 0x14]
push 0x6a10a0
push edx
mov byte [esp + 0x170], 3
call fcn.005fc86b
mov eax, dword [esp + 0x1c]
push 0x3b
push eax
call fcn.005e71f0
add esp, 0x14
test eax, eax
je 0x51229d
mov byte [eax], 0
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push 0x6a10a0
push edx
call fcn.005fc86b
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 2
call fcn.00603a3c
mov eax, dword [esp + 0x18]
mov ecx, ebx
push eax
push 0x4a5
call fcn.00602f2a
lea ecx, [esp + 0xf4]
push esi
push ecx
push 0x4b0
mov ecx, ebx
call fcn.00602ef8
test eax, eax
jne 0x51239d
push 0x6bc0e8
push ebp
call fcn.005e72b0
mov edx, eax
add esp, 8
test edx, edx
je 0x51239d
mov edi, 0x6bc0e8
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 0x51239d
cmp byte [edx], 0x3b
je 0x51239d
mov eax, dword [0x6cd768]
mov dword [esp + 0x10], eax
push edx
lea ecx, [esp + 0x14]
push 0x6a10a0
push ecx
mov byte [esp + 0x170], 4
call fcn.005fc86b
mov edx, dword [esp + 0x1c]
push 0x3b
push edx
call fcn.005e71f0
add esp, 0x14
test eax, eax
je 0x512364
mov byte [eax], 0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push 0x6a10a0
push ecx
call fcn.005fc86b
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 2
call fcn.00603a3c
mov edx, dword [esp + 0x18]
mov ecx, ebx
push edx
push 0x4b0
call fcn.00602f2a
lea eax, [esp + 0x128]
push esi
push eax
push 0x413
mov ecx, ebx
call fcn.00602ef8
test eax, eax
jne 0x512465
push 0x6bc0e4
push ebp
call fcn.005e72b0
mov edx, eax
add esp, 8
test edx, edx
je 0x512465
mov edi, 0x6bc0e4
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 0x512465
cmp byte [edx], 0x3b
je 0x512465
mov ecx, dword [0x6cd768]
mov dword [esp + 0x10], ecx
push edx
lea edx, [esp + 0x14]
push 0x6a10a0
push edx
mov byte [esp + 0x170], 5
call fcn.005fc86b
mov eax, dword [esp + 0x1c]
push 0x3b
push eax
call fcn.005e71f0
add esp, 0x14
test eax, eax
je 0x51242c
mov byte [eax], 0
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push 0x6a10a0
push edx
call fcn.005fc86b
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 2
call fcn.00603a3c
mov eax, dword [esp + 0x18]
mov ecx, ebx
push eax
push 0x413
call fcn.00602f2a
push 0x6bc0e0
push ebp
call fcn.005e72b0
mov edx, eax
add esp, 8
test edx, edx
je 0x512527
mov edi, 0x6bc0e0
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 0x512527
cmp byte [edx], 0x3b
je 0x512527
mov ecx, dword [0x6cd768]
mov dword [esp + 0x10], ecx
push edx
lea edx, [esp + 0x14]
push 0x6a10a0
push edx
mov byte [esp + 0x170], 6
call fcn.005fc86b
mov eax, dword [esp + 0x1c]
push 0x3b
push eax
call fcn.005e71f0
add esp, 0x14
test eax, eax
je 0x5124df
mov byte [eax], 0
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push 0x6a10a0
push edx
call fcn.005fc86b
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 2
call fcn.00603a3c
mov eax, dword [esp + 0x18]
push 0x6aa0b0
push eax
call fcn.005e7640
add esp, 8
test eax, eax
jne 0x512527
mov dword [ebx + 0xb4], 1
mov eax, dword [ebx + 0xb4]
test eax, eax
je 0x5127fa
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
push ecx
push 1
push 0
push 0x6a0fa4
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 0x51256e
mov edx, dword [0x6d2354]
mov dword [esp + 0x10], edx
mov edx, dword [0x6d2c3c]
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 0x5125e3
mov eax, dword [0x6d2c3c]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [0x6d2354]
push edx
push 0
push 0
push eax
push ecx
mov dword [esp + 0x2c], esi
call ebp
test eax, eax
je 0x5125e3
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 [0x6d2c38]
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 0x512657
mov ecx, dword [0x6d2c38]
lea edx, [esp + 0x14]
lea eax, [esp + 0x58]
push edx
mov edx, dword [0x6d2354]
push eax
push 0
push 0
push ecx
push edx
mov dword [esp + 0x2c], esi
call ebp
test eax, eax
je 0x512657
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 [0x6d2c34]
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 0x5126d4
mov ecx, dword [0x6d2c34]
lea edx, [esp + 0x14]
lea eax, [esp + 0x8c]
push edx
mov edx, dword [0x6d2354]
push eax
push 0
push 0
push ecx
push edx
mov dword [esp + 0x2c], esi
call ebp
test eax, eax
je 0x5126d4
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.00602ef8
test eax, eax
je 0x512729
lea esi, [esp + 0xc0]
lea eax, [esp + 0x8c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x512720
test cl, cl
je 0x51271c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x512720
add eax, 2
add esi, 2
test cl, cl
jne 0x5126fc
xor eax, eax
jmp 0x512725
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x512733
mov dword [ebx + 0xb4], 0
mov eax, dword [ebx + 0xb4]
test eax, eax
je 0x5127e1
mov al, byte [esp + 0x24]
test al, al
je 0x51275a
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
push 0x4b0
call fcn.00602f2a
mov al, byte [esp + 0x58]
test al, al
je 0x512773
lea ecx, [esp + 0x58]
push ecx
push 0x413
mov ecx, ebx
call fcn.00602f2a
lea edx, [esp + 0xf4]
push 0x32
push edx
push 0x4b0
mov ecx, ebx
call fcn.00602ef8
test eax, eax
je 0x5127a0
lea edi, [esp + 0xf4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x5127aa
mov dword [ebx + 0xb4], 0
lea eax, [esp + 0x128]
push 0x32
push eax
push 0x413
mov ecx, ebx
call fcn.00602ef8
test eax, eax
je 0x5127d7
lea edi, [esp + 0x128]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x5127e1
mov dword [ebx + 0xb4], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [0x6d2354]
cmp eax, ecx
je 0x5127f6
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 0x6d5058
mov ecx, ebx
call fcn.006030ef
push 0x4a7
mov ecx, ebx
call fcn.00602ea0
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.005ffe68
mov eax, dword [ebx + 0xb4]
add esp, 4
test eax, eax
je 0x512882
mov ecx, dword [ebx + 0x1c]
mov esi, dword [sym.imp.USER32.dll_SetActiveWindow]
push ecx
call esi
push eax
call fcn.006003a2
mov edx, dword [ebx + 0x8c]
push edx
call esi
push eax
call fcn.006003a2
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.00603a3c
mov dword [esp + 0x164], 0xffffffff
jmp 0x5128a7
mov dword [esp + 0x164], esi
lea ecx, [esp + 0x1c]
call fcn.00603a3c
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret