Function at 0x100027f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
push ebx
sub esp, 0x44c
mov dword [ebp - 0x40c], eax
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x408], 0
test byte [0x100130f8], 8
jne 0x10002a40
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x40c]
mov eax, dword [eax]
cmp ecx, 1
je 0x10002880
lea eax, [eax + eax*4]
shl eax, 2
cmp dword [ebp - 0x410], eax
lea esi, [edi + eax]
mov eax, 0
cmovb edi, eax
mov dword [ebp - 0x414], esi
xor ebx, ebx
xor esi, esi
cmp ecx, 2
je 0x10002c40
mov eax, dword [ebp + 8]
mov dword [eax], ebx
test byte [0x100130f8], 8
jne 0x100029f9
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x418], 4
shl eax, 2
cmp eax, dword [ebp - 0x410]
lea ebx, [edi + eax]
mov eax, 0
mov dword [ebp - 0x414], ebx
cmova edi, eax
lea eax, [ebp - 0x3c0]
mov ebx, dword [sym.imp.user32.dll_LoadStringW]
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], eax
mov eax, dword [0x1001b0c8]
mov dword [esp + 4], 0x1fb
mov dword [esp], eax
call ebx
sub esp, 0x10
mov esi, eax
lea eax, [ebp - 0x400]
mov dword [esp + 8], eax
mov eax, dword [0x1001b0c8]
mov dword [esp + 0xc], 0x20
mov dword [esp + 4], 0x1f4
mov dword [esp], eax
call ebx
sub esp, 0x10
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x408]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x10015600
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x10002a88
mov edx, dword [ebp - 0x41c]
add esi, 1
add edx, 1
lea eax, [esi + edx]
add eax, eax
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x214]
shr eax, 0x10
mov dword [ebp - 0x424], eax
lea eax, [esi + esi]
xor esi, esi
mov dword [ebp - 0x428], eax
lea eax, [edx + edx]
mov dword [ebp - 0x42c], eax
lea esi, [esi]
lea edi, [edi]
xor eax, eax
mov dword [esp + 0x1c], 0
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x404]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x214]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x408]
mov dword [ebp - 0x404], 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 0x10002ab0
mov eax, dword [ebp - 0x408]
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 [0x100130f8], 8
je 0x1000286d
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], 0x100130f8
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 - 0x40c]
mov dword [esp + 0xc], 0x1001513d
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.get_ports_from_reg
mov dword [esp + 4], 0x100130f8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10002821
test byte [0x100130f8], 2
jne 0x10002b60
mov eax, dword fs:[0x18]
xor esi, esi
mov dword [eax + 0x34], ebx
xor ebx, ebx
jmp 0x1000285b
cmp word [ebp - 0x214], 0
je 0x10002970
mov eax, dword [ebp - 0x404]
mov edx, dword [ebp - 0x418]
add ebx, 1
lea ecx, [eax + eax + 2]
lea eax, [ecx + edx]
add esi, eax
mov eax, dword [ebp - 0x41c]
add eax, esi
cmp dword [ebp - 0x40c], 2
cmove esi, eax
test edi, edi
je 0x10002970
cmp esi, dword [ebp - 0x410]
ja 0x10002970
lea eax, [edi + edx]
mov dword [ebp - 0x430], eax
test byte [0x100130f8], 8
jne 0x10002d48
mov edx, dword [ebp - 0x414]
mov dword [ebp - 0x420], ecx
xor eax, eax
mov dword [edi], edx
mov ecx, edx
lea esi, [esi]
movzx edx, word [ebp + eax - 0x214]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x10002b28
mov ecx, dword [ebp - 0x420]
add dword [ebp - 0x414], ecx
cmp dword [ebp - 0x40c], 2
je 0x10002fb2
mov edi, dword [ebp - 0x430]
jmp 0x10002970
mov eax, 0x10015600
mov edi, eax
shr edi, 0x10
je 0x10002c50
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0x10015600
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x1001503b
sub esp, 8
test eax, eax
jne 0x10002c65
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [edx + edx + 0x10015602], 0
jne 0x10002b98
mov ecx, 0x224c
mov dword [ebp - 0x40c], ebx
mov edi, 0x10015600
mov word [ebp - 0x214], cx
lea ecx, [ebp - 0x212]
jmp 0x10002c0b
cmp ax, 9
je 0x10002cb8
cmp ax, 0xa
jne 0x10002cd6
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [edx - 1]
test edx, edx
jle 0x10002ec8
lea esi, [ebp - 0xf2]
cmp ecx, esi
ja 0x10002ec8
mov edx, eax
movzx eax, word [edi]
add edi, 2
cmp ax, 0xd
je 0x10002ca0
jbe 0x10002bd0
cmp ax, 0x22
je 0x10002d30
cmp ax, 0x5c
jne 0x10002cc9
mov eax, 0x5c5c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10002bf0
mov dword [ebp - 0x418], 0x14
jmp 0x100028a4
movzx eax, ax
mov dword [esp], 0x1001502e
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], 0x100130f8
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x10002a95
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10002bf0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10002bf0
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x10002fa8
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 0x10002bf0
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10002bf0
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x10003021
lea eax, [ebp - 0x214]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x1001503b
sub esp, 8
test eax, eax
jne 0x10002e7c
cmp word [ebp - 0x214], 0
je 0x1000305d
nop
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [ebp + edx*2 - 0x212], 0
jne 0x10002d90
mov ecx, 0x224c
lea eax, [ebp - 0x214]
mov dword [ebp - 0x434], ebx
mov word [ebp - 0x340], cx
lea ecx, [ebp - 0x33e]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x438], esi
jmp 0x10002e03
cmp ax, 9
je 0x10002f20
cmp ax, 0xa
jne 0x10002f3e
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [edx - 1]
test edx, edx
jle 0x10002e42
lea ebx, [ebp - 0x21e]
cmp ecx, ebx
ja 0x10002e42
mov edx, eax
add dword [ebp - 0x420], 2
mov eax, dword [ebp - 0x420]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x10002f08
jbe 0x10002dd0
cmp ax, 0x22
je 0x10002f90
cmp ax, 0x5c
jne 0x10002f31
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x10002df0
mov ebx, dword [ebp - 0x434]
mov esi, dword [ebp - 0x438]
mov byte [ecx], 0x22
test eax, eax
jle 0x10003076
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x340]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
mov eax, dword [ebp - 0x40c]
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], 0x100130f8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebp - 0x404]
lea ecx, [eax + eax + 2]
jmp 0x10002b12
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x40c]
test eax, eax
jle 0x1000304b
mov esi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], si
mov byte [eax], 0
lea eax, [ebp - 0x214]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
jmp 0x10002c65
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10002df0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10002df0
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x10003053
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 0x10002df0
mov esi, 0x225c
add ecx, 2
mov word [ecx - 2], si
jmp 0x10002df0
mov byte [ecx], al
add ecx, 1
jmp 0x10002bf0
mov ecx, dword [ebp - 0x414]
xor eax, eax
mov dword [edi + 4], ecx
lea esi, [esi]
movzx edx, word [ebp + eax - 0x3c0]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x10002fc0
mov ecx, dword [ebp - 0x414]
add ecx, dword [ebp - 0x428]
xor eax, eax
mov dword [edi + 8], ecx
lea esi, [esi]
movzx edx, word [ebp + eax - 0x400]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x10002fe8
add ecx, dword [ebp - 0x42c]
mov dword [edi + 0xc], 1
mov dword [edi + 0x10], 0
mov edi, dword [ebp - 0x430]
mov dword [ebp - 0x414], ecx
jmp 0x10002970
lea eax, [ebp - 0x214]
mov dword [esp], 0x1001502e
mov dword [ebp - 0x420], eax
movzx eax, word [ebp - 0x420]
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov edx, eax
jmp 0x10002e7c
lea eax, [ecx + 1]
jmp 0x10002ee9
mov byte [ecx], al
add ecx, 1
jmp 0x10002df0
mov eax, 0x224c
mov byte [ebp - 0x33e], 0x22
lea ecx, [ebp - 0x33e]
mov word [ebp - 0x340], ax
lea eax, [ecx + 1]
jmp 0x10002e69