Function at 0x1000bbc0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
sub esp, 0x598
cmp eax, 1
mov dword [ebp - 0x56c], eax
setne al
mov dword [ebp - 0x568], edx
xor edx, edx
movzx eax, al
mov dword [ebp - 0x578], ecx
lea edi, [eax*8 + 4]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x558], 0
mov dword [ebp - 0x554], 0
mov ebx, dword [eax]
lea eax, [ebp - 0x558]
mov dword [ebp - 0x570], edi
mov dword [ebp - 0x54c], 0x104
mov word [ebp - 0x41c], dx
mov dword [esp + 8], eax
mov dword [esp + 4], str.SystemCurrentControlSetControlPrintMonitors_
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegCreateKeyW]
sub esp, 0xc
test eax, eax
jne 0x1000c0d0
mov dword [ebp - 0x564], 0
imul ebx, edi
xor edi, edi
mov dword [ebp - 0x55c], 0
add ebx, esi
mov dword [ebp - 0x574], ebx
lea ebx, [ebp - 0x41c]
mov eax, ebx
shr eax, 0x10
mov dword [ebp - 0x57c], eax
lea eax, [ebp - 0x214]
shr eax, 0x10
mov dword [ebp - 0x584], eax
jmp 0x1000bd26
cmp word [ebp - 0x214], 0
je 0x1000bd10
mov esi, dword [ebp - 0x570]
mov eax, dword [ebp - 0x54c]
add dword [ebp - 0x564], 1
lea eax, [esi + eax*2 + 2]
add dword [ebp - 0x55c], eax
mov esi, dword [ebp - 0x55c]
cmp dword [ebp - 0x56c], 1
jbe 0x1000bcef
mov dword [esp], str.Windows_NT_x86
call dword [sym.imp.ucrtbase.dll_wcslen]
mov edx, eax
mov eax, dword [ebp - 0x550]
add eax, esi
lea eax, [eax + edx*2 + 2]
mov dword [ebp - 0x55c], eax
mov eax, dword [ebp - 0x568]
test eax, eax
je 0x1000bd10
mov ecx, dword [ebp - 0x578]
cmp dword [ebp - 0x55c], ecx
jbe 0x1000c028
nop
lea esi, [esi]
mov dword [ebp - 0x54c], 0x104
xor eax, eax
add edi, 1
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x54c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x558]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
sub esp, 0x20
test eax, eax
jne 0x1000c090
test byte [0x100131d8], 8
jne 0x1000be30
lea eax, [ebp - 0x554]
xor edx, edx
mov dword [esp + 4], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x558]
mov dword [ebp - 0x550], 0x208
mov word [ebp - 0x214], dx
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x1000bc98
lea eax, [ebp - 0x550]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x214]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x554]
mov dword [esp + 8], 0
mov dword [esp + 4], str.Driver
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x1000be19
test byte [0x100131d8], 8
jne 0x1000c100
mov eax, dword [ebp - 0x554]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x1000bc98
mov eax, dword [ebp - 0x57c]
test eax, eax
je 0x1000c228
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x1000bf4c
cmp word [ebp - 0x41c], 0
je 0x1000c200
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x1000be70
mov eax, 0x224c
mov dword [ebp - 0x580], edi
lea ecx, [ebp - 0x546]
mov esi, ebx
mov word [ebp - 0x548], ax
mov dword [ebp - 0x560], edx
jmp 0x1000bedd
cmp ax, 9
je 0x1000bf88
cmp ax, 0xa
jne 0x1000bfbe
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
mov edx, dword [ebp - 0x560]
lea edi, [ebp - 0x426]
lea eax, [edx - 1]
cmp ecx, edi
ja 0x1000bf18
test edx, edx
jle 0x1000bf18
mov dword [ebp - 0x560], eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x1000bfa0
jbe 0x1000bea0
cmp ax, 0x22
je 0x1000c010
cmp ax, 0x5c
jne 0x1000bfb1
mov edi, 0x5c5c
add ecx, 2
mov word [ecx - 2], di
jmp 0x1000bec0
mov byte [ecx], 0x22
mov edi, dword [ebp - 0x580]
test eax, eax
jle 0x1000c219
mov esi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], si
mov byte [eax], 0
lea eax, [ebp - 0x548]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
mov eax, dword [ebp - 0x564]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], str.Monitor__ld:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.get_local_monitors
mov dword [esp + 4], 0x100131d8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x1000bd7f
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x1000bec0
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x1000bec0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x1000c0f0
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx edx, byte [edi + str.0123456789abcdefcopy_servername_from_name]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], dl
movzx edx, byte [edi + str.0123456789abcdefcopy_servername_from_name]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefcopy_servername_from_name]
and edi, 0xf
mov byte [ecx - 3], dl
movzx edx, byte [edi + str.0123456789abcdefcopy_servername_from_name]
mov byte [ecx - 1], al
mov byte [ecx - 2], dl
jmp 0x1000bec0
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x1000bec0
add eax, dword [ebp - 0x570]
mov esi, eax
test byte [0x100131d8], 8
jne 0x1000c310
mov eax, dword [ebp - 0x568]
mov ecx, dword [ebp - 0x574]
mov dword [eax], ecx
xor eax, eax
lea esi, [esi]
movzx edx, word [ebx + eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x1000c050
mov ecx, dword [ebp - 0x574]
mov eax, dword [ebp - 0x54c]
cmp dword [ebp - 0x56c], 1
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 0x574], eax
ja 0x1000c290
mov dword [ebp - 0x568], esi
jmp 0x1000bd10
mov eax, dword [ebp - 0x558]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0x564]
mov dword [eax], ebx
test byte [0x100131d8], 8
jne 0x1000c248
mov eax, dword [ebp - 0x55c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x564], 0
mov dword [ebp - 0x55c], 0
jmp 0x1000c0a2
mov byte [ecx], al
add ecx, 1
jmp 0x1000bec0
mov eax, dword [ebp - 0x584]
test eax, eax
je 0x1000c360
lea eax, [ebp - 0x214]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x1000c385
cmp word [ebp - 0x214], 0
je 0x1000c49a
nop
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [ebp + edx*2 - 0x212], 0
jne 0x1000c148
mov esi, 0x224c
mov dword [ebp - 0x580], edi
lea ecx, [ebp - 0x546]
mov word [ebp - 0x548], si
lea esi, [ebp - 0x214]
mov dword [ebp - 0x560], edx
jmp 0x1000c1c5
cmp ax, 9
je 0x1000c3b8
cmp ax, 0xa
jne 0x1000c3ee
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
mov edi, dword [ebp - 0x560]
lea eax, [edi - 1]
test edi, edi
jle 0x1000c458
lea edi, [ebp - 0x426]
cmp ecx, edi
ja 0x1000c458
mov dword [ebp - 0x560], eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x1000c3d0
jbe 0x1000c180
cmp ax, 0x22
je 0x1000c440
cmp ax, 0x5c
jne 0x1000c3e1
mov edi, 0x5c5c
add ecx, 2
mov word [ecx - 2], di
jmp 0x1000c1a0
mov edx, 0x224c
mov byte [ebp - 0x546], 0x22
lea ecx, [ebp - 0x546]
mov word [ebp - 0x548], dx
lea eax, [ecx + 1]
jmp 0x1000bf39
movzx eax, bx
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
mov edx, eax
jmp 0x1000bf4c
mov eax, dword [ebp - 0x55c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], str.need__ld_byte_for__ld_entries_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.get_local_monitors
mov dword [esp + 4], 0x100131d8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov eax, dword [ebp - 0x55c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x568]
mov ecx, dword [ebp - 0x574]
mov dword [eax + 4], ecx
xor eax, eax
lea esi, [esi]
movzx edx, word [eax + str.Windows_NT_x86]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x1000c2a8
mov dword [esp], str.Windows_NT_x86
call dword [sym.imp.ucrtbase.dll_wcslen]
mov ecx, dword [ebp - 0x574]
lea ecx, [ecx + eax*2 + 2]
mov eax, dword [ebp - 0x568]
mov dword [eax + 8], ecx
xor eax, eax
lea esi, [esi]
movzx edx, word [ebp + eax - 0x214]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x1000c2e0
mov eax, dword [ebp - 0x550]
mov dword [ebp - 0x568], esi
and eax, 0xfffffffe
add eax, ecx
mov dword [ebp - 0x574], eax
jmp 0x1000bd10
mov eax, dword [ebp - 0x564]
mov dword [esp + 0xc], str._p:_writing_MONITOR_INFO__ldW__ld_n
mov dword [esp + 8], str.get_local_monitors
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x56c]
mov dword [esp + 4], 0x100131d8
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x568]
mov dword [esp], 3
mov dword [esp + 0x10], eax
call sym._wine_dbg_log.constprop.0_1
jmp 0x1000c03d
lea eax, [ebp - 0x214]
mov dword [esp], str._04x
mov dword [ebp - 0x560], eax
movzx eax, word [ebp - 0x560]
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
mov edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.using_Driver:__s_n
mov dword [esp + 8], str.get_local_monitors
mov dword [esp + 4], 0x100131d8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x1000be19
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x1000c1a0
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x1000c1a0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x1000c490
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx edx, byte [edi + str.0123456789abcdefcopy_servername_from_name]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], dl
movzx edx, byte [edi + str.0123456789abcdefcopy_servername_from_name]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefcopy_servername_from_name]
and edi, 0xf
mov byte [ecx - 3], dl
movzx edx, byte [edi + str.0123456789abcdefcopy_servername_from_name]
mov byte [ecx - 1], al
mov byte [ecx - 2], dl
jmp 0x1000c1a0
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x1000c1a0
mov byte [ecx], 0x22
mov edi, dword [ebp - 0x580]
test eax, eax
jle 0x1000c4b3
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x548]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
jmp 0x1000c385
mov byte [ecx], al
add ecx, 1
jmp 0x1000c1a0
mov byte [ebp - 0x546], 0x22
mov ecx, 0x224c
mov word [ebp - 0x548], cx
lea ecx, [ebp - 0x546]
lea eax, [ecx + 1]
jmp 0x1000c475