Function at 0x1004bd10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006c640
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1008d414]
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
call dword [0x1008d3d4]
mov ebx, eax
xor esi, esi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov edi, dword [ebp + 8]
cmp edi, esi
mov byte [ebp - 4], 1
je 0x1004bd84
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jg 0x1004bd84
lea esi, [eax + eax]
mov eax, esi
call fcn.10050610
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.100099b6
mov esi, eax
mov eax, dword [0x100a21f4]
mov edx, dword [eax + 0xc]
mov ecx, 0x100a21f4
call edx
add eax, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [0x100a21f4]
mov edx, dword [eax + 0xc]
mov ecx, 0x100a21f4
mov byte [ebp - 4], 2
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x30]
push edx
push esi
mov byte [ebp - 4], 3
call fcn.1004bb20
mov edi, eax
xor ebx, ebx
add esp, 0x10
cmp edi, ebx
jl 0x1004bef4
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
push eax
push 0x20019
push ebx
push ecx
push edx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x1004be1a
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
push eax
push ebx
lea ecx, [ebp - 0x2c]
push ecx
push ebx
push edx
mov dword [ebp - 0x1c], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
mov dword [ebp - 0x28], esi
call ebx
test eax, eax
je 0x1004be34
jg 0x1004be23
mov edi, eax
jmp 0x1004bef4
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x1004bef4
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
ja 0x1004beef
jb 0x1004be4a
cmp eax, 0xffffffff
ja 0x1004beef
push eax
call fcn.1004f8e5
add esp, 4
test eax, eax
mov dword [ebp - 0x14], eax
je 0x1004beef
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x2c]
push edx
push 0
push eax
push esi
call ebx
test eax, eax
je 0x1004be7a
jg 0x1004be23
mov edi, eax
jmp 0x1004bef4
mov eax, dword [ebp - 0x2c]
cmp eax, 1
je 0x1004bea5
cmp eax, 2
je 0x1004bea5
cmp eax, 4
jne 0x1004be9e
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov word [eax], 3
mov edx, dword [ecx]
mov dword [eax + 8], edx
jmp 0x1004bef4
mov edi, 0x80070032
jmp 0x1004bef4
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x14]
push ebx
mov word [eax], 8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, 1
cmp esi, 0x3fffffff
jle 0x1004bec8
xor eax, eax
jmp 0x1004bede
lea eax, [esi + esi]
call fcn.10050610
mov ecx, dword [ebp - 0x34]
mov eax, esp
push ecx
push esi
push ebx
push eax
call fcn.10001965
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
mov edx, dword [ebp + 0xc]
mov dword [edx + 8], eax
jne 0x1004bef4
mov edi, 0x8007000e
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004bf17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004bf3a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1004f9a8
mov eax, dword [ebp - 0x28]
add esp, 4
test eax, eax
je 0x1004bf54
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
lea esp, [ebp - 0x44]
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.1004f347
mov esp, ebp
pop ebp
ret