Function at 0x404330
Capabilities:
Accept command line arguments
Get file size
Query or enumerate registry value
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x29c
mov ebx, dword [ebp + 0x10]
test byte [0x40808c], 8
jne 0x404560
call sym._GetCommandLineW_0
lea edx, [ebp - 0x260]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._CommandLineToArgvW_8
sub esp, 8
mov dword [ebp - 0x26c], eax
test eax, eax
je 0x404447
mov ecx, dword [ebp - 0x260]
cmp ecx, 1
jle 0x40443a
mov eax, dword [ebp - 0x26c]
mov ebx, dword [eax + 4]
movzx edx, word [ebx]
mov eax, edx
and eax, 0xfffffffd
cmp ax, 0x2d
jne 0x405228
mov eax, str.nologo
mov esi, 1
shr eax, 0x10
mov dword [ebp - 0x270], eax
jmp 0x4043fc
mov dword [esp + 4], 0x40a1ec
mov dword [esp], edi
call sym.__wcsicmp
test eax, eax
jne 0x404411
mov eax, 0xffffffff
mov word [0x40801c], ax
mov ecx, dword [ebp - 0x260]
lea eax, [esi + 1]
cmp ecx, eax
jle 0x40443a
mov ebx, dword [ebp - 0x26c]
mov ebx, dword [ebx + eax*4]
movzx edx, word [ebx]
mov edi, edx
and edi, 0xfffffffd
cmp di, 0x2d
jne 0x4046d0
mov esi, eax
lea edi, [ebx + 2]
cmp dx, 0x2f
jne 0x4043b3
cmp word [ebx + 2], 0x2f
jne 0x4043b3
lea edi, [ebx + 4]
jmp 0x4043b3
mov dword [esp + 4], 0x40a1e8
mov dword [esp], edi
call sym.__wcsicmp
test eax, eax
jne 0x404460
xor eax, eax
mov ecx, dword [ebp - 0x260]
mov word [0x40801c], ax
lea eax, [esi + 1]
cmp ecx, eax
jg 0x4043df
test byte [0x40808c], 1
jne 0x404d00
mov esi, 1
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esp + 4], str.nologo
mov dword [esp], edi
call sym.__wcsicmp
test eax, eax
jne 0x404610
test byte [0x40808c], 1
je 0x4043d2
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x404e55
mov dword [esp + 4], 0xffffffff
mov dword [esp], str.nologo
call sym._IsBadStringPtrW_8
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
je 0x4044c2
jmp 0x404e76
mov ecx, eax
lea eax, [ecx + 1]
cmp word [eax + eax + str.nologo], 0
jne 0x4044c0
mov edi, 0x224c
mov edx, 0x6e
lea eax, [ebp - 0x142]
mov word [ebp - 0x144], di
mov edi, str.nologo
jmp 0x40452b
cmp dx, 9
je 0x405000
cmp dx, 0xa
jne 0x404fa2
mov ebx, 0x6e5c
add eax, 2
mov word [eax - 2], bx
lea ebx, [ecx - 1]
test ecx, ecx
jle 0x40501d
lea ecx, [ebp - 0x22]
cmp eax, ecx
ja 0x40501d
movzx edx, word [edi]
mov ecx, ebx
add edi, 2
cmp dx, 0xd
je 0x404f91
jbe 0x4044f0
cmp dx, 0x22
je 0x404f80
cmp dx, 0x5c
jne 0x404fa2
mov ebx, 0x5c5c
add eax, 2
mov word [eax - 2], bx
jmp 0x404510
test ebx, ebx
je 0x40504d
mov eax, ebx
shr eax, 0x10
je 0x404d30
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call sym._IsBadStringPtrW_8
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x404d43
cmp word [ebx], 0
je 0x4045aa
lea esi, [esi]
nop
add ecx, 1
cmp word [ebx + ecx*2], 0
jne 0x4045a0
mov eax, 0x224c
lea edx, [ebp - 0x142]
lea edi, [ebp - 0x22]
mov word [ebp - 0x144], ax
nop
lea esi, [ecx - 1]
test ecx, ecx
jle 0x404f50
cmp edx, edi
ja 0x404f50
add ebx, 2
movzx eax, word [ebx - 2]
cmp ax, 0xd
je 0x404ea3
ja 0x404e32
cmp ax, 9
je 0x404f20
cmp ax, 0xa
jne 0x404ec0
mov eax, 0x6e5c
add edx, 2
mov ecx, esi
mov word [edx - 2], ax
jmp 0x4045c0
test byte [0x40808c], 1
je 0x404447
test edi, edi
je 0x405323
mov eax, edi
shr eax, 0x10
je 0x4050a5
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call sym._IsBadStringPtrW_8
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x4050b8
cmp word [edi], 0
je 0x40466a
lea esi, [esi]
nop
add ecx, 1
cmp word [edi + ecx*2], 0
jne 0x404660
mov eax, 0x224c
lea ebx, [ebp - 0x142]
lea edx, [ebp - 0x22]
mov word [ebp - 0x144], ax
nop
lea esi, [ecx - 1]
cmp ebx, edx
ja 0x4051f8
test ecx, ecx
jle 0x4051f8
add edi, 2
movzx eax, word [edi - 2]
cmp ax, 0xd
je 0x405136
ja 0x4050f0
cmp ax, 9
je 0x4051c3
cmp ax, 0xa
jne 0x405163
mov eax, 0x6e5c
add ebx, 2
mov ecx, esi
mov word [ebx - 2], ax
jmp 0x404680
lea edx, [esi*4 + 8]
sub ecx, eax
lea eax, [ebp - 0x264]
mov dword [esp], ebx
add edx, dword [ebp - 0x26c]
mov dword [esp + 0xc], eax
sub ecx, 1
mov dword [esp + 8], 0x4114c0
mov dword [esp + 4], 0x104
mov dword [0x411484], edx
mov dword [0x411480], ecx
call sym._GetFullPathNameW_16
sub eax, 1
sub esp, 0x10
cmp eax, 0x103
ja 0x404447
mov eax, dword [ebp - 0x264]
mov dword [esp + 4], 0x2e
mov dword [esp], eax
call sym._wcsrchr
mov edi, eax
test eax, eax
je 0x405057
lea esi, [ebp - 0x258]
mov dword [esp + 4], eax
mov dword [esp + 8], esi
mov dword [esp], 0x80000000
call sym._RegOpenKeyW_12
sub esp, 0xc
test eax, eax
jne 0x404d85
lea eax, [ebp - 0x25c]
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x244]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x25c], 0x40
mov dword [esp], eax
call sym._RegQueryValueW_16
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp - 0x258]
sub esp, 0x10
mov dword [esp], eax
call sym._RegCloseKey_4
mov edx, dword [ebp - 0x26c]
sub esp, 4
test edx, edx
jne 0x404d85
test byte [0x40808c], 8
jne 0x40535d
cmp word [ebp - 0x244], 0
lea edx, [ebp - 0x244]
je 0x4047e9
nop
add edx, 2
cmp word [edx], 0
jne 0x4047e0
xor eax, eax
mov ecx, 0x5c
jmp 0x4047f9
movzx ecx, word [eax + str.ScriptEngine]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4047f2
lea eax, [ebp - 0x244]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], 0x80000000
call sym._RegOpenKeyW_12
sub esp, 0xc
test eax, eax
jne 0x404d85
lea eax, [ebp - 0x25c]
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x1c4]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x25c], 0x40
mov dword [esp], eax
call sym._RegQueryValueW_16
mov esi, eax
mov eax, dword [ebp - 0x258]
sub esp, 0x10
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
test esi, esi
jne 0x404d85
test byte [0x40808c], 8
jne 0x4055c8
lea eax, [ebp - 0x254]
mov dword [esp + 4], eax
lea eax, [ebp - 0x1c4]
mov dword [esp], eax
call sym._CLSIDFromProgID_8
sub esp, 8
test eax, eax
js 0x404d85
mov dword [esp], 0
lea edi, [ebp - 0x144]
call sym._CoInitialize_4
lea eax, [ebp - 0x254]
sub esp, 4
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0x40fb40
mov dword [esp + 8], 3
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._CoCreateInstance_20
sub esp, 0x14
test eax, eax
js 0x4051e1
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x1c4]
mov ecx, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x40cbe0
mov dword [esp], eax
call dword [ecx]
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp - 0x144]
sub esp, 0xc
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x26c]
sub esp, 4
test edx, edx
js 0x4051e1
mov eax, dword [ebp - 0x1c4]
lea edx, [ebp - 0x244]
mov ecx, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x40cbd0
mov dword [esp], eax
call dword [ecx]
sub esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x1c4]
js 0x4051d6
mov dword [esp + 4], edi
mov dword [esp], str.wscript.exe
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x270], eax
call sym._LoadTypeLib_8
sub esp, 8
test eax, eax
js 0x40524c
mov eax, dword [ebp - 0x144]
mov ecx, dword [eax]
mov dword [esp + 8], 0x4116c8
mov dword [esp + 4], 0x40a228
mov dword [esp], eax
call dword [ecx + 0x18]
sub esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x144]
mov ecx, dword [eax]
js 0x405243
mov dword [esp + 8], 0x4114a0
mov dword [esp + 4], 0x40a248
mov dword [esp], eax
call dword [ecx + 0x18]
mov edi, eax
mov eax, dword [ebp - 0x144]
sub esp, 0xc
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
sub esp, 4
test edi, edi
js 0x40524c
mov edi, dword [ebp - 0x26c]
mov eax, dword [edi]
mov dword [esp + 4], 0x408044
mov dword [esp], edi
call dword [eax + 0xc]
sub esp, 8
test eax, eax
js 0x40524c
mov ecx, dword [ebp - 0x270]
mov eax, dword [ecx]
mov dword [esp], ecx
call dword [eax + 0xc]
sub esp, 4
test eax, eax
js 0x40524c
mov eax, dword [edi]
mov dword [esp + 8], 2
mov dword [esp + 4], str.WScript
mov dword [esp], edi
call dword [eax + 0x20]
sub esp, 0xc
test eax, eax
js 0x40524c
mov eax, dword [edi]
mov dword [esp + 8], 2
mov dword [esp + 4], 0x40a210
mov dword [esp], edi
call dword [eax + 0x20]
sub esp, 0xc
test eax, eax
js 0x40524c
mov eax, dword [edi]
mov dword [esp + 4], 5
mov dword [esp], edi
call dword [eax + 0x14]
sub esp, 8
test eax, eax
js 0x40524c
mov dword [esp + 0x18], 0
mov eax, dword [ebp - 0x244]
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
mov dword [esp], ebx
mov dword [ebp - 0x274], eax
call sym._CreateFileW_28
sub esp, 0x1c
mov edi, eax
cmp eax, 0xffffffff
je 0x40570b
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._GetFileSize_8
sub esp, 8
mov dword [ebp - 0x270], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov dword [esp], edi
call sym._CreateFileMappingW_24
sub esp, 0x18
mov ebx, eax
mov dword [esp], edi
call sym._CloseHandle_4
sub esp, 4
cmp ebx, 0xffffffff
je 0x40570b
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], ebx
call sym._MapViewOfFile_20
sub esp, 0x14
mov edi, eax
mov dword [esp], ebx
call sym._CloseHandle_4
sub esp, 4
test edi, edi
je 0x40570b
mov eax, dword [ebp - 0x270]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._MultiByteToWideChar_24
sub esp, 0x18
mov dword [ebp - 0x278], eax
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._SysAllocStringLen_8
mov ecx, dword [ebp - 0x278]
sub esp, 8
mov ebx, eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x270]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._MultiByteToWideChar_24
sub esp, 0x18
mov dword [esp], edi
call sym._UnmapViewOfFile_4
sub esp, 4
test ebx, ebx
je 0x40570b
mov ecx, dword [ebp - 0x274]
mov eax, dword [ecx]
mov dword [esp], ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x82
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
call dword [eax + 0x14]
sub esp, 0x28
mov edi, eax
mov dword [esp], ebx
call sym._SysFreeString_4
sub esp, 4
test edi, edi
js 0x405787
mov ecx, dword [ebp - 0x26c]
mov eax, dword [ecx]
mov dword [esp + 4], 1
mov dword [esp], ecx
call dword [eax + 0x14]
sub esp, 8
test eax, eax
js 0x40574d
mov ecx, dword [ebp - 0x26c]
mov eax, dword [ecx]
mov dword [esp], ecx
call dword [eax + 0x1c]
mov eax, dword [0x4116c8]
sub esp, 4
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
sub esp, 4
mov ecx, dword [ebp - 0x26c]
mov eax, dword [ecx]
mov dword [esp], ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x244]
sub esp, 4
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
sub esp, 4
call sym._CoUninitialize_0
jmp 0x40444c
mov dword [esp + 0xc], str.No_file_name_specified_n
mov esi, 1
mov dword [esp + 8], global___FUNCTION__.18
mov dword [esp + 4], 0x40808c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.9
jmp 0x40444c
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call dbg.wine_dbg_sprintf
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov dword [esp + 0xc], str.__p__p__s__x__n
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], eax
mov dword [esp + 8], global___FUNCTION__.18
mov dword [esp + 4], 0x40808c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.9
jmp 0x40434c
test byte [0x40808c], 1
je 0x404447
mov eax, edi
shr eax, 0x10
je 0x4054ba
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call sym._IsBadStringPtrW_8
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x405069
cmp word [edi], 0
je 0x404dcf
add ecx, 1
cmp word [edi + ecx*2], 0
jne 0x404dc5
mov eax, 0x224c
lea ebx, [ebp - 0x142]
lea edx, [ebp - 0x22]
mov word [ebp - 0x144], ax
lea esi, [ecx - 1]
cmp ebx, edx
ja 0x40532d
test ecx, ecx
jle 0x40532d
add edi, 2
movzx eax, word [edi - 2]
cmp ax, 0xd
je 0x405295
ja 0x40510f
cmp ax, 9
je 0x405310
cmp ax, 0xa
jne 0x4052b0
mov eax, 0x6e5c
add ebx, 2
mov ecx, esi
mov word [ebx - 2], ax
jmp 0x404de4
cmp ax, 0x22
je 0x404f33
cmp ax, 0x5c
jne 0x404ec0
mov eax, 0x5c5c
add edx, 2
mov ecx, esi
mov word [edx - 2], ax
jmp 0x4045c0
mov dword [ebp - 0x274], str.nologo
movzx eax, word [ebp - 0x274]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call dbg.wine_dbg_sprintf
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.ignored__s_switch_n
mov dword [esp + 8], 0x40a1c4
mov dword [esp + 4], 0x40808c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.9
jmp 0x4043d2
mov eax, 0x725c
add edx, 2
mov ecx, esi
mov word [edx - 2], ax
jmp 0x4045c0
lea ecx, [eax - 0x20]
cmp cx, 0x5e
jbe 0x405011
mov ecx, eax
mov byte [edx], 0x5c
add edx, 5
shr cx, 0xc
movzx ecx, cx
movzx ecx, byte [ecx + str.0123456789abcdefset_host_properties]
mov byte [edx - 4], cl
mov ecx, eax
shr cx, 8
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefset_host_properties]
mov byte [edx - 3], cl
mov ecx, eax
and eax, 0xf
shr cx, 4
movzx eax, byte [eax + str.0123456789abcdefset_host_properties]
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefset_host_properties]
mov byte [edx - 1], al
mov byte [edx - 2], cl
mov ecx, esi
jmp 0x4045c0
mov eax, 0x745c
add edx, 2
mov ecx, esi
mov word [edx - 2], ax
jmp 0x4045c0
mov eax, 0x225c
add edx, 2
mov ecx, esi
mov word [edx - 2], ax
jmp 0x4045c0
mov byte [edx], 0x22
lea eax, [edx + 1]
test esi, esi
jle 0x404f6a
mov ecx, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], cx
mov byte [eax], 0
lea eax, [ebp - 0x144]
mov dword [esp], eax
call dbg.__wine_dbg_strdup
jmp 0x404d43
mov edx, 0x225c
add eax, 2
mov word [eax - 2], dx
jmp 0x404510
mov edx, 0x725c
add eax, 2
mov word [eax - 2], dx
jmp 0x404510
lea ebx, [edx - 0x20]
cmp bx, 0x5e
jbe 0x40509b
mov ebx, edx
mov byte [eax], 0x5c
add eax, 5
shr bx, 0xc
movzx ebx, bx
movzx ebx, byte [ebx + str.0123456789abcdefset_host_properties]
mov byte [eax - 4], bl
mov ebx, edx
shr bx, 8
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefset_host_properties]
mov byte [eax - 3], bl
mov ebx, edx
and edx, 0xf
shr bx, 4
movzx edx, byte [edx + str.0123456789abcdefset_host_properties]
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefset_host_properties]
mov byte [eax - 1], dl
mov byte [eax - 2], bl
jmp 0x404510
mov ebx, 0x745c
add eax, 2
mov word [eax - 2], bx
jmp 0x404510
mov byte [edx], al
mov ecx, esi
add edx, 1
jmp 0x4045c0
mov byte [eax], 0x22
lea edx, [eax + 1]
test ebx, ebx
jle 0x405037
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
jmp 0x404e76
mov eax, str._null_
jmp 0x404d43
test byte [0x40808c], 1
je 0x404447
mov eax, str._null_
mov dword [esp + 0x10], eax
mov esi, 1
mov dword [esp + 0xc], str.Could_not_find_engine_for__s_n
mov dword [esp + 8], global___FUNCTION__.18
mov dword [esp + 4], 0x40808c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.9
jmp 0x40444c
mov byte [eax], dl
add eax, 1
jmp 0x404510
movzx edi, di
mov dword [esp], str._04x
mov dword [esp + 4], edi
call dbg.wine_dbg_sprintf
mov dword [esp + 0x10], eax
mov esi, 1
mov dword [esp + 0xc], str.unsupported_switch__s_n
mov dword [esp + 8], 0x40a1c4
mov dword [esp + 4], 0x40808c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.9
jmp 0x40444c
cmp ax, 0x22
je 0x405150
cmp ax, 0x5c
jne 0x405163
mov ecx, 0x5c5c
add ebx, 2
mov word [ebx - 2], cx
mov ecx, esi
jmp 0x404680
cmp ax, 0x22
je 0x405282
cmp ax, 0x5c
jne 0x4052b0
mov ecx, 0x5c5c
add ebx, 2
mov word [ebx - 2], cx
mov ecx, esi
jmp 0x404de4
mov eax, 0x725c
add ebx, 2
mov ecx, esi
mov word [ebx - 2], ax
jmp 0x404680
mov eax, 0x225c
add ebx, 2
mov ecx, esi
mov word [ebx - 2], ax
jmp 0x404680
lea ecx, [eax - 0x20]
cmp cx, 0x5e
jbe 0x405237
mov ecx, eax
mov byte [ebx], 0x5c
add ebx, 5
shr cx, 0xc
movzx ecx, cx
movzx ecx, byte [ecx + str.0123456789abcdefset_host_properties]
mov byte [ebx - 4], cl
mov ecx, eax
shr cx, 8
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefset_host_properties]
mov byte [ebx - 3], cl
mov ecx, eax
and eax, 0xf
shr cx, 4
movzx eax, byte [eax + str.0123456789abcdefset_host_properties]
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefset_host_properties]
mov byte [ebx - 1], al
mov byte [ebx - 2], cl
mov ecx, esi
jmp 0x404680
mov eax, 0x745c
add ebx, 2
mov ecx, esi
mov word [ebx - 2], ax
jmp 0x404680
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
test byte [0x40808c], 1
jne 0x4054d2
call sym._CoUninitialize_0
jmp 0x404447
mov byte [ebx], 0x22
lea eax, [ebx + 1]
test esi, esi
jle 0x405212
mov edx, 0x2e2e
mov byte [ebx + 3], 0x2e
lea eax, [ebx + 4]
mov word [ebx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x144]
mov dword [esp], eax
call dbg.__wine_dbg_strdup
jmp 0x4050b8
mov edx, 8
mov eax, 1
jmp 0x4046d7
mov byte [ebx], al
mov ecx, esi
add ebx, 1
jmp 0x404680
mov dword [esp], eax
call dword [ecx + 8]
sub esp, 4
test byte [0x40808c], 1
je 0x404cd0
mov dword [esp + 0xc], str.Script_initialization_failed_n
mov dword [esp + 8], global___FUNCTION__.18
mov dword [esp + 4], 0x40808c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.9
jmp 0x404cd0
mov eax, 0x225c
add ebx, 2
mov ecx, esi
mov word [ebx - 2], ax
jmp 0x404de4
mov eax, 0x725c
add ebx, 2
mov ecx, esi
mov word [ebx - 2], ax
jmp 0x404de4
lea ecx, [eax - 0x20]
cmp cx, 0x5e
jbe 0x4054fb
mov ecx, eax
mov byte [ebx], 0x5c
add ebx, 5
shr cx, 0xc
movzx ecx, cx
movzx ecx, byte [ecx + str.0123456789abcdefset_host_properties]
mov byte [ebx - 4], cl
mov ecx, eax
shr cx, 8
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefset_host_properties]
mov byte [ebx - 3], cl
mov ecx, eax
and eax, 0xf
shr cx, 4
movzx eax, byte [eax + str.0123456789abcdefset_host_properties]
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefset_host_properties]
mov byte [ebx - 1], al
mov byte [ebx - 2], cl
mov ecx, esi
jmp 0x404de4
mov eax, 0x745c
add ebx, 2
mov ecx, esi
mov word [ebx - 2], ax
jmp 0x404de4
mov eax, str._null_
jmp 0x4050b8
mov byte [ebx], 0x22
lea eax, [ebx + 1]
test esi, esi
jle 0x405347
mov edx, 0x2e2e
mov byte [ebx + 3], 0x2e
lea eax, [ebx + 4]
mov word [ebx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x144]
mov dword [esp], eax
call dbg.__wine_dbg_strdup
jmp 0x405069
lea eax, [ebp - 0x244]
shr eax, 0x10
je 0x4055a0
lea eax, [ebp - 0x244]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._IsBadStringPtrW_8
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x40548d
cmp word [ebp - 0x244], 0
je 0x4053ac
add ecx, 1
cmp word [ebp + ecx*2 - 0x244], 0
jne 0x40539e
lea edx, [ebp - 0x244]
mov eax, 0x224c
mov dword [ebp - 0x274], edi
mov dword [ebp - 0x26c], edx
lea edx, [ebp - 0x22]
mov edi, dword [ebp - 0x26c]
mov dword [ebp - 0x26c], edx
mov word [ebp - 0x144], ax
lea eax, [ebp - 0x142]
mov dword [ebp - 0x270], ebx
mov ebx, eax
lea edx, [ecx - 1]
cmp ebx, dword [ebp - 0x26c]
ja 0x405451
test ecx, ecx
jle 0x405451
add edi, 2
movzx eax, word [edi - 2]
cmp ax, 0xd
je 0x405507
ja 0x40542d
cmp ax, 9
je 0x40557a
cmp ax, 0xa
jne 0x40551a
mov eax, 0x6e5c
add ebx, 2
mov ecx, edx
mov word [ebx - 2], ax
jmp 0x4053e7
cmp ax, 0x22
je 0x40558d
cmp ax, 0x5c
jne 0x40551a
mov ecx, 0x5c5c
add ebx, 2
mov word [ebx - 2], cx
mov ecx, edx
jmp 0x4053e7
mov eax, ebx
mov edi, dword [ebp - 0x274]
mov ebx, dword [ebp - 0x270]
mov byte [eax], 0x22
test edx, edx
jle 0x4057c1
mov ecx, eax
mov edx, 0x2e2e
lea eax, [eax + 4]
mov word [ecx + 1], dx
mov byte [ecx + 3], 0x2e
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], 0x40808c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.9
jmp 0x4047cf
movzx edi, di
mov dword [esp], str._04x
mov dword [esp + 4], edi
call dbg.wine_dbg_sprintf
jmp 0x405069
mov dword [esp + 0xc], str.Could_not_create_script_engine_n
mov dword [esp + 8], global___FUNCTION__.18
mov dword [esp + 4], 0x40808c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.9
jmp 0x4051ee
mov byte [ebx], al
mov ecx, esi
add ebx, 1
jmp 0x404de4
mov eax, 0x725c
add ebx, 2
mov ecx, edx
mov word [ebx - 2], ax
jmp 0x4053e7
lea ecx, [eax - 0x20]
cmp cx, 0x5e
jbe 0x405741
mov ecx, eax
mov byte [ebx], 0x5c
add ebx, 5
shr cx, 0xc
movzx ecx, cx
movzx ecx, byte [ecx + str.0123456789abcdefset_host_properties]
mov byte [ebx - 4], cl
mov ecx, eax
shr cx, 8
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefset_host_properties]
mov byte [ebx - 3], cl
mov ecx, eax
and eax, 0xf
shr cx, 4
movzx eax, byte [eax + str.0123456789abcdefset_host_properties]
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefset_host_properties]
mov byte [ebx - 1], al
mov byte [ebx - 2], cl
mov ecx, edx
jmp 0x4053e7
mov eax, 0x745c
add ebx, 2
mov ecx, edx
mov word [ebx - 2], ax
jmp 0x4053e7
mov eax, 0x225c
add ebx, 2
mov ecx, edx
mov word [ebx - 2], ax
jmp 0x4053e7
lea eax, [ebp - 0x244]
mov dword [esp], str._04x
mov dword [ebp - 0x26c], eax
movzx eax, word [ebp - 0x26c]
mov dword [esp + 4], eax
call dbg.wine_dbg_sprintf
jmp 0x40548d
lea eax, [ebp - 0x1c4]
shr eax, 0x10
je 0x40585a
lea eax, [ebp - 0x1c4]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._IsBadStringPtrW_8
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x4056de
cmp word [ebp - 0x1c4], 0
je 0x405615
add eax, 1
cmp word [ebp + eax*2 - 0x1c4], 0
jne 0x405607
mov edx, 0x224c
lea ecx, [ebp - 0x142]
mov dword [ebp - 0x270], ebx
mov word [ebp - 0x144], dx
lea edx, [ebp - 0x1c4]
jmp 0x40565b
cmp ax, 9
je 0x405849
cmp ax, 0xa
jne 0x4057eb
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
mov eax, dword [ebp - 0x26c]
lea ebx, [eax - 1]
mov dword [ebp - 0x26c], ebx
test eax, eax
jle 0x4056a4
lea eax, [ebp - 0x22]
cmp ecx, eax
ja 0x4056a4
add edx, 2
movzx eax, word [edx - 2]
cmp ax, 0xd
je 0x4057da
jbe 0x405635
cmp ax, 0x22
je 0x4057c9
cmp ax, 0x5c
jne 0x4057eb
mov eax, 0x5c5c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x405655
mov eax, dword [ebp - 0x26c]
mov ebx, dword [ebp - 0x270]
mov byte [ecx], 0x22
test eax, eax
jle 0x40588e
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x144]
mov dword [esp], eax
call dbg.__wine_dbg_strdup
mov edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.ProgID_is__s_n
mov dword [esp + 8], str.get_engine_clsid
mov dword [esp + 4], 0x40808c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.9
jmp 0x404889
test byte [0x40808c], 1
je 0x404caf
mov dword [esp + 0xc], str.Could_not_get_script_text_n
mov dword [esp + 8], str.run_script
mov dword [esp + 4], 0x40808c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.9
jmp 0x404caf
mov byte [ebx], al
mov ecx, edx
add ebx, 1
jmp 0x4053e7
test byte [0x40808c], 1
je 0x404caf
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.SetScriptState_failed:__08x_n
mov dword [esp + 8], str.run_script
mov dword [esp + 4], 0x40808c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.9
jmp 0x404caf
test byte [0x40808c], 1
je 0x404caf
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.ParseScriptText_failed:__08x_n
mov dword [esp + 8], str.run_script
mov dword [esp + 4], 0x40808c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.9
jmp 0x404caf
add eax, 1
jmp 0x40547c
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x405655
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x405655
lea ebx, [eax - 0x20]
cmp bx, 0x5e
jbe 0x405884
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 0x405655
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x405655
lea eax, [ebp - 0x1c4]
mov dword [esp], str._04x
mov dword [ebp - 0x26c], eax
movzx eax, word [ebp - 0x26c]
mov dword [esp + 4], eax
call dbg.wine_dbg_sprintf
mov edx, eax
jmp 0x4056de
mov byte [ecx], al
add ecx, 1
jmp 0x405655
lea eax, [ecx + 1]
jmp 0x4056cb