Function at 0x6514d900
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
push ebx
sub esp, 0x32c
mov dword [ebp - 0x2ec], eax
mov dword [ebp - 0x2f0], ecx
mov dword [ebp - 0x2e8], 0
test byte [0x65157018], 8
jne 0x6514db30
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x2ec]
mov eax, dword [eax]
cmp ecx, 1
je 0x6514d990
lea eax, [eax + eax*4]
shl eax, 2
cmp dword [ebp - 0x2f0], eax
lea esi, [edi + eax]
mov eax, 0
cmovb edi, eax
mov dword [ebp - 0x2f4], esi
xor ebx, ebx
xor esi, esi
cmp ecx, 2
je 0x6514dcb0
mov eax, dword [ebp + 8]
mov dword [eax], ebx
test byte [0x65157018], 8
jne 0x6514dae9
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x2f8], 4
shl eax, 2
cmp dword [ebp - 0x2f0], eax
lea ebx, [edi + eax]
mov eax, 0
mov dword [ebp - 0x2f4], ebx
cmovb edi, eax
lea eax, [ebp - 0x2a0]
mov ebx, dword [sym.imp.user32.dll_LoadStringW]
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], eax
mov eax, dword [0x65157120]
mov dword [esp + 4], 0x1fb
mov dword [esp], eax
call ebx
sub esp, 0x10
mov esi, eax
lea eax, [ebp - 0x2e0]
mov dword [esp + 8], eax
mov eax, dword [0x65157120]
mov dword [esp + 0xc], 0x20
mov dword [esp + 4], 0x1f4
mov dword [esp], eax
call ebx
sub esp, 0x10
mov ebx, eax
lea eax, [ebp - 0x2e8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x6515b380
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
mov edx, eax
test eax, eax
jne 0x6514db78
inc esi
inc ebx
lea eax, [esi + ebx]
add eax, eax
mov dword [ebp - 0x2fc], eax
lea eax, [esi + esi]
xor esi, esi
mov dword [ebp - 0x304], eax
lea eax, [ebx + ebx]
xor ebx, ebx
mov dword [ebp - 0x308], eax
lea esi, [esi]
nop
xor eax, eax
mov dword [esp + 0x1c], 0
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x2e4]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x220]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2e8]
mov dword [ebp - 0x2e4], 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 0x6514dba0
mov eax, dword [ebp - 0x2e8]
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 [0x65157018], 8
je 0x6514d97d
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], 0x65157018
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 - 0x2ec]
mov dword [esp + 0xc], 0x65159017
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.get_ports_from_reg
mov dword [esp + 4], 0x65157018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6514d931
test byte [0x65157018], 2
jne 0x6514dc60
mov eax, dword fs:[0x18]
xor ebx, ebx
mov dword [eax + 0x34], edx
xor esi, esi
jmp 0x6514d96b
movzx eax, word [ebp - 0x220]
test ax, ax
je 0x6514da60
mov edx, dword [ebp - 0x2e4]
inc ebx
lea ecx, [edx + edx + 2]
mov edx, dword [ebp - 0x2f8]
add edx, ecx
add esi, edx
mov edx, dword [ebp - 0x2fc]
add edx, esi
cmp dword [ebp - 0x2ec], 2
cmove esi, edx
test edi, edi
je 0x6514da60
cmp esi, dword [ebp - 0x2f0]
ja 0x6514da60
mov edx, dword [ebp - 0x2f8]
add edx, edi
mov dword [ebp - 0x30c], edx
test byte [0x65157018], 8
jne 0x6514dcc0
mov edx, dword [ebp - 0x2f4]
mov dword [ebp - 0x300], ecx
mov ecx, dword [ebp - 0x2f4]
mov dword [edi], edx
xor edx, edx
jmp 0x6514dc28
movzx eax, word [ebp + edx - 0x220]
mov word [ecx + edx], ax
add edx, 2
test ax, ax
jne 0x6514dc20
mov ecx, dword [ebp - 0x300]
add dword [ebp - 0x2f4], ecx
cmp dword [ebp - 0x2ec], 2
je 0x6514dd1b
mov edi, dword [ebp - 0x30c]
jmp 0x6514da60
mov dword [ebp - 0x2ec], eax
mov eax, 0x6515b380
call sym._wine_dbgstr_wn.constprop.0
mov edx, dword [ebp - 0x2ec]
mov dword [esp + 0xc], str.failed_with__ld_for__s_n
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 8], str.get_ports_from_reg
mov dword [esp + 4], 0x65157018
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x2ec]
jmp 0x6514db85
mov dword [ebp - 0x2f8], 0x14
jmp 0x6514d9b4
lea eax, [ebp - 0x220]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x2ec]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
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], 0x65157018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebp - 0x2e4]
lea ecx, [eax + eax + 2]
movzx eax, word [ebp - 0x220]
jmp 0x6514dc06
mov ecx, dword [ebp - 0x2f4]
xor eax, eax
mov dword [edi + 4], ecx
lea esi, [esi]
lea esi, [esi]
movzx edx, word [ebp + eax - 0x2a0]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x6514dd30
mov ecx, dword [ebp - 0x2f4]
add ecx, dword [ebp - 0x304]
xor eax, eax
mov dword [edi + 8], ecx
lea esi, [esi]
movzx edx, word [ebp + eax - 0x2e0]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x6514dd58
add ecx, dword [ebp - 0x308]
mov dword [edi + 0xc], 1
mov dword [edi + 0x10], 0
mov edi, dword [ebp - 0x30c]
mov dword [ebp - 0x2f4], ecx
jmp 0x6514da60