Function at 0x4f3710
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9466
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x68683c]
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 0x4f392b
mov eax, dword [ebp - 0x108]
test eax, eax
je 0x4f3984
push eax
call fcn.00422360
add esp, 4
mov dword [ebp - 0x100], eax
test eax, eax
jne 0x4f37bd
xor al, al
jmp 0x4f398a
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 0x4f38c1
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x108]
cmp eax, 4
jne 0x4f382f
cmp ecx, 4
jne 0x4f3893
mov edx, dword [ebp - 0x100]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x104]
push eax
call fcn.00452c90
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 0x4f3984
cmp eax, 1
jne 0x4f3861
mov ecx, dword [ebp - 0x100]
push ecx
mov ecx, dword [ebp - 0x104]
call fcn.0044f4b0
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 0x4f3984
cmp eax, 2
jne 0x4f3893
mov edx, dword [ebp - 0x100]
mov ecx, dword [ebp - 0x104]
push edx
call fcn.0044f4b0
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 0x4f3984
mov eax, dword [ebp - 0x100]
push ecx
mov ecx, dword [ebp - 0x104]
push eax
call fcn.004526e0
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 0x4f3984
lea ecx, [ebp - 0xf8]
call fcn.0044f8c0
push ebx
lea ecx, [ebp - 0xf8]
mov dword [ebp - 4], 0
call fcn.004519f0
mov ebx, dword [esi]
lea ecx, [ebp - 0xf8]
call fcn.0044da90
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.0044f980
mov eax, dword [ebp - 0x100]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x4f3984
lea ecx, [ebp - 0x84]
call fcn.0044f8c0
push ebx
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 1
call fcn.004519f0
mov ebx, dword [esi]
lea ecx, [ebp - 0x84]
call fcn.0044da90
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.0044f980
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.005a6cf8
mov esp, ebp
pop ebp
ret