Function at 0x651427b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
push ebx
sub esp, 0x45c
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x414], 0
test byte [0x651530f8], 8
jne 0x65142a00
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x41c]
mov eax, dword [eax]
cmp ecx, 1
je 0x65142840
lea eax, [eax + eax*4]
shl eax, 2
cmp dword [ebp - 0x420], eax
lea esi, [edi + eax]
mov eax, 0
cmovb edi, eax
mov dword [ebp - 0x424], esi
xor ebx, ebx
xor esi, esi
cmp ecx, 2
je 0x65142c00
mov eax, dword [ebp + 8]
mov dword [eax], ebx
test byte [0x651530f8], 8
jne 0x651429b9
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x428], 4
shl eax, 2
cmp eax, dword [ebp - 0x420]
lea ebx, [edi + eax]
mov eax, 0
mov dword [ebp - 0x424], ebx
cmova edi, eax
lea eax, [ebp - 0x3cc]
mov ebx, dword [sym.imp.user32.dll_LoadStringW]
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], eax
mov eax, dword [0x6515b0c8]
mov dword [esp + 4], 0x1fb
mov dword [esp], eax
call ebx
sub esp, 0x10
mov esi, eax
lea eax, [ebp - 0x40c]
mov dword [esp + 8], eax
mov eax, dword [0x6515b0c8]
mov dword [esp + 0xc], 0x20
mov dword [esp + 4], 0x1f4
mov dword [esp], eax
call ebx
sub esp, 0x10
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x414]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x65155600
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x65142a48
mov edx, dword [ebp - 0x42c]
add esi, 1
add edx, 1
lea eax, [esi + edx]
add eax, eax
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x220]
shr eax, 0x10
mov dword [ebp - 0x434], eax
lea eax, [esi + esi]
xor esi, esi
mov dword [ebp - 0x438], eax
lea eax, [edx + edx]
mov dword [ebp - 0x43c], eax
lea esi, [esi]
lea edi, [edi]
xor eax, eax
mov dword [esp + 0x1c], 0
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x410]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x220]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x414]
mov dword [ebp - 0x410], 0x104
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumValueW]
sub esp, 0x20
test eax, eax
je 0x65142a70
mov eax, dword [ebp - 0x414]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
sub esp, 4
mov dword [eax], ebx
test byte [0x651530f8], 8
je 0x6514282d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], str.need__ld_byte_for__ld_entries___ld__n
mov dword [esp + 8], str.get_ports_from_reg
mov dword [esp + 4], 0x651530f8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x41c]
mov dword [esp + 0xc], 0x6515513d
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.get_ports_from_reg
mov dword [esp + 4], 0x651530f8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x651427e1
test byte [0x651530f8], 2
jne 0x65142b20
mov eax, dword fs:[0x18]
xor esi, esi
mov dword [eax + 0x34], ebx
xor ebx, ebx
jmp 0x6514281b
cmp word [ebp - 0x220], 0
je 0x65142930
mov eax, dword [ebp - 0x410]
mov edx, dword [ebp - 0x428]
add ebx, 1
lea ecx, [eax + eax + 2]
lea eax, [ecx + edx]
add esi, eax
mov eax, dword [ebp - 0x42c]
add eax, esi
cmp dword [ebp - 0x41c], 2
cmove esi, eax
test edi, edi
je 0x65142930
cmp esi, dword [ebp - 0x420]
ja 0x65142930
lea eax, [edi + edx]
mov dword [ebp - 0x440], eax
test byte [0x651530f8], 8
jne 0x65142d08
mov edx, dword [ebp - 0x424]
mov dword [ebp - 0x430], ecx
xor eax, eax
mov dword [edi], edx
mov ecx, edx
lea esi, [esi]
movzx edx, word [ebp + eax - 0x220]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x65142ae8
mov ecx, dword [ebp - 0x430]
add dword [ebp - 0x424], ecx
cmp dword [ebp - 0x41c], 2
je 0x65142f72
mov edi, dword [ebp - 0x440]
jmp 0x65142930
mov eax, 0x65155600
mov edi, eax
shr edi, 0x10
je 0x65142c10
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0x65155600
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x6515503b
sub esp, 8
test eax, eax
jne 0x65142c25
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [edx + edx + 0x65155602], 0
jne 0x65142b58
mov ecx, 0x224c
mov dword [ebp - 0x41c], ebx
mov edi, 0x65155600
mov word [ebp - 0x220], cx
lea ecx, [ebp - 0x21e]
jmp 0x65142bcb
cmp ax, 9
je 0x65142c78
cmp ax, 0xa
jne 0x65142c96
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [edx - 1]
test edx, edx
jle 0x65142e88
lea esi, [ebp - 0xfe]
cmp ecx, esi
ja 0x65142e88
mov edx, eax
movzx eax, word [edi]
add edi, 2
cmp ax, 0xd
je 0x65142c60
jbe 0x65142b90
cmp ax, 0x22
je 0x65142cf0
cmp ax, 0x5c
jne 0x65142c89
mov eax, 0x5c5c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x65142bb0
mov dword [ebp - 0x428], 0x14
jmp 0x65142864
movzx eax, ax
mov dword [esp], 0x6515502e
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov edx, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.failed_with__ld_for__s_n
mov dword [esp + 8], str.get_ports_from_reg
mov dword [esp + 4], 0x651530f8
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x65142a55
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x65142bb0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x65142bb0
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x65142f68
mov esi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr si, 0xc
movzx esi, si
movzx ebx, byte [esi + str.0123456789abcdefInitializePrintMonitor]
mov esi, eax
shr si, 8
and esi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [esi + str.0123456789abcdefInitializePrintMonitor]
mov esi, eax
and eax, 0xf
shr si, 4
movzx eax, byte [eax + str.0123456789abcdefInitializePrintMonitor]
and esi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [esi + str.0123456789abcdefInitializePrintMonitor]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x65142bb0
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x65142bb0
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x65142fe1
lea eax, [ebp - 0x220]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x6515503b
sub esp, 8
test eax, eax
jne 0x65142e3c
cmp word [ebp - 0x220], 0
je 0x6514301d
nop
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [ebp + edx*2 - 0x21e], 0
jne 0x65142d50
mov ecx, 0x224c
lea eax, [ebp - 0x220]
mov dword [ebp - 0x444], ebx
mov word [ebp - 0x34c], cx
lea ecx, [ebp - 0x34a]
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x448], esi
jmp 0x65142dc3
cmp ax, 9
je 0x65142ee0
cmp ax, 0xa
jne 0x65142efe
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [edx - 1]
test edx, edx
jle 0x65142e02
lea ebx, [ebp - 0x22a]
cmp ecx, ebx
ja 0x65142e02
mov edx, eax
add dword [ebp - 0x430], 2
mov eax, dword [ebp - 0x430]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x65142ec8
jbe 0x65142d90
cmp ax, 0x22
je 0x65142f50
cmp ax, 0x5c
jne 0x65142ef1
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x65142db0
mov ebx, dword [ebp - 0x444]
mov esi, dword [ebp - 0x448]
mov byte [ecx], 0x22
test eax, eax
jle 0x65143036
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x34c]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
mov eax, dword [ebp - 0x41c]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str._p:_writing_PORT_INFO__ldW__ld___s__n
mov dword [esp + 8], str.get_ports_from_reg
mov dword [esp + 4], 0x651530f8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebp - 0x410]
lea ecx, [eax + eax + 2]
jmp 0x65142ad2
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x41c]
test eax, eax
jle 0x6514300b
mov esi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], si
mov byte [eax], 0
lea eax, [ebp - 0x220]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
jmp 0x65142c25
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x65142db0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x65142db0
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x65143013
mov esi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr si, 0xc
movzx esi, si
movzx ebx, byte [esi + str.0123456789abcdefInitializePrintMonitor]
mov esi, eax
shr si, 8
and esi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [esi + str.0123456789abcdefInitializePrintMonitor]
mov esi, eax
and eax, 0xf
shr si, 4
movzx eax, byte [eax + str.0123456789abcdefInitializePrintMonitor]
and esi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [esi + str.0123456789abcdefInitializePrintMonitor]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x65142db0
mov esi, 0x225c
add ecx, 2
mov word [ecx - 2], si
jmp 0x65142db0
mov byte [ecx], al
add ecx, 1
jmp 0x65142bb0
mov ecx, dword [ebp - 0x424]
xor eax, eax
mov dword [edi + 4], ecx
lea esi, [esi]
movzx edx, word [ebp + eax - 0x3cc]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x65142f80
mov ecx, dword [ebp - 0x424]
add ecx, dword [ebp - 0x438]
xor eax, eax
mov dword [edi + 8], ecx
lea esi, [esi]
movzx edx, word [ebp + eax - 0x40c]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x65142fa8
add ecx, dword [ebp - 0x43c]
mov dword [edi + 0xc], 1
mov dword [edi + 0x10], 0
mov edi, dword [ebp - 0x440]
mov dword [ebp - 0x424], ecx
jmp 0x65142930
lea eax, [ebp - 0x220]
mov dword [esp], 0x6515502e
mov dword [ebp - 0x430], eax
movzx eax, word [ebp - 0x430]
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov edx, eax
jmp 0x65142e3c
lea eax, [ecx + 1]
jmp 0x65142ea9
mov byte [ecx], al
add ecx, 1
jmp 0x65142db0
mov eax, 0x224c
mov byte [ebp - 0x34a], 0x22
lea ecx, [ebp - 0x34a]
mov word [ebp - 0x34c], ax
lea eax, [ecx + 1]
jmp 0x65142e29