Function at 0x4ac4b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507065
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe8
push esi
push edi
lea edi, [ebp - 0xf4]
mov ecx, 0x3a
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x55370c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xe4], 0
mov esi, esp
lea eax, [ebp - 0x24]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp esi, esp
call fcn.004f90e1
test eax, eax
je 0x4ac546
mov esi, esp
push 0
mov ecx, dword [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_4]
cmp esi, esp
call fcn.004f90e1
mov edx, dword [ebp - 0xe4]
or edx, 1
mov dword [ebp - 0xe4], edx
mov eax, dword [ebp + 8]
jmp 0x4ac801
mov byte [ebp - 0xac], 0
lea eax, [ebp - 0x20]
mov esi, esp
push eax
push 0x20019
push 0
push str.shell
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp esi, esp
call fcn.004f90e1
test eax, eax
jne 0x4ac651
lea edx, [ebp - 0x1c]
mov esi, esp
push edx
push 0x20019
push 0
push 0x51ecc4
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp esi, esp
call fcn.004f90e1
test eax, eax
jne 0x4ac63e
lea ecx, [ebp - 0x18]
mov esi, esp
push ecx
push 0x20019
push 0
push str.command
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp esi, esp
call fcn.004f90e1
test eax, eax
jne 0x4ac62b
mov dword [ebp - 0xb8], 1
mov dword [ebp - 0xc4], 0x7f
mov esi, esp
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0xac]
push ecx
lea edx, [ebp - 0xb8]
push edx
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, esp
call fcn.004f90e1
mov ecx, dword [ebp - 0xc4]
mov byte [ebp + ecx - 0xac], 0
mov esi, esp
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.004f90e1
mov esi, esp
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.004f90e1
mov esi, esp
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.004f90e1
mov esi, esp
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.004f90e1
mov esi, esp
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0xd0]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_4]
cmp esi, esp
call fcn.004f90e1
mov dword [ebp - 4], 0
mov esi, esp
push 0x5c
lea ecx, [ebp - 0xd0]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
cmp esi, esp
call fcn.004f90e1
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0xd8]
add ecx, 1
mov esi, esp
push ecx
lea edx, [ebp - 0xdc]
push edx
lea ecx, [ebp - 0xd0]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
cmp esi, esp
call fcn.004f90e1
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xec], eax
mov byte [ebp - 4], 1
mov esi, esp
mov ecx, dword [ebp - 0xec]
push ecx
lea ecx, [ebp - 0xd0]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
cmp esi, esp
call fcn.004f90e1
mov byte [ebp - 4], 0
mov esi, esp
lea ecx, [ebp - 0xdc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp esi, esp
call fcn.004f90e1
mov esi, esp
push 0
push 0x22
lea ecx, [ebp - 0xd0]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Find]
cmp esi, esp
call fcn.004f90e1
mov dword [ebp - 0xd8], eax
mov esi, esp
lea ecx, [ebp - 0xd0]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
cmp esi, esp
call fcn.004f90e1
sub eax, dword [ebp - 0xd8]
sub eax, 1
mov esi, esp
push eax
lea edx, [ebp - 0xe0]
push edx
lea ecx, [ebp - 0xd0]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Right]
cmp esi, esp
call fcn.004f90e1
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0xf4], eax
mov byte [ebp - 4], 2
mov esi, esp
mov ecx, dword [ebp - 0xf4]
push ecx
lea ecx, [ebp - 0xd0]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
cmp esi, esp
call fcn.004f90e1
mov byte [ebp - 4], 0
mov esi, esp
lea ecx, [ebp - 0xe0]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp esi, esp
call fcn.004f90e1
mov esi, esp
lea edx, [ebp - 0xd0]
push edx
mov ecx, dword [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
cmp esi, esp
call fcn.004f90e1
mov eax, dword [ebp - 0xe4]
or eax, 1
mov dword [ebp - 0xe4], eax
mov dword [ebp - 4], 0xffffffff
mov esi, esp
lea ecx, [ebp - 0xd0]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp esi, esp
call fcn.004f90e1
mov eax, dword [ebp + 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x4ac837]
call fcn.004f9104
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.004f90d3
pop edi
pop esi
add esp, 0xf4
cmp ebp, esp
call fcn.004f90e1
mov esp, ebp
pop ebp
ret