Function at 0x10002010
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xfc
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
test byte [0x10003178], 8
je 0x10002071
xor edi, edi
test esi, esi
je 0x10002033
mov edi, dword [esi]
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.5
mov dword [esp + 0x1c], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__s___p___p__lpdwSize:__lu_n
mov dword [esp + 8], 0x10005134
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.6
mov edi, dword [ebp + 0xc]
test ebx, ebx
sete dl
test edi, edi
sete al
or dl, al
jne 0x10002210
test esi, esi
je 0x10002210
cmp dword [esi], 0x33
jbe 0x10002221
mov edx, ebx
lea eax, [ebp - 0xd4]
lea edi, [ebp - 0xce]
movzx ecx, word [edx]
test cx, cx
je 0x100020bb
add eax, 2
add edx, 2
mov word [eax - 2], cx
cmp eax, edi
jne 0x100020a5
xor edx, edx
mov edi, 0x3f2
mov word [eax], dx
lea eax, [ebp - 0xd4]
mov dword [esp + 4], 0x1000511c
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
jne 0x100021fd
movzx ecx, word [ebx + 6]
lea edx, [ecx - 0x31]
cmp dx, 8
ja 0x100021fd
cmp word [ebx + 8], 0
jne 0x100021fd
mov dword [esi], 0x34
mov esi, dword [ebp + 0xc]
lea ecx, [esi + 6]
mov dword [esi + 6], 0
mov dword [ecx + 0x2a], 0
mov esi, dword [ebp + 0xc]
lea edi, [esi + 0xa]
mov esi, 1
and edi, 0xfffffffc
sub ecx, edi
add ecx, 0x2e
shr ecx, 2
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x34
mov word [eax + 4], si
mov dword [eax + 0x24], 1
lea eax, [ebp - 0xe4]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x80000002
mov dword [esp], 0
call dword [sym.imp.advapi32.dll_RegConnectRegistryW]
sub esp, 0xc
mov edi, eax
test eax, eax
jne 0x100021fd
lea eax, [ebp - 0xd4]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.SystemCurrentControlSetServicesClassPorts
mov dword [esp + 8], str._s_s
mov dword [esp + 4], 0x64
mov dword [esp], eax
call dbg.swprintf
lea eax, [ebp - 0xe0]
mov dword [esp + 8], eax
lea eax, [ebp - 0xd4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xe4]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
je 0x10002238
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0xc]
mov ecx, 8
mov dword [eax + 8], 0x1c
mov dword [eax + 0xc], 0x2580
movzx eax, byte [eax + 0x10]
mov word [ebx + 0x1a], cx
mov byte [ebp - 0xe5], al
and eax, 0xfffffffc
or eax, 1
mov byte [ebx + 0x1c], 0
mov byte [ebx + 0x10], al
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
lea esp, [ebp - 0xc]
mov edi, 0x57
pop ebx
mov eax, edi
pop esi
pop edi
pop ebp
ret 0xc
mov dword [esi], 0x34
mov edi, 0x7a
lea esp, [ebp - 0xc]
pop ebx
mov eax, edi
pop esi
pop edi
pop ebp
ret 0xc
lea eax, [ebp - 0xdc]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xdc], 0x1c
add eax, 8
mov dword [esp + 4], 0x100050e6
mov dword [esp + 0x10], eax
lea eax, [ebp - 0xd8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xd8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0xe0]
sub esp, 0x18
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0xe4]
sub esp, 4
test esi, esi
jne 0x100022cb
cmp dword [ebp - 0xd8], 3
jne 0x100022cb
cmp dword [ebp - 0xdc], 0x1c
jne 0x100022cb
mov dword [esp], eax
call ebx
sub esp, 4
jmp 0x100021fd
mov dword [esp], eax
mov edi, 0x57
call ebx
sub esp, 4
jmp 0x100021fd