Function at 0x654dc0
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.006522e0
mov edx, 0xff
lea ecx, [esp + 0xc]
call fcn.00656c60
call fcn.00656860
mov ecx, dword [esp + 0xc]
shl ecx, 4
cmp eax, 1
jne 0x654e60
add ecx, 0x6f2c28
jmp 0x654e66
add ecx, 0x6f3c28
push 0x28
lea edx, [esp + 0x24]
call fcn.006548c0
cmp eax, ebx
jne 0x655004
push 0x64
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x24]
call fcn.00654a00
cmp eax, ebx
jne 0x655004
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 0x654fff
cmp dword [esp + 0x10], ebx
je 0x654fff
mov edx, 1
lea ecx, [esp + 0xc]
call fcn.00656c60
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
and eax, 1
mov dword [esp + 0xc], eax
jne 0x654f29
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 0x6ba446
push eax
mov dword [esp + 0x34], 0x1f4
call esi
test eax, eax
jne 0x654f12
cmp dword [esp + 0x18], 1
je 0x654f29
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.00656c60
and dword [esp + 0xc], 1
jne 0x654fe0
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 0x654ff4
cmp dword [esp + 0x14], ebx
je 0x654ff4
mov edi, 1
mov edx, edi
lea ecx, [esp + 0xc]
call fcn.00656c60
and dword [esp + 0xc], edi
jne 0x654fd5
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 0x6ba446
push edx
mov dword [esp + 0x34], 0x1f4
call esi
test eax, eax
jne 0x654fb5
cmp dword [esp + 0x18], edi
je 0x654fd5
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