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 0x404a20
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 0x404278
mov edx, dword [ebp - 0x254]
cmp edx, 1
jle 0x40426b
mov eax, 0x408e6e
mov edi, 1
shr eax, 0x10
mov dword [ebp - 0x26c], eax
mov eax, 0x408e72
shr eax, 0x10
mov dword [ebp - 0x268], eax
mov eax, str.nologo
shr eax, 0x10
mov dword [ebp - 0x264], eax
jmp 0x40420e
mov dword [esp + 4], 0x408e76
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
jne 0x404240
mov ebx, 0xffffffff
mov word [0x407018], bx
mov edx, dword [ebp - 0x254]
add edi, 1
cmp edx, edi
jle 0x40426b
mov eax, dword [ebp - 0x25c]
mov esi, dword [eax + edi*4]
movzx eax, word [esi]
mov ecx, eax
and ecx, 0xfffffffd
cmp cx, 0x2d
jne 0x4043a8
lea ebx, [esi + 2]
cmp ax, 0x2f
jne 0x4041e0
cmp word [esi + 2], 0x2f
jne 0x4041e0
lea ebx, [esi + 4]
jmp 0x4041e0
mov dword [esp + 4], 0x408e7a
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
jne 0x404290
mov edx, dword [ebp - 0x254]
xor ecx, ecx
add edi, 1
mov word [0x407018], cx
cmp edx, edi
jg 0x40420e
test byte [0x40708c], 1
jne 0x404b80
mov edi, 1
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esp + 4], str.nologo
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
jne 0x404b00
test byte [0x40708c], 1
je 0x404201
mov edx, dword [ebp - 0x264]
test edx, edx
je 0x404f64
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 0x404d9d
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [edx + edx + 0x408e52], 0
jne 0x4042f0
mov eax, 0x224c
mov ebx, str.nologo
mov dword [ebp - 0x270], edi
lea esi, [ebp - 0x16]
mov word [ebp - 0x138], ax
lea ecx, [ebp - 0x136]
mov dword [ebp - 0x260], ebx
jmp 0x404365
cmp ax, 9
je 0x404f38
cmp ax, 0xa
jne 0x404ec6
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [edx - 1]
cmp ecx, esi
ja 0x404d69
test edx, edx
jle 0x404d69
mov edx, eax
add dword [ebp - 0x260], 2
mov eax, dword [ebp - 0x260]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x404ea8
jbe 0x404330
cmp ax, 0x22
je 0x404f20
cmp ax, 0x5c
jne 0x404eb9
mov edi, 0x5c5c
add ecx, 2
mov word [ecx - 2], di
jmp 0x404350
mov eax, dword [ebp - 0x25c]
sub edx, edi
mov dword [esp], esi
sub edx, 1
mov dword [esp + 8], 0x4130c0
lea eax, [eax + edi*4 + 4]
mov dword [0x4130a0], edx
mov dword [0x4130a4], 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 0x404278
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 0x404f8c
lea eax, [ebp - 0x24c]
mov dword [esp + 4], ebx
mov edi, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [esp + 8], eax
mov dword [esp], 0x80000000
call edi
sub esp, 0xc
test eax, eax
jne 0x404c90
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 - 0x260], 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 - 0x264], eax
call eax
mov edx, dword [ebp - 0x25c]
sub esp, 4
test edx, edx
jne 0x404c90
test byte [0x40708c], 8
jne 0x4051f6
cmp word [ebp - 0x238], 0
lea edx, [ebp - 0x238]
je 0x4044d9
nop
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x4044d0
xor eax, eax
nop
lea esi, [esi]
movzx ecx, word [eax + str.ScriptEngine]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4044e0
lea eax, [ebp - 0x24c]
mov dword [esp], 0x80000000
mov dword [esp + 8], eax
lea eax, [ebp - 0x238]
mov dword [esp + 4], eax
call edi
sub esp, 0xc
test eax, eax
jne 0x404c90
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 - 0x260]
call eax
mov edi, eax
mov eax, dword [ebp - 0x24c]
sub esp, 0x10
mov dword [esp], eax
mov eax, dword [ebp - 0x264]
call eax
sub esp, 4
test edi, edi
jne 0x404c90
test byte [0x40708c], 8
jne 0x40553c
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 0x404c90
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 0x405034
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 0x405034
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 0x405029
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 0x405125
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax]
mov dword [esp + 8], 0x4132cc
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 0x40511c
mov dword [esp + 8], 0x4132c8
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 0x405125
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 0x405125
mov edx, dword [ebp - 0x260]
mov eax, dword [edx]
mov dword [esp], edx
call dword [eax + 0xc]
sub esp, 4
test eax, eax
js 0x405125
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 0x405125
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 0x405125
mov eax, dword [ebx]
mov dword [esp + 4], 5
mov dword [esp], ebx
call dword [eax + 0x14]
sub esp, 8
test eax, eax
js 0x405125
mov eax, dword [ebp - 0x238]
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [ebp - 0x264], 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 esi, eax
cmp eax, 0xffffffff
je 0x405739
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileSize]
sub esp, 8
mov dword [ebp - 0x260], eax
mov dword [esp], esi
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], esi
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [ebp - 0x268], esi
call esi
sub esp, 4
cmp ebx, 0xffffffff
je 0x405739
mov dword [esp], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 4
call dword [sym.imp.kernel32.dll_MapViewOfFile]
sub esp, 0x14
mov esi, eax
mov dword [esp], ebx
mov ebx, dword [ebp - 0x268]
call ebx
sub esp, 4
test esi, esi
je 0x405739
mov ecx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x260]
mov dword [esp + 8], esi
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 dword [ebp - 0x268], eax
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.oleaut32.dll_SysAllocStringLen]
mov edx, dword [ebp - 0x268]
mov ecx, dword [ebp - 0x26c]
sub esp, 8
mov ebx, eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x260]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
sub esp, 0x18
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
sub esp, 4
test ebx, ebx
je 0x405739
mov esi, dword [ebp - 0x264]
mov eax, dword [esi]
mov dword [esp], esi
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 esi, eax
mov dword [esp], ebx
call dword [sym.imp.oleaut32.dll_SysFreeString]
sub esp, 4
test esi, esi
js 0x405886
mov ebx, dword [ebp - 0x25c]
mov eax, dword [ebx]
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [eax + 0x14]
sub esp, 8
test eax, eax
js 0x405779
mov ebx, dword [ebp - 0x25c]
mov eax, dword [ebx]
mov dword [esp], ebx
call dword [eax + 0x1c]
mov eax, dword [0x4132cc]
sub esp, 4
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
sub esp, 4
mov ebx, dword [ebp - 0x25c]
mov eax, dword [ebx]
mov dword [esp], ebx
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 0x40427d
test ebx, ebx
je 0x404f5a
mov eax, ebx
shr eax, 0x10
je 0x404bb0
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 0x404bc5
cmp word [ebx], 0
je 0x405008
nop
mov edx, eax
lea eax, [eax + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x404a60
mov ecx, 0x224c
lea esi, [ebp - 0x136]
lea edi, [ebp - 0x16]
mov word [ebp - 0x138], cx
jmp 0x404ac5
cmp ax, 9
je 0x404dd0
cmp ax, 0xa
jne 0x404dee
mov eax, 0x6e5c
add esi, 2
mov word [esi - 2], ax
nop
lea esi, [esi]
lea eax, [edx - 1]
test edx, edx
jle 0x404e70
cmp esi, edi
ja 0x404e70
mov edx, eax
movzx eax, word [ebx]
add ebx, 2
cmp ax, 0xd
je 0x404e58
jbe 0x404a88
cmp ax, 0x22
je 0x404e40
cmp ax, 0x5c
jne 0x404de1
mov eax, 0x5c5c
add esi, 2
mov word [esi - 2], ax
jmp 0x404ab0
mov dword [esp + 4], 0x408e72
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
jne 0x404c10
test byte [0x40708c], 1
je 0x404201
mov ebx, dword [ebp - 0x268]
test ebx, ebx
je 0x404fe2
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0x408e72
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x4051ec
lea eax, [ebp - 0x138]
mov byte [ebp - 0x134], 0
mov dword [esp], eax
mov dword [ebp - 0x138], 0x2264224c
call sym.___wine_dbg_strdup
mov dword [esp + 0x10], eax
jmp 0x404da1
mov dword [esp + 0xc], str.No_file_name_specified_n
mov edi, 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 0x40427d
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
mov dword [esp + 4], 0x408e6e
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
jne 0x40504c
test byte [0x40708c], 1
je 0x404201
mov ecx, dword [ebp - 0x26c]
test ecx, ecx
je 0x4054cb
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0x408e6e
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x4051ec
lea eax, [ebp - 0x138]
mov byte [ebp - 0x134], 0
mov dword [esp], eax
mov dword [ebp - 0x138], 0x2275224c
call sym.___wine_dbg_strdup
jmp 0x404b73
test byte [0x40708c], 1
je 0x404278
mov eax, ebx
shr eax, 0x10
je 0x40538d
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 0x404f9e
cmp word [ebx], 0
je 0x4054f1
nop
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x404cd8
mov eax, 0x224c
lea esi, [ebp - 0x136]
lea edi, [ebp - 0x16]
mov word [ebp - 0x138], ax
jmp 0x404d35
cmp ax, 9
je 0x40515b
cmp ax, 0xa
jne 0x405179
mov eax, 0x6e5c
add esi, 2
mov word [esi - 2], ax
lea esi, [esi]
lea eax, [edx - 1]
test edx, edx
jle 0x40535a
cmp esi, edi
ja 0x40535a
mov edx, eax
movzx eax, word [ebx]
add ebx, 2
cmp ax, 0xd
je 0x4051db
jbe 0x404cfc
cmp ax, 0x22
je 0x4051ca
cmp ax, 0x5c
jne 0x40516c
mov ecx, 0x5c5c
add esi, 2
mov word [esi - 2], cx
jmp 0x404d20
mov byte [ecx], 0x22
mov edi, dword [ebp - 0x270]
test eax, eax
jle 0x404fda
mov esi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], si
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 0x404201
mov eax, 0x745c
add esi, 2
mov word [esi - 2], ax
jmp 0x404ab0
lea ecx, [eax - 0x20]
cmp cx, 0x5e
jbe 0x404f50
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 0x404ab0
mov eax, 0x225c
add esi, 2
mov word [esi - 2], ax
jmp 0x404ab0
mov eax, 0x725c
add esi, 2
mov word [esi - 2], ax
jmp 0x404ab0
mov byte [esi], 0x22
test eax, eax
jle 0x405021
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
jmp 0x404bc5
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x404350
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x404fd0
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 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 [ecx - 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 [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefset_host_properties]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x404350
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x404350
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x404350
mov byte [esi], al
add esi, 1
jmp 0x404ab0
mov edx, str._null_
jmp 0x404bc5
mov dword [ebp - 0x260], str.nologo
movzx eax, word [ebp - 0x260]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_2
mov edx, eax
jmp 0x404d9d
test byte [0x40708c], 1
je 0x404278
mov edx, str._null_
mov dword [esp + 0x10], edx
mov edi, 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 0x40427d
mov byte [ecx], al
add ecx, 1
jmp 0x404350
lea eax, [ecx + 1]
jmp 0x404d8a
mov dword [ebp - 0x260], 0x408e72
movzx eax, word [ebp - 0x260]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_2
jmp 0x404b73
mov eax, 0x224c
mov byte [ebp - 0x136], 0x22
lea esi, [ebp - 0x136]
mov word [ebp - 0x138], ax
lea eax, [esi + 1]
jmp 0x404e8b
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
test byte [0x40708c], 1
jne 0x4053a7
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x404278
test byte [0x40708c], 1
je 0x404278
mov eax, ebx
shr eax, 0x10
je 0x40584e
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 0x405408
cmp word [ebx], 0
je 0x4058c0
mov esi, eax
lea eax, [eax + 1]
cmp word [ebx + esi*2 + 2], 0
jne 0x40508f
mov eax, 0x224c
lea edi, [ebp - 0x16]
mov word [ebp - 0x138], ax
lea eax, [ebp - 0x136]
jmp 0x4050e8
cmp dx, 9
je 0x405717
cmp dx, 0xa
jne 0x4056b5
mov edx, 0x6e5c
add eax, 2
mov word [eax - 2], dx
lea edx, [esi - 1]
cmp eax, edi
ja 0x4053da
test esi, esi
jle 0x4053da
mov esi, edx
movzx edx, word [ebx]
add ebx, 2
cmp dx, 0xd
je 0x405728
jbe 0x4050b3
cmp dx, 0x22
je 0x405706
cmp dx, 0x5c
jne 0x4056a8
mov edx, 0x5c5c
add eax, 2
mov word [eax - 2], dx
jmp 0x4050d3
mov dword [esp], eax
call dword [ecx + 8]
sub esp, 4
test byte [0x40708c], 1
je 0x4049ea
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 0x4049ea
mov eax, 0x745c
add esi, 2
mov word [esi - 2], ax
jmp 0x404d20
lea ecx, [eax - 0x20]
cmp cx, 0x5e
jbe 0x4053d0
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 0x404d20
mov eax, 0x225c
add esi, 2
mov word [esi - 2], ax
jmp 0x404d20
mov eax, 0x725c
add esi, 2
mov word [esi - 2], ax
jmp 0x404d20
mov eax, str._invalid_
jmp 0x404b73
lea eax, [ebp - 0x238]
shr eax, 0x10
je 0x405512
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 0x40532d
cmp word [ebp - 0x238], 0
je 0x405868
mov ecx, eax
lea eax, [eax + 1]
cmp word [ebp + ecx*2 - 0x236], 0
jne 0x40523a
mov eax, 0x224c
mov dword [ebp - 0x270], edi
lea edx, [ebp - 0x136]
mov word [ebp - 0x138], ax
lea eax, [ebp - 0x238]
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x16]
mov dword [ebp - 0x268], esi
mov edi, eax
mov dword [ebp - 0x26c], ebx
jmp 0x4052ae
cmp ax, 9
je 0x40543a
cmp ax, 0xa
jne 0x405469
mov eax, 0x6e5c
add edx, 2
mov word [edx - 2], ax
lea eax, [ecx - 1]
cmp edx, edi
ja 0x4052ed
test ecx, ecx
jle 0x4052ed
mov ecx, eax
add dword [ebp - 0x25c], 2
mov eax, dword [ebp - 0x25c]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x40544b
jbe 0x405281
cmp ax, 0x22
je 0x4054ba
cmp ax, 0x5c
jne 0x40545c
mov ebx, 0x5c5c
add edx, 2
mov word [edx - 2], bx
jmp 0x4052a1
mov esi, dword [ebp - 0x268]
mov ebx, dword [ebp - 0x26c]
mov byte [edx], 0x22
mov edi, dword [ebp - 0x270]
test eax, eax
jle 0x40587e
mov ecx, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], cx
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 0x4044b8
mov byte [esi], 0x22
test eax, eax
jle 0x40550a
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 0x404f9e
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf_2
mov edx, eax
jmp 0x404f9e
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 0x405041
mov byte [esi], al
add esi, 1
jmp 0x404d20
mov byte [eax], 0x22
test edx, edx
jle 0x4058d6
mov ecx, 0x2e2e
mov byte [eax + 3], 0x2e
lea edx, [eax + 4]
mov word [eax + 1], cx
lea eax, [ebp - 0x138]
mov byte [edx], 0
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
mov dword [esp + 0x10], edx
mov edi, 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 0x40427d
mov eax, 0x745c
add edx, 2
mov word [edx - 2], ax
jmp 0x4052a1
mov eax, 0x725c
add edx, 2
mov word [edx - 2], ax
jmp 0x4052a1
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x40576f
mov esi, eax
mov byte [edx], 0x5c
add edx, 5
shr si, 0xc
movzx esi, si
movzx ebx, byte [esi + str.0123456789abcdefset_host_properties]
mov esi, eax
shr si, 8
and esi, 0xf
mov byte [edx - 4], bl
movzx ebx, byte [esi + str.0123456789abcdefset_host_properties]
mov esi, eax
and eax, 0xf
shr si, 4
movzx eax, byte [eax + str.0123456789abcdefset_host_properties]
and esi, 0xf
mov byte [edx - 3], bl
movzx ebx, byte [esi + str.0123456789abcdefset_host_properties]
mov byte [edx - 1], al
mov byte [edx - 2], bl
jmp 0x4052a1
mov esi, 0x225c
add edx, 2
mov word [edx - 2], si
jmp 0x4052a1
mov dword [ebp - 0x260], 0x408e6e
movzx eax, word [ebp - 0x260]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_2
jmp 0x404b73
mov eax, 0x224c
mov byte [ebp - 0x136], 0x22
lea esi, [ebp - 0x136]
mov word [ebp - 0x138], ax
lea eax, [esi + 1]
jmp 0x405375
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 0x40532d
lea eax, [ebp - 0x1b8]
shr eax, 0x10
je 0x4058e8
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 0x40567b
cmp word [ebp - 0x1b8], 0
je 0x405910
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebp + edx*2 - 0x1b6], 0
jne 0x405582
mov dword [ebp - 0x25c], edx
mov eax, 0x224c
lea edx, [ebp - 0x16]
lea ecx, [ebp - 0x1b8]
mov word [ebp - 0x138], ax
lea eax, [ebp - 0x136]
mov dword [ebp - 0x260], edx
mov edx, dword [ebp - 0x25c]
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x25c], ecx
jmp 0x405604
cmp cx, 9
je 0x405833
cmp cx, 0xa
jne 0x4057d1
mov ebx, 0x6e5c
add eax, 2
mov word [eax - 2], bx
lea ecx, [edx - 1]
cmp eax, dword [ebp - 0x260]
ja 0x405643
test edx, edx
jle 0x405643
mov edx, ecx
add dword [ebp - 0x25c], 2
mov ebx, dword [ebp - 0x25c]
movzx ecx, word [ebx - 2]
cmp cx, 0xd
je 0x4057b3
jbe 0x4055d3
cmp cx, 0x22
je 0x405822
cmp cx, 0x5c
jne 0x4057c4
mov ecx, 0x5c5c
add eax, 2
mov word [eax - 2], cx
jmp 0x4055f3
mov esi, dword [ebp - 0x264]
mov ebx, dword [ebp - 0x268]
mov byte [eax], 0x22
test ecx, ecx
jle 0x405926
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 0x404580
lea ecx, [edx - 0x20]
cmp cx, 0x5e
jbe 0x405844
mov ecx, edx
mov byte [eax], 0x5c
add eax, 5
shr cx, 0xc
movzx ecx, cx
movzx ecx, byte [ecx + str.0123456789abcdefset_host_properties]
mov byte [eax - 4], cl
mov ecx, edx
shr cx, 8
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefset_host_properties]
mov byte [eax - 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 [eax - 1], dl
mov byte [eax - 2], cl
jmp 0x4050d3
mov ecx, 0x225c
add eax, 2
mov word [eax - 2], cx
jmp 0x4050d3
mov edx, 0x745c
add eax, 2
mov word [eax - 2], dx
jmp 0x4050d3
mov ecx, 0x725c
add eax, 2
mov word [eax - 2], cx
jmp 0x4050d3
test byte [0x40708c], 1
je 0x4049c9
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 0x4049c9
mov byte [edx], al
add edx, 1
jmp 0x4052a1
test byte [0x40708c], 1
je 0x4049c9
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 0x4049c9
mov ecx, 0x725c
add eax, 2
mov word [eax - 2], cx
jmp 0x4055f3
lea esi, [ecx - 0x20]
cmp si, 0x5e
jbe 0x4058de
mov esi, ecx
mov byte [eax], 0x5c
add eax, 5
shr si, 0xc
movzx esi, si
movzx ebx, byte [esi + str.0123456789abcdefset_host_properties]
mov esi, ecx
shr si, 8
and esi, 0xf
mov byte [eax - 4], bl
movzx ebx, byte [esi + str.0123456789abcdefset_host_properties]
mov esi, ecx
and ecx, 0xf
shr si, 4
movzx ecx, byte [ecx + str.0123456789abcdefset_host_properties]
and esi, 0xf
mov byte [eax - 3], bl
movzx ebx, byte [esi + str.0123456789abcdefset_host_properties]
mov byte [eax - 1], cl
mov byte [eax - 2], bl
jmp 0x4055f3
mov ebx, 0x225c
add eax, 2
mov word [eax - 2], bx
jmp 0x4055f3
mov esi, 0x745c
add eax, 2
mov word [eax - 2], si
jmp 0x4055f3
mov byte [eax], dl
add eax, 1
jmp 0x4050d3
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf_2
mov edx, eax
jmp 0x405408
mov word [ebp - 0x138], 0x224c
lea edx, [ebp - 0x136]
mov byte [ebp - 0x136], 0x22
lea eax, [edx + 1]
jmp 0x40531a
test byte [0x40708c], 1
je 0x4049c9
mov dword [esp + 0x10], esi
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 0x4049c9
mov word [ebp - 0x138], 0x224c
lea eax, [ebp - 0x136]
mov byte [ebp - 0x136], 0x22
lea edx, [eax + 1]
jmp 0x4053f5
mov byte [eax], cl
add eax, 1
jmp 0x4055f3
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 0x40567b
mov word [ebp - 0x138], 0x224c
lea eax, [ebp - 0x136]
mov byte [ebp - 0x136], 0x22
lea ecx, [eax + 1]
jmp 0x40566a