Function at 0x1001d5b0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1008d3c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x30]
push ebx
push ebp
push esi
push edi
push eax
lea ecx, [esp + 0x14]
call fcn.1000b0b0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
test eax, eax
mov dword [esp + 0x38], 0
jg 0x1001d5f2
or esi, 0xffffffff
jmp 0x1001d60c
push 0x5c
push ecx
call fcn.10045476
add esp, 8
test eax, eax
jne 0x1001d606
or esi, 0xffffffff
jmp 0x1001d60c
sub eax, dword [esp + 0x10]
mov esi, eax
push esi
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
call fcn.1001d520
inc esi
push esi
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 1
call fcn.1001d580
mov eax, dword [esp + 0x1c]
push str.HKEY_LOCAL_MACHINE
push eax
mov byte [esp + 0x40], 2
mov esi, SysReAllocStringLen
call fcn.1004555c
add esp, 8
test eax, eax
jne 0x1001d655
mov esi, reloc.OLEAUT32.dll_SysReAllocString
call fcn.10078998
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
lea eax, [esp + 0x28]
push 0
mov bl, 3
push eax
mov byte [esp + 0x40], bl
call fcn.1002dbd0
mov ecx, dword [esp + 0x4c]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x30]
push str._sVideo_s
push eax
mov byte [esp + 0x50], 4
call fcn.100083f0
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
add esp, 0x18
mov byte [esp + 0x38], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001d6bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov ebp, dword [esp + 0x20]
jne 0x1001d88d
call fcn.10078998
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x28], esi
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x24]
push eax
push 0
lea ecx, [esp + 0x34]
push ecx
push 0
push 0x10090a11
push edx
mov byte [esp + 0x50], 5
call edi
test eax, eax
jne 0x1001d86f
mov eax, dword [esp + 0x24]
test eax, eax
jbe 0x1001d787
lea ecx, [esp + 0x24]
push ecx
inc eax
push eax
lea ecx, [esp + 0x30]
call fcn.10006e20
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x34]
push edx
push 0
push 0x10090a11
push eax
call edi
mov esi, dword [esp + 0x28]
test esi, esi
jne 0x1001d757
xor ecx, ecx
jmp 0x1001d76f
mov ecx, esi
lea edi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x1001d760
sub ecx, edi
js 0x1001d865
cmp ecx, dword [esi - 8]
jg 0x1001d865
test eax, eax
mov dword [esi - 0xc], ecx
mov byte [ecx + esi], 0
jne 0x1001d86f
push ebp
push esi
call fcn.1004555c
add esp, 8
test eax, eax
jne 0x1001d86f
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov byte [esp + 0x38], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1001d7c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0x38], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001d7e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x38], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001d804
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001d827
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001d84d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
push 0x80070057
call fcn.100011a0
lea eax, [esi - 0x10]
mov byte [esp + 0x38], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001d88d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
mov byte [esp + 0x38], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001d8b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x38], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001d8da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001d8fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001d923
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret