Function at 0x640c1f90
Capabilities:
Query or enumerate registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x178
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
mov dword [ebp - 0x160], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x164], eax
test byte [0x640c41a4], 8
je 0x640c2132
mov dword [ebp - 0x168], 0
test eax, eax
je 0x640c1fde
mov eax, dword [eax]
mov dword [ebp - 0x168], eax
test esi, esi
je 0x640c23d0
mov eax, esi
shr eax, 0x10
je 0x640c23a0
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 0x640c20ec
movzx eax, word [esi]
test ax, ax
je 0x640c23da
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x640c2020
mov ecx, 0x224c
mov dword [ebp - 0x15c], esi
mov word [ebp - 0x144], cx
lea ecx, [ebp - 0x142]
jmp 0x640c2089
cmp ax, 9
je 0x640c2370
cmp ax, 0xa
jne 0x640c2316
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [ebp - 0x22]
lea edi, [edx - 1]
cmp ecx, eax
ja 0x640c20c0
test edx, edx
jle 0x640c20c0
mov eax, dword [ebp - 0x15c]
mov edx, edi
movzx eax, word [eax]
add dword [ebp - 0x15c], 2
cmp ax, 0xd
je 0x640c22f8
jbe 0x640c2050
cmp ax, 0x22
je 0x640c2388
cmp ax, 0x5c
jne 0x640c2309
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x640c2070
mov byte [ecx], 0x22
test edi, edi
jle 0x640c23f3
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x144]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov ebx, dword [ebp - 0x168]
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 - 0x164]
mov dword [esp + 8], str.drvGetDefaultCommConfigW
mov dword [esp + 0x18], ebx
mov ebx, dword [ebp - 0x160]
mov dword [esp + 4], 0x640c41a4
mov dword [esp + 0x14], ebx
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebp - 0x160]
test esi, esi
sete dl
test eax, eax
sete al
or dl, al
jne 0x640c22e0
mov eax, dword [ebp - 0x164]
test eax, eax
je 0x640c22e0
cmp dword [eax], 0x33
jbe 0x640c22c0
lea ebx, [ebp - 0x144]
mov edx, esi
lea edi, [ebp - 0x13e]
mov eax, ebx
lea esi, [esi]
movzx ecx, word [edx]
test cx, cx
je 0x640c218e
add eax, 2
add edx, 2
mov word [eax - 2], cx
cmp eax, edi
jne 0x640c2178
xor edi, edi
mov word [eax], di
mov edi, 0x3f2
mov dword [esp + 4], 0x640c6120
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
jne 0x640c22cb
movzx edx, word [esi + 6]
sub edx, 0x31
cmp dx, 8
ja 0x640c22cb
cmp word [esi + 8], 0
jne 0x640c22cb
mov edi, dword [ebp - 0x164]
mov ecx, 0xc
mov dword [edi], 0x34
mov edi, dword [ebp - 0x160]
lea edx, [edi + 4]
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x160]
mov eax, 1
mov word [edi + 4], ax
lea eax, [ebp - 0x154]
mov dword [edi], 0x34
mov dword [edi + 0x24], 1
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 0x640c22cb
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 - 0x150]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x154]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
je 0x640c23fb
mov ebx, dword [ebp - 0x160]
movzx eax, byte [ebx + 0x10]
mov dword [ebx + 8], 0x1c
mov dword [ebx + 0xc], 0x2580
mov byte [ebp - 0x15c], al
and eax, 0xfffffffc
or eax, 1
mov byte [ebx + 0x1c], 0
mov byte [ebx + 0x10], al
mov eax, 8
mov word [ebx + 0x1a], ax
jmp 0x640c22cb
mov dword [eax], 0x34
mov edi, 0x7a
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
lea esp, [ebp - 0x10]
mov edi, 0x57
pop ecx
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x640c2070
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x640c23c0
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + 0x640c63b4]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + 0x640c63b4]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + 0x640c63b4]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + 0x640c63b4]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x640c2070
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x640c2070
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x640c2070
movzx eax, si
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x640c20ec
mov byte [ecx], al
inc ecx
jmp 0x640c2070
mov eax, str._null_
jmp 0x640c20ec
mov ebx, 0x224c
mov byte [ebp - 0x142], 0x22
lea ecx, [ebp - 0x142]
mov word [ebp - 0x144], bx
lea eax, [ecx + 1]
jmp 0x640c20db
lea eax, [ebp - 0x14c]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x14c], 0x1c
add eax, 8
mov dword [esp + 4], 0x640c60d8
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x148]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x148], 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 - 0x150]
sub esp, 0x18
mov dword [esp], eax
call esi
sub esp, 4
test ebx, ebx
jne 0x640c2491
cmp dword [ebp - 0x148], 3
jne 0x640c2491
cmp dword [ebp - 0x14c], 0x1c
jne 0x640c2491
mov eax, dword [ebp - 0x154]
mov dword [esp], eax
call esi
sub esp, 4
jmp 0x640c22cb
mov eax, dword [ebp - 0x154]
mov edi, 0x57
mov dword [esp], eax
call esi
sub esp, 4
jmp 0x640c22cb