Function at 0x4045b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x248]
sub esp, 0x28c
mov dword [ebp - 0x25c], edx
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], 0x80000000
call esi
sub esp, 0xc
test eax, eax
je 0x4045f0
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x24c]
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x244]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x24c], 0x40
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueW]
mov dword [ebp - 0x268], eax
call eax
mov edi, eax
mov eax, dword [ebp - 0x248]
sub esp, 0x10
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x264], eax
call eax
sub esp, 4
test edi, edi
jne 0x4045e6
test byte [0x40708c], 8
jne 0x404748
cmp word [ebp - 0x244], 0
lea edx, [ebp - 0x244]
je 0x404679
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x404670
xor eax, eax
mov ecx, 0x5c
jmp 0x40468f
movzx ecx, word [eax + str.ScriptEngine]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404688
lea eax, [ebp - 0x244]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], 0x80000000
call esi
sub esp, 0xc
test eax, eax
jne 0x4045e6
lea eax, [ebp - 0x24c]
lea ebx, [ebp - 0x1c4]
mov dword [ebp - 0x24c], 0x40
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x248]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov eax, dword [ebp - 0x268]
mov dword [esp + 4], 0
call eax
mov esi, eax
mov eax, dword [ebp - 0x248]
sub esp, 0x10
mov dword [esp], eax
mov eax, dword [ebp - 0x264]
call eax
sub esp, 4
test esi, esi
jne 0x4045e6
test byte [0x40708c], 8
jne 0x404970
mov eax, dword [ebp - 0x25c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
sub esp, 8
not eax
lea esp, [ebp - 0xc]
pop ebx
shr eax, 0x1f
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x244]
shr eax, 0x10
je 0x404940
lea eax, [ebp - 0x244]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x404872
movzx eax, word [ebp - 0x244]
test ax, ax
je 0x404b51
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebp + edx*2 - 0x242], 0
jne 0x404790
mov ecx, 0x224c
lea edi, [ebp - 0x244]
mov dword [ebp - 0x26c], esi
mov word [ebp - 0x144], cx
mov esi, edi
lea ecx, [ebp - 0x142]
mov dword [ebp - 0x260], edx
jmp 0x40480d
cmp ax, 9
je 0x404928
cmp ax, 0xa
jne 0x4048be
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
mov eax, dword [ebp - 0x260]
lea edi, [eax - 1]
test eax, eax
jle 0x404840
lea eax, [ebp - 0x22]
cmp ecx, eax
ja 0x404840
mov dword [ebp - 0x260], edi
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x4048a0
jbe 0x4047d0
cmp ax, 0x22
je 0x404910
cmp ax, 0x5c
jne 0x4048b1
mov eax, 0x5c5c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4047f0
mov byte [ecx], 0x22
mov esi, dword [ebp - 0x26c]
test edi, edi
jle 0x404b6a
mov edi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], di
mov byte [eax], 0
lea eax, [ebp - 0x144]
mov dword [esp], eax
call dbg.__wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.fileid_is__s_n
mov dword [esp + 8], str.get_engine_clsid
mov dword [esp + 4], 0x40708c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x40465b
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4047f0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x404ab0
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx edx, byte [edi + str.0123456789abcdefset_host_properties]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], dl
movzx edx, byte [edi + str.0123456789abcdefset_host_properties]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefset_host_properties]
and edi, 0xf
mov byte [ecx - 3], dl
movzx edx, byte [edi + str.0123456789abcdefset_host_properties]
mov byte [ecx - 1], al
mov byte [ecx - 2], dl
jmp 0x4047f0
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4047f0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4047f0
lea eax, [ebp - 0x244]
mov dword [esp], str._04x
mov dword [ebp - 0x260], eax
movzx eax, word [ebp - 0x260]
mov dword [esp + 4], eax
call dbg.wine_dbg_sprintf
jmp 0x404872
mov eax, ebx
shr eax, 0x10
je 0x404b72
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov esi, eax
sub esp, 8
mov eax, str._invalid_
test esi, esi
jne 0x404a7a
movzx edx, word [ebp - 0x1c4]
test dx, dx
je 0x404b94
nop
mov ecx, esi
lea esi, [esi + 1]
cmp word [ebx + ecx*2 + 2], 0
jne 0x4049b0
mov eax, 0x224c
mov dword [ebp - 0x260], ecx
mov esi, ebx
mov word [ebp - 0x144], ax
lea eax, [ebp - 0x142]
jmp 0x404a1d
cmp dx, 9
je 0x404ad0
cmp dx, 0xa
jne 0x404aee
mov edx, 0x6e5c
add eax, 2
mov word [eax - 2], dx
mov edx, dword [ebp - 0x260]
lea ecx, [ebp - 0x22]
lea edi, [edx - 1]
cmp eax, ecx
ja 0x404a4e
test edx, edx
jle 0x404a4e
mov dword [ebp - 0x260], edi
movzx edx, word [esi]
add esi, 2
cmp dx, 0xd
je 0x404aba
jbe 0x4049e0
cmp dx, 0x22
je 0x404b40
cmp dx, 0x5c
jne 0x404ae1
mov edi, 0x5c5c
add eax, 2
mov word [eax - 2], di
jmp 0x404a00
mov byte [eax], 0x22
test edi, edi
jle 0x404bad
mov ecx, 0x2e2e
mov byte [eax + 3], 0x2e
lea edx, [eax + 4]
mov word [eax + 1], cx
lea eax, [ebp - 0x144]
mov byte [edx], 0
mov dword [esp], eax
call dbg.__wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.ProgID_is__s_n
mov dword [esp + 8], str.get_engine_clsid
mov dword [esp + 4], 0x40708c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x404722
mov byte [ecx], al
add ecx, 1
jmp 0x4047f0
mov edi, 0x725c
add eax, 2
mov word [eax - 2], di
jmp 0x404a00
mov ecx, 0x745c
add eax, 2
mov word [eax - 2], cx
jmp 0x404a00
lea edi, [edx - 0x20]
cmp di, 0x5e
jbe 0x404b8a
mov edi, edx
mov byte [eax], 0x5c
add eax, 5
shr di, 0xc
movzx edi, di
movzx ecx, byte [edi + str.0123456789abcdefset_host_properties]
mov edi, edx
shr di, 8
and edi, 0xf
mov byte [eax - 4], cl
movzx ecx, byte [edi + str.0123456789abcdefset_host_properties]
mov edi, edx
and edx, 0xf
shr di, 4
movzx edx, byte [edx + str.0123456789abcdefset_host_properties]
and edi, 0xf
mov byte [eax - 3], cl
movzx ecx, byte [edi + str.0123456789abcdefset_host_properties]
mov byte [eax - 1], dl
mov byte [eax - 2], cl
jmp 0x404a00
mov edx, 0x225c
add eax, 2
mov word [eax - 2], dx
jmp 0x404a00
mov edi, 0x224c
mov byte [ebp - 0x142], 0x22
lea ecx, [ebp - 0x142]
mov word [ebp - 0x144], di
lea eax, [ecx + 1]
jmp 0x404861
movzx eax, bx
mov dword [esp], str._04x
mov dword [esp + 4], eax
call dbg.wine_dbg_sprintf
jmp 0x404a7a
mov byte [eax], dl
add eax, 1
jmp 0x404a00
mov byte [ebp - 0x142], 0x22
mov eax, 0x224c
mov word [ebp - 0x144], ax
lea eax, [ebp - 0x142]
lea edx, [eax + 1]
jmp 0x404a69