Function at 0x10002050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xfc
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
test byte [0x10003178], 8
je 0x100020b1
xor edi, edi
test ebx, ebx
je 0x10002073
mov edi, dword [ebx]
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x1c], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x18], ebx
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], 0x10003178
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebp + 0xc]
test esi, esi
sete dl
test eax, eax
sete al
or dl, al
jne 0x10002250
test ebx, ebx
je 0x10002250
cmp dword [ebx], 0x33
jbe 0x10002268
mov edx, esi
lea eax, [ebp - 0xd4]
lea edi, [ebp - 0xce]
lea esi, [esi]
movzx ecx, word [edx]
test cx, cx
je 0x100020fe
add eax, 2
add edx, 2
mov word [eax - 2], cx
cmp eax, edi
jne 0x100020e8
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 0x10002242
movzx ecx, word [esi + 6]
lea edx, [ecx - 0x31]
cmp dx, 8
ja 0x10002242
cmp word [esi + 8], 0
jne 0x10002242
mov dword [ebx], 0x34
mov ebx, dword [ebp + 0xc]
lea ecx, [ebx + 4]
mov dword [ebx + 4], 0
mov dword [ecx + 0x2c], 0
mov ebx, dword [ebp + 0xc]
add ebx, 8
mov edi, ebx
and edi, 0xfffffffc
sub ecx, edi
add ecx, 0x30
shr ecx, 2
rep stosd dword es:[edi], eax
mov edi, 1
mov eax, dword [ebp + 0xc]
mov word [eax + 4], di
mov dword [eax], 0x34
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 0x10002242
lea eax, [ebp - 0xd4]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.SystemCurrentControlSetServicesClassPorts
mov dword [esp + 8], str._s_s
mov dword [esp + 4], 0x64
mov dword [esp], eax
call sym._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 0x1000227f
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0xc]
mov ecx, 8
mov dword [eax + 8], 0x1c
mov dword [eax + 0xc], 0x2580
movzx eax, byte [eax + 0x10]
mov word [esi + 0x1a], cx
mov byte [ebp - 0xe5], al
and eax, 0xfffffffc
or eax, 1
mov byte [esi + 0x1c], 0
mov byte [esi + 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 [ebx], 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 + 0x10], ebx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xd8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xdc], 0x1c
mov dword [ebp - 0xd8], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x100050e6
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov esi, dword [sym.imp.advapi32.dll_RegCloseKey]
mov ebx, eax
mov eax, dword [ebp - 0xe0]
sub esp, 0x18
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0xe4]
sub esp, 4
test ebx, ebx
jne 0x1000230c
cmp dword [ebp - 0xd8], 3
jne 0x1000230c
cmp dword [ebp - 0xdc], 0x1c
jne 0x1000230c
mov dword [esp], eax
call esi
sub esp, 4
jmp 0x10002242
mov dword [esp], eax
mov edi, 0x57
call esi
sub esp, 4
jmp 0x10002242