Function at 0x10001f20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x164
mov esi, dword [ebp + 8]
test byte [0x100041a4], 8
je 0x100020ac
mov dword [ebp - 0x150], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10001f58
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x150], eax
test esi, esi
je 0x10002340
mov eax, esi
shr eax, 0x10
je 0x10002310
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x1000206c
movzx eax, word [esi]
test ax, ax
je 0x1000234a
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x10001fa0
mov ecx, 0x224c
mov dword [ebp - 0x14c], esi
mov word [ebp - 0x138], cx
lea ecx, [ebp - 0x136]
jmp 0x10002009
cmp ax, 9
je 0x100022e0
cmp ax, 0xa
jne 0x10002286
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [ebp - 0x16]
lea edi, [edx - 1]
cmp ecx, eax
ja 0x10002040
test edx, edx
jle 0x10002040
mov eax, dword [ebp - 0x14c]
mov edx, edi
movzx eax, word [eax]
add dword [ebp - 0x14c], 2
cmp ax, 0xd
je 0x10002268
jbe 0x10001fd0
cmp ax, 0x22
je 0x100022f8
cmp ax, 0x5c
jne 0x10002279
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x10001ff0
mov byte [ecx], 0x22
test edi, edi
jle 0x10002363
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x138]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov ebx, dword [ebp - 0x150]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__s___p___p__lpdwSize:__lu_n
mov dword [esp + 0x1c], ebx
mov ebx, dword [ebp + 0x10]
mov dword [esp + 8], str.drvGetDefaultCommConfigW
mov dword [esp + 0x18], ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 4], 0x100041a4
mov dword [esp + 0x14], ebx
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov edi, dword [ebp + 0xc]
test esi, esi
sete dl
test edi, edi
sete al
or dl, al
jne 0x10002250
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x10002250
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0x33
jbe 0x10002230
lea ebx, [ebp - 0x138]
mov edx, esi
lea edi, [ebp - 0x132]
mov eax, ebx
lea esi, cs:[esi]
movzx ecx, word [edx]
test cx, cx
je 0x10002106
add eax, 2
add edx, 2
mov word [eax - 2], cx
cmp eax, edi
jne 0x100020f0
xor edi, edi
mov word [eax], di
mov edi, 0x3f2
mov dword [esp + 4], 0x10006120
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
jne 0x1000223b
movzx ecx, word [esi + 6]
lea edx, [ecx - 0x31]
cmp dx, 8
ja 0x1000223b
cmp word [esi + 8], 0
jne 0x1000223b
mov edi, dword [ebp + 0x10]
mov ecx, 0xc
mov dword [edi], 0x34
mov edi, dword [ebp + 0xc]
lea edx, [edi + 4]
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov ecx, 1
mov dword [eax], 0x34
mov word [eax + 4], cx
mov dword [eax + 0x24], 1
lea eax, [ebp - 0x148]
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 0x1000223b
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], ebx
call sym._swprintf
lea eax, [ebp - 0x144]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x148]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
je 0x1000236b
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0xc]
mov edx, 8
mov dword [eax + 8], 0x1c
mov dword [eax + 0xc], 0x2580
movzx eax, byte [eax + 0x10]
mov word [ebx + 0x1a], dx
mov byte [ebp - 0x14c], al
and eax, 0xfffffffc
or eax, 1
mov byte [ebx + 0x1c], 0
mov byte [ebx + 0x10], al
jmp 0x1000223b
mov dword [eax], 0x34
mov edi, 0x7a
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 eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10001ff0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x10002330
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdef]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdef]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdef]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdef]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x10001ff0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10001ff0
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x10001ff0
movzx eax, si
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x1000206c
mov byte [ecx], al
inc ecx
jmp 0x10001ff0
mov eax, str._null_
jmp 0x1000206c
mov ebx, 0x224c
mov byte [ebp - 0x136], 0x22
lea ecx, [ebp - 0x136]
mov word [ebp - 0x138], bx
lea eax, [ecx + 1]
jmp 0x1000205b
lea eax, [ebp - 0x140]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x140], 0x1c
add eax, 8
mov dword [esp + 4], 0x100060d8
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x13c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x13c], 0
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 - 0x144]
sub esp, 0x18
mov dword [esp], eax
call esi
sub esp, 4
test ebx, ebx
jne 0x100023fe
cmp dword [ebp - 0x13c], 3
jne 0x100023fe
cmp dword [ebp - 0x140], 0x1c
jne 0x100023fe
mov eax, dword [ebp - 0x148]
mov dword [esp], eax
call esi
sub esp, 4
jmp 0x1000223b
mov eax, dword [ebp - 0x148]
mov edi, 0x57
mov dword [esp], eax
call esi
sub esp, 4
jmp 0x1000223b