Function at 0x10005300
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x48
mov esi, dword [ebp + 0xc]
test byte [0x1000c02c], 8
jne 0x100053d8
test esi, esi
je 0x1000576e
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x1000576e
mov eax, esi
call sym._get_root_key
mov ebx, eax
test eax, eax
je 0x100057be
mov eax, esi
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x20]
call sym._split_reg_path
mov esi, eax
test eax, eax
js 0x100053c9
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x28]
mov dword [ebp - 0x24], 0
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov dword [esp + 4], eax
mov eax, dword [sym.imp.advapi32.dll_RegGetValueW]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0xffff
mov dword [esp + 8], edi
mov dword [esp], ebx
mov dword [ebp - 0x34], eax
call eax
mov dword [ebp - 0x2c], eax
sub esp, 0x1c
test eax, eax
je 0x10005418
mov ebx, eax
movzx eax, ax
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
mov dword [ebp - 0x2c], eax
test edi, edi
je 0x100053c6
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov esi, dword [ebp - 0x2c]
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0_1
mov edi, dword [ebp + 0x10]
mov dword [esp + 0xc], str.__s__p__n
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
mov dword [esp + 8], str.WshShell3_RegRead
mov dword [esp + 4], 0x1000c02c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10005319
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, eax
test eax, eax
je 0x100057f0
lea eax, [ebp - 0x24]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x38], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffff
mov dword [esp + 8], edi
mov eax, dword [ebp - 0x30]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
call eax
mov edx, dword [ebp - 0x38]
sub esp, 0x1c
test eax, eax
mov dword [ebp - 0x2c], eax
jne 0x100055f0
mov eax, dword [ebp - 0x28]
cmp eax, 4
je 0x10005738
ja 0x100055a8
cmp eax, 3
jne 0x10005560
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], 0xc
call dword [sym.imp.oleaut32.dll_SafeArrayCreate]
mov edx, dword [ebp - 0x2c]
sub esp, 0xc
test eax, eax
mov ecx, eax
je 0x10005760
lea eax, [ebp - 0x18]
mov dword [ebp - 0x38], edx
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [ebp - 0x34], ecx
call dword [sym.imp.oleaut32.dll_SafeArrayAccessData]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
sub esp, 8
test eax, eax
mov dword [ebp - 0x2c], eax
js 0x100057c8
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x1000552b
mov dword [ebp - 0x34], edi
mov ebx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x38], ecx
lea esi, [esi]
mov edi, eax
mov ecx, 0x11
shl edi, 4
mov word [ebx + edi], cx
movzx ecx, byte [edx + eax]
add eax, 1
mov byte [ebx + edi + 8], cl
cmp eax, esi
jb 0x10005508
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x38], edx
mov ebx, 0x200c
mov dword [esp], ecx
mov dword [ebp - 0x34], ecx
call dword [sym.imp.oleaut32.dll_SafeArrayUnaccessData]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
sub esp, 4
mov word [eax], bx
mov dword [eax + 8], ecx
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x100053b6
test eax, eax
je 0x10005708
mov eax, dword [ebp + 0x10]
mov ebx, 8
mov word [eax], bx
mov dword [esp], edx
mov dword [ebp - 0x2c], edx
call dword [sym.imp.oleaut32.dll_SysAllocString]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x2c]
sub esp, 4
test eax, eax
mov dword [ecx + 8], eax
mov dword [esp], edx
je 0x100057fc
call dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x2c], esi
jmp 0x100053b6
cmp eax, 7
jne 0x10005708
cmp word [edx], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
je 0x1000561b
mov eax, edx
mov ecx, 1
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x100055d0
add eax, 2
lea ebx, [ecx + 1]
cmp word [eax], 0
je 0x10005618
mov ecx, ebx
jmp 0x100055d0
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
mov ecx, dword [ebp - 0x2c]
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
mov dword [ebp - 0x2c], eax
jmp 0x100053b6
mov dword [ebp - 0x14], ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x2c], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], 0xc
call dword [sym.imp.oleaut32.dll_SafeArrayCreate]
mov edx, dword [ebp - 0x2c]
sub esp, 0xc
test eax, eax
mov ebx, eax
je 0x10005760
lea eax, [ebp - 0x18]
mov dword [ebp - 0x34], edx
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.oleaut32.dll_SafeArrayAccessData]
mov edx, dword [ebp - 0x34]
sub esp, 8
test eax, eax
mov dword [ebp - 0x2c], eax
js 0x100057e8
cmp word [edx], 0
je 0x100056d5
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x38], ebx
mov ebx, edx
nop
mov edx, 8
mov word [eax], dx
mov esi, dword [ebp - 0x18]
mov dword [esp], ebx
call dword [sym.imp.oleaut32.dll_SysAllocString]
mov dword [esi + 8], eax
sub esp, 4
cmp word [ebx], 0
je 0x10005778
mov eax, ebx
lea esi, cs:[esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x100056b0
sub eax, ebx
add eax, 2
add ebx, eax
mov eax, dword [ebp - 0x18]
add eax, 0x10
cmp word [ebx], 0
mov dword [ebp - 0x18], eax
jne 0x10005680
mov edx, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x38]
mov dword [ebp - 0x34], edx
mov dword [esp], ebx
call dword [sym.imp.oleaut32.dll_SafeArrayUnaccessData]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x34]
mov ecx, 0x200c
sub esp, 4
mov word [eax], cx
mov dword [eax + 8], ebx
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x100053b6
test byte [0x1000c02c], 1
jne 0x10005782
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x2c], 0x80004005
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_VariantInit]
sub esp, 4
jmp 0x100053b6
mov eax, dword [ebp + 0x10]
mov ecx, 3
mov word [eax], cx
mov eax, dword [edx]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 8], eax
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x1000559c
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x1000559c
mov esi, 0x80004003
jmp 0x100053c9
mov eax, 2
jmp 0x100056be
mov dword [ebp - 0x2c], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.value_type__ld_not_supported_n
mov dword [esp + 8], str.WshShell3_RegRead
mov dword [esp + 4], 0x1000c02c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.1_1
mov edx, dword [ebp - 0x2c]
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x1000571a
mov esi, 0x80070003
jmp 0x100053c9
mov dword [ebp - 0x34], edx
mov dword [esp], ecx
call dword [sym.imp.oleaut32.dll_SafeArrayDestroy]
mov edx, dword [ebp - 0x34]
sub esp, 4
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x10005721
mov dword [ebp - 0x34], edx
mov dword [esp], ebx
jmp 0x100057ce
mov dword [ebp - 0x2c], 0x8007000e
jmp 0x100053b6
call dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x2c], 0x8007000e
jmp 0x10005721