Function at 0x404150
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, 0x28c
mov ebx, dword [ebp + 0x10]
test byte [0x40708c], 8
jne 0x4049c8
call dword [sym.imp.kernel32.dll_GetCommandLineW]
lea edx, [ebp - 0x254]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.shell32.dll_CommandLineToArgvW]
mov dword [ebp - 0x25c], eax
sub esp, 8
test eax, eax
je 0x404254
mov edx, dword [ebp - 0x254]
cmp edx, 1
jle 0x404247
mov eax, str.nologo
mov ebx, 1
shr eax, 0x10
mov dword [ebp - 0x260], eax
jmp 0x4041ef
mov dword [esp + 4], 0x408e6e
mov edi, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [esp], esi
call edi
test eax, eax
jne 0x404220
mov eax, 0xffffffff
mov word [section..bss], ax
mov edx, dword [ebp - 0x254]
add ebx, 1
cmp edx, ebx
jle 0x404247
mov eax, dword [ebp - 0x25c]
mov edi, dword [eax + ebx*4]
movzx eax, word [edi]
mov esi, eax
and esi, 0xfffffffd
cmp si, 0x2d
jne 0x404360
lea esi, [edi + 2]
cmp ax, 0x2f
jne 0x4041c0
cmp word [edi + 2], 0x2f
jne 0x4041c0
lea esi, [edi + 4]
jmp 0x4041c0
mov dword [esp + 4], 0x408e72
mov dword [esp], esi
call edi
test eax, eax
jne 0x404268
mov edx, dword [ebp - 0x254]
xor edi, edi
add ebx, 1
mov word [section..bss], di
cmp edx, ebx
jg 0x4041ef
test byte [0x40708c], 1
jne 0x404b90
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], esi
call edi
test eax, eax
jne 0x404ab0
test byte [0x40708c], 1
je 0x4041e2
mov esi, dword [ebp - 0x260]
test esi, esi
je 0x404ef4
mov dword [esp + 4], 0xffffffff
mov dword [esp], str.nologo
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x404d2d
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [edx + edx + 0x408e52], 0
jne 0x4042c0
mov ecx, 0x224c
mov dword [ebp - 0x264], ebx
lea esi, [ebp - 0x136]
mov word [ebp - 0x138], cx
mov ecx, str.nologo
jmp 0x404328
cmp ax, 9
je 0x404ec8
cmp ax, 0xa
jne 0x404e56
mov eax, 0x6e5c
add esi, 2
mov word [esi - 2], ax
lea eax, [edx - 1]
test edx, edx
jle 0x404cf9
lea ebx, [ebp - 0x16]
cmp esi, ebx
ja 0x404cf9
mov edx, eax
movzx eax, word [ecx]
add ecx, 2
cmp ax, 0xd
je 0x404e38
jbe 0x4042f0
cmp ax, 0x22
je 0x404eb0
cmp ax, 0x5c
jne 0x404e49
mov eax, 0x5c5c
add esi, 2
mov word [esi - 2], ax
jmp 0x404310
mov eax, dword [ebp - 0x25c]
sub edx, ebx
mov dword [esp], edi
sub edx, 1
mov dword [esp + 8], 0x412100
lea eax, [eax + ebx*4 + 4]
mov dword [0x4120c0], edx
mov dword [0x4120c4], eax
lea eax, [ebp - 0x258]
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x104
call dword [sym.imp.kernel32.dll_GetFullPathNameW]
sub eax, 1
sub esp, 0x10
cmp eax, 0x103
ja 0x404254
mov eax, dword [ebp - 0x258]
mov dword [esp + 4], 0x2e
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcsrchr]
mov ebx, eax
test eax, eax
je 0x404f1c
lea eax, [ebp - 0x24c]
mov dword [esp + 4], ebx
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [esp + 8], eax
mov dword [esp], 0x80000000
call esi
sub esp, 0xc
test eax, eax
jne 0x404c20
lea eax, [ebp - 0x250]
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x238]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x250], 0x40
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueW]
mov dword [ebp - 0x264], eax
call eax
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp - 0x24c]
sub esp, 0x10
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x260], eax
call eax
mov edx, dword [ebp - 0x25c]
sub esp, 4
test edx, edx
jne 0x404c20
test byte [0x40708c], 8
jne 0x4051a1
cmp word [ebp - 0x238], 0
lea edx, [ebp - 0x238]
je 0x404489
add edx, 2
cmp word [edx], 0
jne 0x404480
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 0x404490
lea eax, [ebp - 0x24c]
mov dword [esp], 0x80000000
mov dword [esp + 8], eax
lea eax, [ebp - 0x238]
mov dword [esp + 4], eax
call esi
sub esp, 0xc
test eax, eax
jne 0x404c20
lea eax, [ebp - 0x250]
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x1b8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x250], 0x40
mov dword [esp], eax
mov eax, dword [ebp - 0x264]
call eax
mov esi, eax
mov eax, dword [ebp - 0x24c]
sub esp, 0x10
mov dword [esp], eax
mov eax, dword [ebp - 0x260]
call eax
sub esp, 4
test esi, esi
jne 0x404c20
test byte [0x40708c], 8
jne 0x40545d
lea eax, [ebp - 0x248]
mov dword [esp + 4], eax
lea eax, [ebp - 0x1b8]
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
sub esp, 8
test eax, eax
js 0x404c20
mov dword [esp], 0
lea ebx, [ebp - 0x138]
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x248]
sub esp, 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x40fa98
mov dword [esp + 8], 3
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
test eax, eax
js 0x40507c
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x1b8]
mov ecx, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x40c7b8
mov dword [esp], eax
call dword [ecx]
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp - 0x138]
sub esp, 0xc
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x25c]
sub esp, 4
test edx, edx
js 0x40507c
mov eax, dword [ebp - 0x1b8]
lea edx, [ebp - 0x238]
mov ecx, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x40c7a8
mov dword [esp], eax
call dword [ecx]
sub esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x1b8]
js 0x405071
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp - 0x238]
mov dword [esp + 4], ebx
mov dword [ebp - 0x260], eax
mov dword [esp], str.wscript.exe
call dword [sym.imp.oleaut32.dll_LoadTypeLib]
sub esp, 8
test eax, eax
js 0x4050da
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax]
mov dword [esp + 8], 0x412308
mov dword [esp + 4], 0x4091dc
mov dword [esp], eax
call dword [ecx + 0x18]
sub esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax]
js 0x4050d1
mov dword [esp + 8], 0x4120e0
mov dword [esp + 4], 0x4091fc
mov dword [esp], eax
call dword [ecx + 0x18]
mov ebx, eax
mov eax, dword [ebp - 0x138]
sub esp, 0xc
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
sub esp, 4
test ebx, ebx
js 0x4050da
mov ebx, dword [ebp - 0x25c]
mov eax, dword [ebx]
mov dword [esp + 4], 0x407044
mov dword [esp], ebx
call dword [eax + 0xc]
sub esp, 8
test eax, eax
js 0x4050da
mov ecx, dword [ebp - 0x260]
mov eax, dword [ecx]
mov dword [esp], ecx
call dword [eax + 0xc]
sub esp, 4
test eax, eax
js 0x4050da
mov eax, dword [ebx]
mov dword [esp + 8], 2
mov dword [esp + 4], str.WScript
mov dword [esp], ebx
call dword [eax + 0x20]
sub esp, 0xc
test eax, eax
js 0x4050da
mov eax, dword [ebx]
mov dword [esp + 8], 2
mov dword [esp + 4], 0x408e38
mov dword [esp], ebx
call dword [eax + 0x20]
sub esp, 0xc
test eax, eax
js 0x4050da
mov eax, dword [ebx]
mov dword [esp + 4], 5
mov dword [esp], ebx
call dword [eax + 0x14]
sub esp, 8
test eax, eax
js 0x4050da
mov eax, dword [ebp - 0x238]
mov dword [esp], edi
mov dword [esp + 0x18], 0
mov dword [ebp - 0x268], eax
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
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov edi, eax
cmp eax, 0xffffffff
je 0x4055e7
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileSize]
sub esp, 8
mov dword [ebp - 0x264], eax
mov dword [esp], edi
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
call dword [sym.imp.kernel32.dll_CreateFileMappingW]
sub esp, 0x18
mov ebx, eax
mov dword [esp], edi
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
call edi
sub esp, 4
cmp ebx, 0xffffffff
je 0x4055e7
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 dword [sym.imp.kernel32.dll_MapViewOfFile]
sub esp, 0x14
mov dword [ebp - 0x260], eax
mov dword [esp], ebx
call edi
mov edi, dword [ebp - 0x260]
sub esp, 4
test edi, edi
je 0x4055e7
mov ecx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x264]
mov dword [esp + 8], edi
mov dword [esp + 0x14], 0
mov dword [ebp - 0x26c], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
sub esp, 0x18
mov edi, eax
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.oleaut32.dll_SysAllocStringLen]
mov ecx, dword [ebp - 0x26c]
sub esp, 8
mov ebx, eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp - 0x260]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x264]
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
sub esp, 0x18
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
sub esp, 4
test ebx, ebx
je 0x4055e7
mov ecx, dword [ebp - 0x268]
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 dword [sym.imp.oleaut32.dll_SysFreeString]
sub esp, 4
test edi, edi
js 0x405657
mov ecx, dword [ebp - 0x25c]
mov eax, dword [ecx]
mov dword [esp + 4], 1
mov dword [esp], ecx
call dword [eax + 0x14]
sub esp, 8
test eax, eax
js 0x40561d
mov ecx, dword [ebp - 0x25c]
mov eax, dword [ecx]
mov dword [esp], ecx
call dword [eax + 0x1c]
mov eax, dword [0x412308]
sub esp, 4
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
sub esp, 4
mov ecx, dword [ebp - 0x25c]
mov eax, dword [ecx]
mov dword [esp], ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x238]
sub esp, 4
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
sub esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x404259
test ebx, ebx
je 0x404eea
mov eax, ebx
shr eax, 0x10
je 0x404bc0
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 0x404bd5
cmp word [ebx], 0
je 0x404fb9
lea esi, [esi]
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x404a10
mov ecx, 0x224c
lea esi, [ebp - 0x136]
lea edi, [ebp - 0x16]
mov word [ebp - 0x138], cx
jmp 0x404a75
cmp ax, 9
je 0x404d60
cmp ax, 0xa
jne 0x404d7e
mov eax, 0x6e5c
add esi, 2
mov word [esi - 2], ax
lea esi, [esi]
nop
lea eax, [edx - 1]
test edx, edx
jle 0x404e00
cmp esi, edi
ja 0x404e00
mov edx, eax
movzx eax, word [ebx]
add ebx, 2
cmp ax, 0xd
je 0x404de8
jbe 0x404a38
cmp ax, 0x22
je 0x404dd0
cmp ax, 0x5c
jne 0x404d71
mov ecx, 0x5c5c
add esi, 2
mov word [esi - 2], cx
jmp 0x404a60
test byte [0x40708c], 1
je 0x404254
mov eax, esi
shr eax, 0x10
je 0x404f72
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x404f87
cmp word [esi], 0
je 0x40533d
lea esi, [esi]
nop
mov ebx, eax
lea eax, [eax + 1]
cmp word [esi + ebx*2 + 2], 0
jne 0x404af8
mov eax, 0x224c
lea edi, [ebp - 0x136]
mov word [ebp - 0x138], ax
lea eax, [ebp - 0x16]
jmp 0x404b55
cmp dx, 9
je 0x404fe0
cmp dx, 0xa
jne 0x40500f
mov ecx, 0x6e5c
add edi, 2
mov word [edi - 2], cx
lea edx, [ebx - 1]
cmp edi, eax
ja 0x405094
test ebx, ebx
jle 0x405094
mov ebx, edx
movzx edx, word [esi]
add esi, 2
cmp dx, 0xd
je 0x404ff1
jbe 0x404b20
cmp dx, 0x22
je 0x405060
cmp dx, 0x5c
jne 0x405002
mov ecx, 0x5c5c
add edi, 2
mov word [edi - 2], cx
jmp 0x404b40
mov dword [esp + 0xc], str.No_file_name_specified_n
mov esi, 1
mov dword [esp + 8], str.wWinMain
mov dword [esp + 4], 0x40708c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_2
jmp 0x404259
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf_2
mov edx, eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], str.__p__p__s__x__n
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], str.wWinMain
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x40708c
mov dword [esp + 0x10], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x40416c
test byte [0x40708c], 1
je 0x404254
mov eax, ebx
shr eax, 0x10
je 0x40535e
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 0x404f2e
cmp word [ebx], 0
je 0x40543c
lea esi, [esi]
nop
mov esi, eax
lea eax, [eax + 1]
cmp word [ebx + esi*2 + 2], 0
jne 0x404c68
mov eax, 0x224c
lea edi, [ebp - 0x136]
mov word [ebp - 0x138], ax
lea eax, [ebp - 0x16]
jmp 0x404cc5
cmp dx, 9
je 0x405110
cmp dx, 0xa
jne 0x40513f
mov ecx, 0x6e5c
add edi, 2
mov word [edi - 2], cx
lea esi, [esi]
lea edx, [esi - 1]
cmp edi, eax
ja 0x40530a
test esi, esi
jle 0x40530a
mov esi, edx
movzx edx, word [ebx]
add ebx, 2
cmp dx, 0xd
je 0x405121
jbe 0x404c8c
cmp dx, 0x22
je 0x405190
cmp dx, 0x5c
jne 0x405132
mov ecx, 0x5c5c
add edi, 2
mov word [edi - 2], cx
jmp 0x404cb0
mov byte [esi], 0x22
mov ebx, dword [ebp - 0x264]
test eax, eax
jle 0x404f6a
mov edi, 0x2e2e
mov byte [esi + 3], 0x2e
lea eax, [esi + 4]
mov word [esi + 1], di
mov byte [eax], 0
lea eax, [ebp - 0x138]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.ignored__s_switch_n
mov dword [esp + 8], 0x4091a8
mov dword [esp + 4], 0x40708c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_2
jmp 0x4041e2
mov eax, 0x745c
add esi, 2
mov word [esi - 2], ax
jmp 0x404a60
lea ecx, [eax - 0x20]
cmp cx, 0x5e
jbe 0x404ee0
mov ecx, eax
mov byte [esi], 0x5c
add esi, 5
shr cx, 0xc
movzx ecx, cx
movzx ecx, byte [ecx + str.0123456789abcdefset_host_properties]
mov byte [esi - 4], cl
mov ecx, eax
shr cx, 8
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefset_host_properties]
mov byte [esi - 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 [esi - 1], al
mov byte [esi - 2], cl
jmp 0x404a60
mov eax, 0x225c
add esi, 2
mov word [esi - 2], ax
jmp 0x404a60
mov eax, 0x725c
add esi, 2
mov word [esi - 2], ax
jmp 0x404a60
mov byte [esi], 0x22
test eax, eax
jle 0x404fd2
mov edx, 0x2e2e
mov byte [esi + 3], 0x2e
lea eax, [esi + 4]
mov word [esi + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x138]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
jmp 0x404bd5
mov eax, 0x725c
add esi, 2
mov word [esi - 2], ax
jmp 0x404310
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x404f60
mov edi, eax
mov byte [esi], 0x5c
add esi, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefset_host_properties]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [esi - 4], bl
movzx ebx, 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 [esi - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefset_host_properties]
mov byte [esi - 1], al
mov byte [esi - 2], bl
jmp 0x404310
mov eax, 0x225c
add esi, 2
mov word [esi - 2], ax
jmp 0x404310
mov eax, 0x745c
add esi, 2
mov word [esi - 2], ax
jmp 0x404310
mov byte [esi], al
add esi, 1
jmp 0x404a60
mov edx, str._null_
jmp 0x404bd5
mov dword [ebp - 0x264], str.nologo
movzx eax, word [ebp - 0x264]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_2
mov edx, eax
jmp 0x404d2d
test byte [0x40708c], 1
je 0x404254
mov edx, str._null_
mov dword [esp + 0x10], edx
mov esi, 1
mov dword [esp + 0xc], str.Could_not_find_engine_for__s_n
mov dword [esp + 8], str.wWinMain
mov dword [esp + 4], 0x40708c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_2
jmp 0x404259
mov byte [esi], al
add esi, 1
jmp 0x404310
lea eax, [esi + 1]
jmp 0x404d1a
movzx esi, si
mov dword [esp], str._04x
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf_2
mov edx, eax
mov dword [esp + 0x10], edx
mov esi, 1
mov dword [esp + 0xc], str.unsupported_switch__s_n
mov dword [esp + 8], 0x4091a8
mov dword [esp + 4], 0x40708c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_2
jmp 0x404259
mov eax, 0x224c
mov byte [ebp - 0x136], 0x22
lea esi, [ebp - 0x136]
mov word [ebp - 0x138], ax
lea eax, [esi + 1]
jmp 0x404e1b
mov ecx, 0x745c
add edi, 2
mov word [edi - 2], cx
jmp 0x404b40
mov edx, 0x725c
add edi, 2
mov word [edi - 2], dx
jmp 0x404b40
lea ecx, [edx - 0x20]
cmp cx, 0x5e
jbe 0x4050c7
mov ecx, edx
mov byte [edi], 0x5c
add edi, 5
shr cx, 0xc
movzx ecx, cx
movzx ecx, byte [ecx + str.0123456789abcdefset_host_properties]
mov byte [edi - 4], cl
mov ecx, edx
shr cx, 8
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefset_host_properties]
mov byte [edi - 3], cl
mov ecx, edx
and edx, 0xf
shr cx, 4
movzx edx, byte [edx + str.0123456789abcdefset_host_properties]
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefset_host_properties]
mov byte [edi - 1], dl
mov byte [edi - 2], cl
jmp 0x404b40
mov edx, 0x225c
add edi, 2
mov word [edi - 2], dx
jmp 0x404b40
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
test byte [0x40708c], 1
jne 0x405378
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x404254
mov byte [edi], 0x22
test edx, edx
jle 0x405356
mov edx, 0x2e2e
mov byte [edi + 3], 0x2e
lea eax, [edi + 4]
mov word [edi + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x138]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
jmp 0x404f87
mov byte [edi], dl
add edi, 1
jmp 0x404b40
mov dword [esp], eax
call dword [ecx + 8]
sub esp, 4
test byte [0x40708c], 1
je 0x404994
mov dword [esp + 0xc], str.Script_initialization_failed_n
mov dword [esp + 8], str.wWinMain
mov dword [esp + 4], 0x40708c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_2
jmp 0x404994
mov ecx, 0x745c
add edi, 2
mov word [edi - 2], cx
jmp 0x404cb0
mov edx, 0x725c
add edi, 2
mov word [edi - 2], dx
jmp 0x404cb0
lea ecx, [edx - 0x20]
cmp cx, 0x5e
jbe 0x4053a1
mov ecx, edx
mov byte [edi], 0x5c
add edi, 5
shr cx, 0xc
movzx ecx, cx
movzx ecx, byte [ecx + str.0123456789abcdefset_host_properties]
mov byte [edi - 4], cl
mov ecx, edx
shr cx, 8
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefset_host_properties]
mov byte [edi - 3], cl
mov ecx, edx
and edx, 0xf
shr cx, 4
movzx edx, byte [edx + str.0123456789abcdefset_host_properties]
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefset_host_properties]
mov byte [edi - 1], dl
mov byte [edi - 2], cl
jmp 0x404cb0
mov edx, 0x225c
add edi, 2
mov word [edi - 2], dx
jmp 0x404cb0
lea eax, [ebp - 0x238]
shr eax, 0x10
je 0x40554e
lea eax, [ebp - 0x238]
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 0x4052dd
cmp word [ebp - 0x238], 0
je 0x405722
mov edx, eax
lea eax, [eax + 1]
cmp word [ebp + edx*2 - 0x236], 0
jne 0x4051e5
mov eax, 0x224c
mov dword [ebp - 0x25c], edx
lea edx, [ebp - 0x238]
lea ecx, [ebp - 0x136]
mov word [ebp - 0x138], ax
lea eax, [ebp - 0x16]
mov dword [ebp - 0x26c], ebx
mov ebx, edx
mov dword [ebp - 0x270], esi
mov esi, dword [ebp - 0x25c]
mov dword [ebp - 0x268], edi
mov dword [ebp - 0x25c], eax
jmp 0x405269
cmp dx, 9
je 0x40541a
cmp dx, 0xa
jne 0x4053b8
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edx, [esi - 1]
cmp ecx, dword [ebp - 0x25c]
ja 0x40529d
test esi, esi
jle 0x40529d
mov esi, edx
movzx edx, word [ebx]
add ebx, 2
cmp dx, 0xd
je 0x40542b
jbe 0x405238
cmp dx, 0x22
je 0x405409
cmp dx, 0x5c
jne 0x4053ab
mov edi, 0x5c5c
add ecx, 2
mov word [ecx - 2], di
jmp 0x405258
mov edi, dword [ebp - 0x268]
mov ebx, dword [ebp - 0x26c]
mov byte [ecx], 0x22
mov esi, dword [ebp - 0x270]
test edx, edx
jle 0x405738
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 edx, eax
mov dword [esp + 0x10], edx
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 0x404470
mov byte [edi], 0x22
test edx, edx
jle 0x405455
mov edx, 0x2e2e
mov byte [edi + 3], 0x2e
lea eax, [edi + 4]
mov word [edi + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x138]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
jmp 0x404f2e
mov eax, 0x224c
mov byte [ebp - 0x136], 0x22
lea edi, [ebp - 0x136]
mov word [ebp - 0x138], ax
lea eax, [edi + 1]
jmp 0x4050af
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf_2
mov edx, eax
jmp 0x404f2e
mov dword [esp + 0xc], str.Could_not_create_script_engine_n
mov dword [esp + 8], str.wWinMain
mov dword [esp + 4], 0x40708c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_2
jmp 0x405089
mov byte [edi], dl
add edi, 1
jmp 0x404cb0
lea edi, [edx - 0x20]
cmp di, 0x5e
jbe 0x4055dd
mov edi, edx
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx eax, byte [edi + str.0123456789abcdefset_host_properties]
mov edi, edx
shr di, 8
and edi, 0xf
mov byte [ecx - 4], al
movzx eax, 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 [ecx - 3], al
movzx eax, byte [edi + str.0123456789abcdefset_host_properties]
mov byte [ecx - 1], dl
mov byte [ecx - 2], al
jmp 0x405258
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x405258
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x405258
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x405258
mov eax, 0x224c
mov byte [ebp - 0x136], 0x22
lea edi, [ebp - 0x136]
mov word [ebp - 0x138], ax
lea eax, [edi + 1]
jmp 0x405325
lea eax, [ebp - 0x1b8]
shr eax, 0x10
je 0x40574a
lea eax, [ebp - 0x1b8]
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 0x4055b0
cmp word [ebp - 0x1b8], 0
je 0x405772
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebp + edx*2 - 0x1b6], 0
jne 0x4054a3
mov eax, 0x224c
lea ecx, [ebp - 0x1b8]
mov dword [ebp - 0x260], edi
mov word [ebp - 0x138], ax
lea eax, [ebp - 0x136]
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x25c], ecx
jmp 0x40550f
cmp cx, 9
je 0x405711
cmp cx, 0xa
jne 0x40569e
mov ebx, 0x6e5c
add eax, 2
mov word [eax - 2], bx
lea ecx, [edx - 1]
test edx, edx
jle 0x405578
lea ebx, [ebp - 0x16]
cmp eax, ebx
ja 0x405578
mov edx, ecx
add dword [ebp - 0x25c], 2
mov ecx, dword [ebp - 0x25c]
movzx ecx, word [ecx - 2]
cmp cx, 0xd
je 0x405700
jbe 0x4054df
cmp cx, 0x22
je 0x4056ef
cmp cx, 0x5c
jne 0x405691
mov ecx, 0x5c5c
add eax, 2
mov word [eax - 2], cx
jmp 0x4054ff
lea eax, [ebp - 0x238]
mov dword [esp], str._04x
mov dword [ebp - 0x25c], eax
movzx eax, word [ebp - 0x25c]
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_2
mov edx, eax
jmp 0x4052dd
mov edi, dword [ebp - 0x260]
mov ebx, dword [ebp - 0x264]
mov byte [eax], 0x22
test ecx, ecx
jle 0x405788
mov edx, 0x2e2e
mov byte [eax + 3], 0x2e
lea ecx, [eax + 4]
mov word [eax + 1], dx
lea eax, [ebp - 0x138]
mov byte [ecx], 0
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 0x404530
mov byte [ecx], dl
add ecx, 1
jmp 0x405258
test byte [0x40708c], 1
je 0x404973
mov dword [esp + 0xc], str.Could_not_get_script_text_n
mov dword [esp + 8], str.run_script
mov dword [esp + 4], 0x40708c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_2
jmp 0x404973
test byte [0x40708c], 1
je 0x404973
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.SetScriptState_failed:__08lx_n
mov dword [esp + 8], str.run_script
mov dword [esp + 4], 0x40708c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_2
jmp 0x404973
test byte [0x40708c], 1
je 0x404973
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.ParseScriptText_failed:__08lx_n
mov dword [esp + 8], str.run_script
mov dword [esp + 4], 0x40708c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_2
jmp 0x404973
lea edi, [ecx - 0x20]
cmp di, 0x5e
jbe 0x405740
mov edi, ecx
mov byte [eax], 0x5c
add eax, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefset_host_properties]
mov edi, ecx
shr di, 8
and edi, 0xf
mov byte [eax - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefset_host_properties]
mov edi, ecx
and ecx, 0xf
shr di, 4
movzx ecx, byte [ecx + str.0123456789abcdefset_host_properties]
and edi, 0xf
mov byte [eax - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefset_host_properties]
mov byte [eax - 1], cl
mov byte [eax - 2], bl
jmp 0x4054ff
mov ebx, 0x225c
add eax, 2
mov word [eax - 2], bx
jmp 0x4054ff
mov ecx, 0x725c
add eax, 2
mov word [eax - 2], cx
jmp 0x4054ff
mov edi, 0x745c
add eax, 2
mov word [eax - 2], di
jmp 0x4054ff
mov word [ebp - 0x138], 0x224c
lea ecx, [ebp - 0x136]
mov byte [ebp - 0x136], 0x22
lea eax, [ecx + 1]
jmp 0x4052ca
mov byte [eax], cl
add eax, 1
jmp 0x4054ff
lea eax, [ebp - 0x1b8]
mov dword [esp], str._04x
mov dword [ebp - 0x25c], eax
movzx eax, word [ebp - 0x25c]
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_2
jmp 0x4055b0
mov word [ebp - 0x138], 0x224c
lea eax, [ebp - 0x136]
mov byte [ebp - 0x136], 0x22
lea ecx, [eax + 1]
jmp 0x40559f