Function at 0x403a80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x23c]
push ebx
sub esp, 0x25c
mov dword [ebp - 0x248], edx
mov ebx, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], 0x80000000
call ebx
sub esp, 0xc
test eax, eax
je 0x403ac0
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x240]
lea edi, [ebp - 0x238]
mov dword [ebp - 0x240], 0x40
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x23c]
mov dword [esp + 8], edi
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueW]
mov dword [esp + 4], 0
mov dword [ebp - 0x24c], eax
call eax
mov dword [ebp - 0x244], eax
mov eax, dword [ebp - 0x23c]
sub esp, 0x10
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x250], eax
call eax
mov edx, dword [ebp - 0x244]
sub esp, 4
test edx, edx
jne 0x403ab6
test byte [0x40708c], 8
jne 0x403c10
cmp word [ebp - 0x238], 0
mov edx, edi
je 0x403b51
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x403b48
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + str.ScriptEngine]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x403b58
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], 0x80000000
call ebx
sub esp, 0xc
test eax, eax
jne 0x403ab6
lea eax, [ebp - 0x240]
lea ebx, [ebp - 0x1b8]
mov dword [ebp - 0x240], 0x40
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x23c]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov eax, dword [ebp - 0x24c]
mov dword [esp + 4], 0
call eax
mov esi, eax
mov eax, dword [ebp - 0x23c]
sub esp, 0x10
mov dword [esp], eax
mov eax, dword [ebp - 0x250]
call eax
sub esp, 4
test esi, esi
jne 0x403ab6
test byte [0x40708c], 8
jne 0x403e10
mov eax, dword [ebp - 0x248]
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
mov eax, edi
shr eax, 0x10
je 0x403df0
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x403d22
cmp word [ebp - 0x238], 0
je 0x403ff1
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [edi + edx*2 + 2], 0
jne 0x403c50
mov eax, 0x224c
mov dword [ebp - 0x254], ebx
lea ecx, [ebp - 0x136]
mov word [ebp - 0x138], ax
mov dword [ebp - 0x244], edi
jmp 0x403cb0
cmp ax, 9
je 0x403dd8
cmp ax, 0xa
jne 0x403d6e
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [edx - 1]
test edx, edx
jle 0x403cf0
lea ebx, [ebp - 0x16]
cmp ecx, ebx
ja 0x403cf0
mov edx, eax
add dword [ebp - 0x244], 2
mov eax, dword [ebp - 0x244]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x403d50
jbe 0x403c80
cmp ax, 0x22
je 0x403dc0
cmp ax, 0x5c
jne 0x403d61
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x403ca0
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x254]
test eax, eax
jle 0x40400a
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x138]
mov dword [esp], eax
call sym.___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 0x403b35
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x403ca0
lea ebx, [eax - 0x20]
cmp bx, 0x5e
jbe 0x403f50
mov ebx, eax
mov byte [ecx], 0x5c
add ecx, 5
shr bx, 0xc
movzx ebx, bx
movzx ebx, byte [ebx + str.0123456789abcdefset_host_properties]
mov byte [ecx - 4], bl
mov ebx, eax
shr bx, 8
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefset_host_properties]
mov byte [ecx - 3], bl
mov ebx, eax
and eax, 0xf
shr bx, 4
movzx eax, byte [eax + str.0123456789abcdefset_host_properties]
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefset_host_properties]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x403ca0
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x403ca0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x403ca0
movzx eax, di
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_2
jmp 0x403d22
mov eax, ebx
shr eax, 0x10
je 0x404012
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x403f1a
cmp word [ebp - 0x1b8], 0
je 0x404034
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x403e50
mov esi, 0x224c
mov dword [ebp - 0x244], edx
lea ecx, [ebp - 0x136]
mov word [ebp - 0x138], si
mov esi, ebx
jmp 0x403eba
cmp ax, 9
je 0x403f70
cmp ax, 0xa
jne 0x403f8e
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
mov edx, dword [ebp - 0x244]
lea edi, [ebp - 0x16]
lea eax, [edx - 1]
cmp ecx, edi
ja 0x403eee
test edx, edx
jle 0x403eee
mov dword [ebp - 0x244], eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x403f5a
jbe 0x403e80
cmp ax, 0x22
je 0x403fe0
cmp ax, 0x5c
jne 0x403f81
mov eax, 0x5c5c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x403ea0
mov byte [ecx], 0x22
test eax, eax
jle 0x40404d
mov edi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], di
mov byte [eax], 0
lea eax, [ebp - 0x138]
mov dword [esp], eax
call sym.___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 0x403bec
mov byte [ecx], al
add ecx, 1
jmp 0x403ca0
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x403ea0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x403ea0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x40402a
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 0x403ea0
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x403ea0
mov edx, 0x224c
mov byte [ebp - 0x136], 0x22
lea ecx, [ebp - 0x136]
mov word [ebp - 0x138], dx
lea eax, [ecx + 1]
jmp 0x403d11
movzx eax, bx
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_2
jmp 0x403f1a
mov byte [ecx], al
add ecx, 1
jmp 0x403ea0
mov byte [ebp - 0x136], 0x22
mov ecx, 0x224c
mov word [ebp - 0x138], cx
lea ecx, [ebp - 0x136]
lea eax, [ecx + 1]
jmp 0x403f09