Function at 0x1004d1d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006dd60
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1008f414]
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 [0x1008f3d4]
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 0x1004d247
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jg 0x1004d247
lea esi, [eax + eax]
mov eax, esi
call fcn.10051b00
mov ecx, dword [ebp - 0x38]
mov eax, esp
push ecx
push esi
push edi
push eax
call fcn.100098d9
mov esi, eax
mov edx, dword [0x100a41f4]
mov eax, dword [edx + 0xc]
mov ecx, 0x100a41f4
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
mov edx, dword [0x100a41f4]
mov eax, dword [edx + 0xc]
mov ecx, 0x100a41f4
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.1004cfe0
xor edi, edi
add esp, 0x10
cmp eax, edi
mov dword [ebp - 0x14], eax
jl 0x1004d3fe
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 0x1004d2e0
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 0x1004d2fc
jg 0x1004d2ea
mov dword [ebp - 0x14], eax
jmp 0x1004d3fe
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x14], eax
jmp 0x1004d3fe
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
ja 0x1004d3f7
jb 0x1004d312
cmp eax, 0xffffffff
ja 0x1004d3f7
push eax
call fcn.10050dd5
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [ebp - 0x3c], ebx
je 0x1004d3f7
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 0x1004d348
jg 0x1004d2ea
mov dword [ebp - 0x14], eax
jmp 0x1004d3fe
mov eax, dword [ebp - 0x34]
cmp eax, 1
je 0x1004d3b3
cmp eax, 2
je 0x1004d3b3
cmp eax, 4
jne 0x1004d36c
mov eax, dword [ebp + 0xc]
mov word [eax], 3
mov ecx, dword [ebx]
mov dword [eax + 8], ecx
jmp 0x1004d3fe
cmp eax, 0xb
jne 0x1004d3aa
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 0x1004d3fe
mov dword [ebp - 0x14], 0x80070032
jmp 0x1004d3fe
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 0x1004d3d3
xor eax, eax
jmp 0x1004d3e9
lea eax, [esi + esi]
call fcn.10051b00
mov edx, dword [ebp - 0x38]
mov eax, esp
push edx
push esi
push ebx
push eax
call fcn.10001958
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
mov dword [edi + 8], eax
jne 0x1004d3fe
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 0x1004d421
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 0x1004d444
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
call fcn.10050e98
mov eax, dword [ebp - 0x30]
add esp, 4
test eax, eax
je 0x1004d45b
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.10050837
mov esp, ebp
pop ebp
ret