Function at 0x4e7a60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ace26
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x676664]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
lea edx, [ebp - 0x108]
push edx
push 0
mov dword [ebp - 0x104], ecx
lea ecx, [ebp - 0x10c]
push ecx
push 0
push edi
push eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x10c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
mov byte [ebp - 0xf9], 0
test ebx, ebx
jne 0x4e7c7b
mov eax, dword [ebp - 0x108]
test eax, eax
je 0x4e7cd4
push eax
call fcn.004176a0
add esp, 4
mov dword [ebp - 0x100], eax
test eax, eax
jne 0x4e7b0d
xor al, al
jmp 0x4e7cda
mov ecx, dword [ebp - 0x110]
lea edx, [ebp - 0x108]
push edx
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test ebx, ebx
jne 0x4e7c11
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x108]
cmp eax, 4
jne 0x4e7b7f
cmp ecx, 4
jne 0x4e7be3
mov edx, dword [ebp - 0x100]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x104]
push eax
call fcn.00447760
mov eax, dword [ebp - 0x100]
push eax
mov byte [ebp - 0xf9], 1
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x4e7cd4
cmp eax, 1
jne 0x4e7bb1
mov ecx, dword [ebp - 0x100]
push ecx
mov ecx, dword [ebp - 0x104]
call fcn.00443f80
mov eax, dword [ebp - 0x100]
push eax
mov byte [ebp - 0xf9], 1
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x4e7cd4
cmp eax, 2
jne 0x4e7be3
mov edx, dword [ebp - 0x100]
mov ecx, dword [ebp - 0x104]
push edx
call fcn.00443f80
mov eax, dword [ebp - 0x100]
push eax
mov byte [ebp - 0xf9], 1
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x4e7cd4
mov eax, dword [ebp - 0x100]
push ecx
mov ecx, dword [ebp - 0x104]
push eax
call fcn.004471b0
mov eax, dword [ebp - 0x100]
push eax
mov byte [ebp - 0xf9], 1
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x4e7cd4
lea ecx, [ebp - 0xf8]
call fcn.00444390
push ebx
lea ecx, [ebp - 0xf8]
mov dword [ebp - 4], 0
call fcn.004464c0
mov ebx, dword [esi]
lea ecx, [ebp - 0xf8]
call fcn.00410b70
mov edx, dword [ebx + 0x2c]
push eax
push str.RegistryQueryError2
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push edi
push str.ValueName
mov ecx, esi
call edx
lea ecx, [ebp - 0xf8]
mov dword [ebp - 4], 0xffffffff
call fcn.00444450
mov eax, dword [ebp - 0x100]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x4e7cd4
lea ecx, [ebp - 0x84]
call fcn.00444390
push ebx
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 1
call fcn.004464c0
mov ebx, dword [esi]
lea ecx, [ebp - 0x84]
call fcn.00410b70
mov edx, dword [ebx + 0x2c]
push eax
push str.RegistryQueryError
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push edi
push str.ValueName
mov ecx, esi
call edx
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 0xffffffff
call fcn.00444450
mov al, byte [ebp - 0xf9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059af98
mov esp, ebp
pop ebp
ret