Function at 0x653960
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.00650e80
mov edx, 0xff
lea ecx, [esp + 0xc]
call fcn.00655800
call fcn.00655400
mov ecx, dword [esp + 0xc]
shl ecx, 4
cmp eax, 1
jne 0x653a00
add ecx, 0x6f1c28
jmp 0x653a06
add ecx, 0x6f2c28
push 0x28
lea edx, [esp + 0x24]
call fcn.00653460
cmp eax, ebx
jne 0x653ba4
push 0x64
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x24]
call fcn.006535a0
cmp eax, ebx
jne 0x653ba4
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 0x653b9f
cmp dword [esp + 0x10], ebx
je 0x653b9f
mov edx, 1
lea ecx, [esp + 0xc]
call fcn.00655800
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
and eax, 1
mov dword [esp + 0xc], eax
jne 0x653ac9
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 0x6b93e6
push eax
mov dword [esp + 0x34], 0x1f4
call esi
test eax, eax
jne 0x653ab2
cmp dword [esp + 0x18], 1
je 0x653ac9
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.00655800
and dword [esp + 0xc], 1
jne 0x653b80
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 0x653b94
cmp dword [esp + 0x14], ebx
je 0x653b94
mov edi, 1
mov edx, edi
lea ecx, [esp + 0xc]
call fcn.00655800
and dword [esp + 0xc], edi
jne 0x653b75
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 0x6b93e6
push edx
mov dword [esp + 0x34], 0x1f4
call esi
test eax, eax
jne 0x653b55
cmp dword [esp + 0x18], edi
je 0x653b75
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