Function at 0x4275b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x18]
push edi
xor ebx, ebx
push eax
lea ecx, [esp + 0x28]
push ebx
push ecx
push ebx
push 0x4a7fd8
push 0x80000004
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], ebx
call esi
test eax, eax
jne 0x427858
mov edx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.kernel32.dll_GetProcessHeap]
push edx
push ebx
call ebp
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x28], edi
je 0x427858
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x24]
push eax
push edi
push ecx
push ebx
push 0x4a7fd8
push 0x80000004
call esi
test eax, eax
je 0x427643
push edi
push ebx
call ebp
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
mov al, byte [edi]
mov ebp, edi
cmp al, bl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
je 0x427849
cmp dword [esp + 0x10], 5
jge 0x427849
push ebp
lea edx, [esp + 0x30]
push 0x4a7fd4
push edx
call fcn.00449ffa
mov esi, dword [esp + 0x2c]
add esp, 0xc
and esi, 1
jne 0x42768f
push ebp
call fcn.0044a3ed
add esp, 4
mov dword [esp + 0x18], eax
cmp esi, ebx
je 0x427820
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x81f0], 0xffffffff
jne 0x4276ef
mov esi, 0x4a7fc4
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4276cf
cmp cl, bl
je 0x4276cb
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4276cf
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4276ab
xor eax, eax
jmp 0x4276d4
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4276ef
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [ecx + 0x81f0], eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
push 0x4a7fb0
push ebp
call fcn.0044aef0
add esp, 8
test eax, eax
je 0x427718
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [eax + 0x81f4], edx
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x81f8], 0xffffffff
jne 0x427770
mov esi, 0x4a7f98
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x427750
cmp cl, bl
je 0x42774c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x427750
add eax, 2
add esi, 2
cmp cl, bl
jne 0x42772c
xor eax, eax
jmp 0x427755
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x427770
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [ecx + 0x81f8], eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x14]
cmp dword [edx + 0x81fc], 0xffffffff
jne 0x4277c8
mov esi, 0x4a7f88
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4277a8
cmp cl, bl
je 0x4277a4
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4277a8
add eax, 2
add esi, 2
cmp cl, bl
jne 0x427784
xor eax, eax
jmp 0x4277ad
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4277c8
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [ecx + 0x81fc], eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x14]
cmp dword [edx + 0x8200], 0xffffffff
jne 0x427820
mov esi, 0x4a7f78
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x427800
cmp cl, bl
je 0x4277fc
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x427800
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4277dc
xor eax, eax
jmp 0x427805
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x427820
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [ecx + 0x8200], eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, dword [esp + 0x28]
mov al, byte [ecx + ebp + 1]
lea ebp, [ecx + ebp + 1]
mov ecx, dword [esp + 0x20]
inc ecx
cmp al, bl
mov dword [esp + 0x20], ecx
jne 0x42765b
push edi
push ebx
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret