Function at 0x1004daa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006eac0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1009140c]
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 [0x100913cc]
xor esi, esi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], esi
xor ebx, ebx
mov dword [ebp - 4], esi
mov dword [ebp - 0x3c], ebx
mov edi, dword [ebp + 8]
cmp edi, esi
mov byte [ebp - 4], 1
je 0x1004db17
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jg 0x1004db17
lea esi, [eax + eax]
mov eax, esi
call fcn.100524c0
mov ecx, dword [ebp - 0x38]
mov eax, esp
push ecx
push esi
push edi
push eax
call fcn.10009c9a
mov esi, eax
mov edx, dword [0x100a61f4]
mov eax, dword [edx + 0xc]
mov ecx, 0x100a61f4
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
mov edx, dword [0x100a61f4]
mov eax, dword [edx + 0xc]
mov ecx, 0x100a61f4
mov byte [ebp - 4], 2
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x24]
push eax
push esi
mov byte [ebp - 4], 3
call fcn.1004d5a0
xor edi, edi
add esp, 0x10
cmp eax, edi
mov dword [ebp - 0x14], eax
jl 0x1004dcce
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x2c]
push ecx
push 0x20019
push edi
push edx
push eax
mov dword [ebp - 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x1004dbb0
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x1c]
push ecx
push edi
lea edx, [ebp - 0x34]
push edx
push edi
push eax
mov dword [ebp - 0x1c], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
mov dword [ebp - 0x30], esi
call edi
test eax, eax
je 0x1004dbcc
jg 0x1004dbba
mov dword [ebp - 0x14], eax
jmp 0x1004dcce
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x14], eax
jmp 0x1004dcce
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
ja 0x1004dcc7
jb 0x1004dbe2
cmp eax, 0xffffffff
ja 0x1004dcc7
push eax
call fcn.10051795
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [ebp - 0x3c], ebx
je 0x1004dcc7
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
push ecx
push ebx
lea edx, [ebp - 0x34]
push edx
push 0
push eax
push esi
call edi
test eax, eax
je 0x1004dc18
jg 0x1004dbba
mov dword [ebp - 0x14], eax
jmp 0x1004dcce
mov eax, dword [ebp - 0x34]
cmp eax, 1
je 0x1004dc83
cmp eax, 2
je 0x1004dc83
cmp eax, 4
jne 0x1004dc3c
mov eax, dword [ebp + 0xc]
mov word [eax], 3
mov ecx, dword [ebx]
mov dword [eax + 8], ecx
jmp 0x1004dcce
cmp eax, 0xb
jne 0x1004dc7a
mov ecx, dword [ebp + 0xc]
mov word [ecx], 5
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x28], edx
mov edx, eax
and eax, 0x7fffffff
mov dword [ebp - 0x24], eax
fild qword [ebp - 0x28]
and edx, 0x80000000
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], 0
fild qword [ebp - 0x28]
fchs
faddp st(1)
fstp qword [ecx + 8]
jmp 0x1004dcce
mov dword [ebp - 0x14], 0x80070032
jmp 0x1004dcce
mov edi, dword [ebp + 0xc]
push ebx
mov word [edi], 8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, 1
cmp esi, 0x3fffffff
jle 0x1004dca3
xor eax, eax
jmp 0x1004dcb9
lea eax, [esi + esi]
call fcn.100524c0
mov edx, dword [ebp - 0x38]
mov eax, esp
push edx
push esi
push ebx
push eax
call fcn.10001967
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
mov dword [edi + 8], eax
jne 0x1004dcce
mov dword [ebp - 0x14], 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 0x1004dcf1
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 0x1004dd14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
call fcn.10051858
mov eax, dword [ebp - 0x30]
add esp, 4
test eax, eax
je 0x1004dd2b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
lea esp, [ebp - 0x4c]
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.100511f7
mov esp, ebp
pop ebp
ret