Function at 0x10049910
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1007e226
push eax
mov eax, 0x2814
mov dword fs:[0], esp
call fcn.10068c40
mov eax, dword [0x10098a04]
mov ecx, 0x10098a04
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp], eax
push 0
push 0x207
mov dword [esp + 0x2824], 0
call fcn.10001450
add esp, 8
test eax, eax
je 0x1004996f
push 0x207
push eax
lea ecx, [esp + 8]
call fcn.10004800
mov edx, dword [0x10098a04]
push ebx
push ebp
push esi
mov ecx, 0x10098a04
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x2834]
lea eax, [esp + 0x10]
push eax
lea ebx, [esp + 0x10]
mov byte [esp + 0x282c], 1
call fcn.100497e0
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x2834]
add esp, 4
lea ecx, [esp + 0x14]
push ecx
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor ebx, ebx
cmp eax, ebx
je 0x10049a30
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x2828], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100499f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov dword [esp + 0x2828], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10049a16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2814]
mov dword fs:[0], ecx
add esp, 0x2820
ret
mov esi, dword [esp + 0x10]
push edi
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push esi
push eax
mov dword [esp + 0x38], 0x2800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x18]
push ecx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
je 0x10049abe
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esi - 0x10]
mov byte [esp + 0x282c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10049a92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov dword [esp + 0x282c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10049ab7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x10049b42
cmp dword [esp + 0x1c], 1
je 0x10049ae6
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esi - 0x10]
mov byte [esp + 0x282c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x10049a88
mov ecx, dword [esp + 0x283c]
lea eax, [esp + 0x24]
push eax
call fcn.10005d60
lea eax, [esi - 0x10]
mov byte [esp + 0x282c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10049b18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov dword [esp + 0x282c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10049b3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x2824]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2820
ret