Function at 0x654950
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x304
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push ebx
mov dword [esp + 0x30], eax
push esi
push edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov ecx, 0x19
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
xor ebx, ebx
mov ecx, 0x7d
lea edi, [esp + 0x118]
rep stosd dword es:[edi], eax
mov edx, 0x64
lea ecx, [esp + 0xb0]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x44], eax
call fcn.00651e70
mov edx, 0xff
lea ecx, [esp + 0xc]
call fcn.006567f0
call fcn.006563f0
mov ecx, dword [esp + 0xc]
shl ecx, 4
cmp eax, 1
jne 0x6549f0
add ecx, 0x6f2c28
jmp 0x6549f6
add ecx, 0x6f3c28
push 0x28
lea edx, [esp + 0x24]
call fcn.00654450
cmp eax, ebx
jne 0x654b94
push 0x64
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x24]
call fcn.00654590
cmp eax, ebx
jne 0x654b94
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push ebx
lea edx, [esp + 0x54]
push edx
push closesocket
call edi
test eax, eax
jne 0x654b8f
cmp dword [esp + 0x10], ebx
je 0x654b8f
mov edx, 1
lea ecx, [esp + 0xc]
call fcn.006567f0
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
and eax, 1
mov dword [esp + 0xc], eax
jne 0x654ab9
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x11c]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push 0x6ba3e6
push eax
mov dword [esp + 0x34], 0x1f4
call esi
test eax, eax
jne 0x654aa2
cmp dword [esp + 0x18], 1
je 0x654ab9
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x360
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 1
lea ecx, [esp + 0xc]
call fcn.006567f0
and dword [esp + 0xc], 1
jne 0x654b70
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebx
lea eax, [esp + 0xbc]
push eax
push ecx
call edi
test eax, eax
jne 0x654b84
cmp dword [esp + 0x14], ebx
je 0x654b84
mov edi, 1
mov edx, edi
lea ecx, [esp + 0xc]
call fcn.006567f0
and dword [esp + 0xc], edi
jne 0x654b65
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x11c]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
push 0x6ba3e6
push edx
mov dword [esp + 0x34], 0x1f4
call esi
test eax, eax
jne 0x654b45
cmp dword [esp + 0x18], edi
je 0x654b65
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov eax, 0x360
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x35f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret