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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x218
mov eax, dword [ecx]
test byte [0x40708c], 8
mov ebx, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x1f0], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x1f4], eax
jne 0x4046d0
call dword [sym.imp.kernel32.dll_GetCommandLineW]
lea edx, [ebp - 0x1e0]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.shell32.dll_CommandLineToArgvW]
sub esp, 8
test eax, eax
mov dword [ebp - 0x1ec], eax
je 0x4044b0
mov edx, dword [ebp - 0x1e0]
cmp edx, 1
jle 0x4044a1
mov eax, dword [ebp - 0x1ec]
mov esi, dword [eax + 4]
movzx eax, word [esi]
mov ecx, eax
and ecx, 0xfffffffd
cmp cx, 0x2d
jne 0x4052be
mov edi, str.nologo
mov ebx, 1
shr edi, 0x10
mov dword [ebp - 0x1f0], edi
jmp 0x404458
mov ecx, 0xffffffff
mov word [0x407018], cx
mov edx, dword [ebp - 0x1e0]
add ebx, 1
cmp edx, ebx
jle 0x4044a1
mov eax, dword [ebp - 0x1ec]
mov esi, dword [eax + ebx*4]
movzx eax, word [esi]
mov ecx, eax
and ecx, 0xfffffffd
cmp cx, 0x2d
jne 0x4047c0
cmp ax, 0x2f
lea edi, [esi + 2]
je 0x4044c3
mov dword [esp + 4], 0x408e8a
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
je 0x404424
mov dword [esp + 4], 0x408e8e
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
jne 0x4044d0
xor edx, edx
add ebx, 1
mov word [0x407018], dx
mov edx, dword [ebp - 0x1e0]
cmp edx, ebx
jg 0x40443d
test byte [0x40708c], 1
jne 0x4049f0
nop
mov eax, 1
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
cmp word [esi + 2], 0x2f
lea eax, [esi + 4]
cmove edi, eax
jmp 0x404461
mov dword [esp + 4], str.nologo
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
mov esi, eax
jne 0x4045e1
test byte [0x40708c], 1
je 0x404430
mov eax, dword [ebp - 0x1f0]
test eax, eax
je 0x404a1e
mov dword [esp + 4], 0xffffffff
mov dword [esp], str.nologo
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
mov edx, str._invalid_
jne 0x404a41
cmp word [str.nologo], 0
je 0x404543
add esi, 1
cmp word [esi + esi + str.nologo], 0
jne 0x404535
lea eax, [ebp - 0x142]
mov byte [ebp - 0x144], 0x4c
mov byte [ebp - 0x143], 0x22
mov edi, str.nologo
lea esi, [esi]
sub esi, 1
lea edx, [esi + 1]
test edx, edx
jle 0x4045b0
lea edx, [ebp - 0x22]
cmp eax, edx
ja 0x4045b0
add edi, 2
movzx edx, word [edi - 2]
cmp dx, 0xd
je 0x404c00
ja 0x404ac0
cmp dx, 9
je 0x404c80
cmp dx, 0xa
jne 0x404c20
sub esi, 1
mov byte [eax], 0x5c
mov byte [eax + 1], 0x6e
lea edx, [esi + 1]
add eax, 2
test edx, edx
jg 0x40456a
test esi, esi
mov byte [eax], 0x22
lea edx, [eax + 1]
jle 0x4045c9
lea edx, [eax + 4]
mov byte [eax + 1], 0x2e
mov byte [eax + 2], 0x2e
mov byte [eax + 3], 0x2e
lea eax, [ebp - 0x144]
mov byte [edx], 0
mov dword [esp], eax
call dbg.__wine_dbg_strdup
mov edx, eax
jmp 0x404a41
test byte [0x40708c], 1
je 0x4044b0
test edi, edi
je 0x4052b4
mov eax, edi
shr eax, 0x10
test eax, eax
je 0x4049a0
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
mov edx, str._invalid_
jne 0x4049b5
cmp word [edi], 0
je 0x405511
nop
add eax, 1
cmp word [edi + eax*2], 0
jne 0x404630
lea edx, [ebp - 0x142]
lea esi, [ebp - 0x22]
mov byte [ebp - 0x144], 0x4c
mov byte [ebp - 0x143], 0x22
sub eax, 1
cmp edx, esi
lea ecx, [eax + 1]
ja 0x40469e
test ecx, ecx
jle 0x40469e
add edi, 2
movzx ecx, word [edi - 2]
cmp cx, 0xd
je 0x404b70
ja 0x404a93
cmp cx, 9
je 0x404bf0
cmp cx, 0xa
jne 0x404b90
mov byte [edx], 0x5c
mov byte [edx + 1], 0x6e
add edx, 2
sub eax, 1
cmp edx, esi
lea ecx, [eax + 1]
jbe 0x40465b
test eax, eax
mov byte [edx], 0x22
jle 0x4052cd
lea eax, [edx + 4]
mov byte [edx + 1], 0x2e
mov byte [edx + 2], 0x2e
mov byte [edx + 3], 0x2e
mov byte [eax], 0
lea eax, [ebp - 0x144]
mov dword [esp], eax
call dbg.__wine_dbg_strdup
mov edx, eax
jmp 0x4049b5
test ebx, ebx
je 0x4052aa
mov eax, ebx
shr eax, 0x10
test eax, eax
je 0x404944
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
mov edx, str._invalid_
jne 0x404959
cmp word [ebx], 0
je 0x405518
add eax, 1
cmp word [ebx + eax*2], 0
jne 0x404710
lea ecx, [ebp - 0x142]
mov byte [ebp - 0x144], 0x4c
mov byte [ebp - 0x143], 0x22
mov dword [ebp - 0x1ec], ebx
sub eax, 1
lea ebx, [eax + 1]
test ebx, ebx
jle 0x40478e
lea edi, [ebp - 0x22]
cmp ecx, edi
ja 0x40478e
add dword [ebp - 0x1ec], 2
mov edx, dword [ebp - 0x1ec]
movzx ebx, word [edx - 2]
cmp bx, 0xd
je 0x404af2
ja 0x404a70
cmp bx, 9
je 0x404ae3
cmp bx, 0xa
jne 0x404b01
sub eax, 1
mov byte [ecx], 0x5c
mov byte [ecx + 1], 0x6e
lea ebx, [eax + 1]
add ecx, 2
test ebx, ebx
jg 0x40473e
test eax, eax
mov byte [ecx], 0x22
jle 0x4052d5
lea eax, [ecx + 4]
mov byte [ecx + 1], 0x2e
mov byte [ecx + 2], 0x2e
mov byte [ecx + 3], 0x2e
mov byte [eax], 0
lea eax, [ebp - 0x144]
mov dword [esp], eax
call dbg.__wine_dbg_strdup
mov edx, eax
jmp 0x404959
lea eax, [ebx*4 + 4]
add eax, dword [ebp - 0x1ec]
sub edx, ebx
mov dword [esp + 8], 0x4120e0
sub edx, 1
mov dword [esp + 4], 0x104
mov dword [esp], esi
mov dword [0x4120a0], edx
mov dword [0x4120a4], eax
lea eax, [ebp - 0x1e4]
mov dword [esp + 0xc], eax
call dword [sym.imp.kernel32.dll_GetFullPathNameW]
sub eax, 1
sub esp, 0x10
cmp eax, 0x103
ja 0x4044b0
mov eax, dword [ebp - 0x1e4]
mov dword [esp + 4], 0x2e
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcsrchr]
test eax, eax
mov edi, eax
je 0x404cad
lea eax, [ebp - 0x1d8]
mov dword [esp + 4], edi
mov dword [esp], 0x80000000
mov dword [esp + 8], eax
mov eax, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [ebp - 0x1ec], eax
call eax
sub esp, 0xc
test eax, eax
je 0x404d14
test byte [0x40708c], 1
je 0x4044b0
mov eax, edi
shr eax, 0x10
test eax, eax
je 0x4053ad
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
mov ecx, str._invalid_
jne 0x404cbf
cmp word [edi], 0
je 0x4056d0
add eax, 1
cmp word [edi + eax*2], 0
jne 0x4048a4
lea ecx, [ebp - 0x142]
lea esi, [ebp - 0x22]
mov byte [ebp - 0x144], 0x4c
mov byte [ebp - 0x143], 0x22
sub eax, 1
cmp ecx, esi
lea edx, [eax + 1]
ja 0x404912
test edx, edx
jle 0x404912
add edi, 2
movzx edx, word [edi - 2]
cmp dx, 0xd
je 0x405335
ja 0x404cf1
cmp dx, 9
je 0x405326
cmp dx, 0xa
jne 0x405353
mov byte [ecx], 0x5c
mov byte [ecx + 1], 0x6e
add ecx, 2
sub eax, 1
cmp ecx, esi
lea edx, [eax + 1]
jbe 0x4048cf
test eax, eax
mov byte [ecx], 0x22
jle 0x405611
lea eax, [ecx + 4]
mov byte [ecx + 1], 0x2e
mov byte [ecx + 2], 0x2e
mov byte [ecx + 3], 0x2e
mov byte [eax], 0
lea eax, [ebp - 0x144]
mov dword [esp], eax
call dbg.__wine_dbg_strdup
mov ecx, eax
jmp 0x404cbf
movzx edx, bx
mov dword [esp], str._04x
mov dword [esp + 4], edx
call dbg.wine_dbg_sprintf
mov edx, eax
mov eax, dword [ebp - 0x1f4]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], str.__p__p__s__x__n
mov dword [esp + 8], str.wWinMain
mov dword [esp + 4], 0x40708c
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x1f0]
mov dword [esp], 3
mov dword [esp + 0x10], eax
call sym._wine_dbg_log.constprop.9
jmp 0x4043bb
movzx edi, di
mov dword [esp], str._04x
mov dword [esp + 4], edi
call dbg.wine_dbg_sprintf
mov edx, eax
mov dword [esp + 0x10], edx
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.9
lea esp, [ebp - 0x10]
mov eax, 1
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 0xc], str.No_file_name_specified_n
mov dword [esp + 8], str.wWinMain
mov dword [esp + 4], 0x40708c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.9
mov eax, 1
jmp 0x4044b5
mov dword [ebp - 0x1f4], str.nologo
movzx eax, word [ebp - 0x1f4]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call dbg.wine_dbg_sprintf
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.9
jmp 0x404430
cmp bx, 0x22
je 0x404b60
cmp bx, 0x5c
jne 0x404b01
mov byte [ecx], 0x5c
mov byte [ecx + 1], 0x5c
add ecx, 2
jmp 0x404734
cmp cx, 0x22
je 0x404b80
cmp cx, 0x5c
jne 0x404b90
mov byte [edx], 0x5c
mov byte [edx + 1], 0x5c
add edx, 2
jmp 0x404651
cmp dx, 0x22
je 0x404c10
cmp dx, 0x5c
jne 0x404c20
mov byte [eax], 0x5c
mov byte [eax + 1], 0x5c
add eax, 2
jmp 0x404560
mov byte [ecx], 0x5c
mov byte [ecx + 1], 0x74
add ecx, 2
jmp 0x404734
mov byte [ecx], 0x5c
mov byte [ecx + 1], 0x72
add ecx, 2
jmp 0x404734
lea edi, [ebx - 0x20]
cmp di, 0x5e
jbe 0x404c8f
mov edi, ebx
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx edx, byte [edi + str.0123456789abcdefset_host_properties]
mov edi, ebx
shr di, 8
and edi, 0xf
mov byte [ecx - 4], dl
movzx edx, byte [edi + str.0123456789abcdefset_host_properties]
mov edi, ebx
shr di, 4
and ebx, 0xf
and edi, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefset_host_properties]
mov byte [ecx - 3], dl
movzx edx, byte [edi + str.0123456789abcdefset_host_properties]
mov byte [ecx - 1], bl
mov byte [ecx - 2], dl
jmp 0x404734
mov byte [ecx], 0x5c
mov byte [ecx + 1], 0x22
add ecx, 2
jmp 0x404734
mov byte [edx], 0x5c
mov byte [edx + 1], 0x72
add edx, 2
jmp 0x404651
mov byte [edx], 0x5c
mov byte [edx + 1], 0x22
add edx, 2
jmp 0x404651
lea ebx, [ecx - 0x20]
cmp bx, 0x5e
jbe 0x404c99
mov ebx, ecx
mov byte [edx], 0x5c
add edx, 5
shr bx, 0xc
movzx ebx, bx
movzx ebx, byte [ebx + str.0123456789abcdefset_host_properties]
mov byte [edx - 4], bl
mov ebx, ecx
shr bx, 8
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefset_host_properties]
mov byte [edx - 3], bl
mov ebx, ecx
and ecx, 0xf
shr bx, 4
movzx ecx, byte [ecx + str.0123456789abcdefset_host_properties]
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefset_host_properties]
mov byte [edx - 1], cl
mov byte [edx - 2], bl
jmp 0x404651
mov byte [edx], 0x5c
mov byte [edx + 1], 0x74
add edx, 2
jmp 0x404651
mov byte [eax], 0x5c
mov byte [eax + 1], 0x72
add eax, 2
jmp 0x404560
mov byte [eax], 0x5c
mov byte [eax + 1], 0x22
add eax, 2
jmp 0x404560
lea ecx, [edx - 0x20]
cmp cx, 0x5e
jbe 0x404ca3
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 0x404560
mov byte [eax], 0x5c
mov byte [eax + 1], 0x74
add eax, 2
jmp 0x404560
mov byte [ecx], bl
add ecx, 1
jmp 0x404734
mov byte [edx], cl
add edx, 1
jmp 0x404651
mov byte [eax], dl
add eax, 1
jmp 0x404560
test byte [0x40708c], 1
je 0x4044b0
mov ecx, str._null_
mov dword [esp + 0x10], ecx
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.9
mov eax, 1
jmp 0x4044b5
cmp dx, 0x22
je 0x405344
cmp dx, 0x5c
jne 0x405353
mov byte [ecx], 0x5c
mov byte [ecx + 1], 0x5c
add ecx, 2
jmp 0x4048c5
lea eax, [ebp - 0x1dc]
mov dword [ebp - 0x1dc], 0x40
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x1c4]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1d8]
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueW]
mov dword [ebp - 0x1f8], eax
call eax
mov ebx, eax
mov eax, dword [ebp - 0x1d8]
sub esp, 0x10
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x1f4], eax
call eax
sub esp, 4
test ebx, ebx
jne 0x40485f
test byte [0x40708c], 8
jne 0x4053d1
cmp word [ebp - 0x1c4], 0
lea eax, [ebp - 0x1c4]
je 0x404d9c
add eax, 2
cmp word [eax], 0
jne 0x404d93
mov ecx, str.ScriptEngine
add ecx, 2
movzx edx, word [ecx - 2]
add eax, 2
test dx, dx
mov word [eax - 2], dx
jne 0x404da1
lea eax, [ebp - 0x1d8]
mov dword [esp], 0x80000000
mov dword [esp + 8], eax
lea eax, [ebp - 0x1c4]
mov dword [esp + 4], eax
call dword [ebp - 0x1ec]
sub esp, 0xc
test eax, eax
jne 0x40485f
lea eax, [ebp - 0x1dc]
mov dword [ebp - 0x1dc], 0x40
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x144]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1d8]
mov dword [esp], eax
call dword [ebp - 0x1f8]
mov ebx, eax
mov eax, dword [ebp - 0x1d8]
sub esp, 0x10
mov dword [esp], eax
call dword [ebp - 0x1f4]
sub esp, 4
test ebx, ebx
jne 0x40485f
test byte [0x40708c], 8
jne 0x405619
lea eax, [ebp - 0x144]
lea ebx, [ebp - 0x1d4]
mov dword [esp], eax
mov dword [esp + 4], ebx
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
sub esp, 8
test eax, eax
js 0x40485f
mov dword [esp], 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x144]
sub esp, 4
mov dword [esp + 0xc], 0x40fa88
mov dword [esp + 8], 3
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
test eax, eax
js 0x4052ee
mov eax, dword [ebp - 0x144]
lea edi, [ebp - 0x1c4]
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], 0x40c7a8
mov dword [esp], eax
call dword [edx]
mov ebx, eax
mov eax, dword [ebp - 0x144]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
test ebx, ebx
js 0x4052ee
mov eax, dword [ebp - 0x1c4]
lea edi, [ebp - 0x1d8]
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], 0x40c798
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
test eax, eax
js 0x4052dd
lea eax, [ebp - 0x144]
mov ebx, dword [ebp - 0x1c4]
mov edi, dword [ebp - 0x1d8]
mov dword [esp], str.wscript.exe
mov dword [esp + 4], eax
call dword [sym.imp.oleaut32.dll_LoadTypeLib]
sub esp, 8
test eax, eax
js 0x405528
mov eax, dword [ebp - 0x144]
mov edx, dword [eax]
mov dword [esp + 8], 0x4122e8
mov dword [esp + 4], 0x4091dc
mov dword [esp], eax
call dword [edx + 0x18]
sub esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x144]
mov edx, dword [eax]
js 0x40551f
mov dword [esp + 8], global_ppTinfo
mov dword [esp + 4], 0x4091fc
mov dword [esp], eax
call dword [edx + 0x18]
mov dword [ebp - 0x1ec], 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 - 0x1ec]
sub esp, 4
test edx, edx
js 0x405528
mov eax, dword [ebx]
mov dword [esp + 4], 0x407044
mov dword [esp], ebx
call dword [eax + 0xc]
sub esp, 8
test eax, eax
js 0x405528
mov eax, dword [edi]
mov dword [esp], edi
call dword [eax + 0xc]
sub esp, 4
test eax, eax
js 0x405528
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 0x405528
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 0x405528
mov eax, dword [ebx]
mov dword [esp + 4], 5
mov dword [esp], ebx
call dword [eax + 0x14]
sub esp, 8
test eax, eax
js 0x405528
mov eax, dword [ebp - 0x1d8]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [ebp - 0x1f4], eax
mov dword [esp + 4], 0x80000000
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
mov edi, eax
je 0x405691
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileSize]
sub esp, 8
mov dword [ebp - 0x1f0], 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 esi, eax
mov dword [esp], edi
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
call edi
sub esp, 4
cmp esi, 0xffffffff
je 0x405691
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_MapViewOfFile]
sub esp, 0x14
mov dword [ebp - 0x1ec], eax
mov dword [esp], esi
call edi
mov edx, dword [ebp - 0x1ec]
sub esp, 4
test edx, edx
je 0x405691
mov eax, dword [ebp - 0x1f0]
mov dword [esp + 8], edx
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov dword [esp], 0
mov dword [ebp - 0x1f8], edx
call edx
sub esp, 0x18
mov edi, eax
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.oleaut32.dll_SysAllocStringLen]
sub esp, 8
mov esi, eax
mov edx, dword [ebp - 0x1f8]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov edi, dword [ebp - 0x1ec]
mov eax, dword [ebp - 0x1f0]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
call edx
sub esp, 0x18
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
sub esp, 4
test esi, esi
je 0x405691
mov edx, dword [ebp - 0x1f4]
mov eax, dword [edx]
mov dword [esp], edx
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], esi
call dword [eax + 0x14]
sub esp, 0x28
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.oleaut32.dll_SysFreeString]
sub esp, 4
test edi, edi
js 0x4056ff
mov eax, dword [ebx]
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [eax + 0x14]
sub esp, 8
test eax, eax
js 0x405739
mov eax, dword [ebx]
mov dword [esp], ebx
call dword [eax + 0x1c]
mov eax, dword [0x4122e8]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebx]
mov dword [esp], ebx
call dword [eax + 8]
mov eax, dword [ebp - 0x1d8]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x4044b5
mov edx, str._null_
jmp 0x404959
mov edx, str._null_
jmp 0x4049b5
mov eax, 8
mov ebx, 1
jmp 0x4047c7
lea eax, [edx + 1]
jmp 0x4046b8
lea eax, [ecx + 1]
jmp 0x4047a8
mov eax, dword [ebp - 0x1c4]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
test byte [0x40708c], 1
je 0x40531b
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.9
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x4044b0
mov byte [ecx], 0x5c
mov byte [ecx + 1], 0x74
add ecx, 2
jmp 0x4048c5
mov byte [ecx], 0x5c
mov byte [ecx + 1], 0x72
add ecx, 2
jmp 0x4048c5
mov byte [ecx], 0x5c
mov byte [ecx + 1], 0x22
add ecx, 2
jmp 0x4048c5
lea ebx, [edx - 0x20]
cmp bx, 0x5e
jbe 0x4053c7
mov ebx, edx
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, edx
shr bx, 8
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefset_host_properties]
mov byte [ecx - 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 [ecx - 1], dl
mov byte [ecx - 2], bl
jmp 0x4048c5
movzx edx, di
mov dword [esp], str._04x
mov dword [esp + 4], edx
call dbg.wine_dbg_sprintf
mov ecx, eax
jmp 0x404cbf
mov byte [ecx], dl
add ecx, 1
jmp 0x4048c5
lea eax, [ebp - 0x1c4]
shr eax, 0x10
test eax, eax
je 0x4055e9
lea eax, [ebp - 0x1c4]
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 0x4054c5
xor edx, edx
cmp word [ebp - 0x1c4], 0
je 0x405425
add edx, 1
cmp word [ebp + edx*2 - 0x1c4], 0
jne 0x405417
lea ebx, [ebp - 0x1c4]
lea eax, [ebp - 0x142]
mov byte [ebp - 0x144], 0x4c
mov byte [ebp - 0x143], 0x22
mov dword [ebp - 0x1f0], ebx
sub edx, 1
lea ecx, [edx + 1]
test ecx, ecx
jle 0x40549b
lea ebx, [ebp - 0x22]
cmp eax, ebx
ja 0x40549b
add dword [ebp - 0x1f0], 2
mov ebx, dword [ebp - 0x1f0]
movzx ecx, word [ebx - 2]
cmp cx, 0xd
je 0x40555e
ja 0x4054f2
cmp cx, 9
je 0x4055cb
cmp cx, 0xa
jne 0x40556d
sub edx, 1
mov byte [eax], 0x5c
mov byte [eax + 1], 0x6e
lea ecx, [edx + 1]
add eax, 2
test ecx, ecx
jg 0x40544f
test edx, edx
mov byte [eax], 0x22
lea ecx, [eax + 1]
jle 0x4054b4
lea ecx, [eax + 4]
mov byte [eax + 1], 0x2e
mov byte [eax + 2], 0x2e
mov byte [eax + 3], 0x2e
lea eax, [ebp - 0x144]
mov byte [ecx], 0
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.9
jmp 0x404d83
cmp cx, 0x22
je 0x4055da
cmp cx, 0x5c
jne 0x40556d
mov byte [eax], 0x5c
mov byte [eax + 1], 0x5c
add eax, 2
jmp 0x405445
xor eax, eax
jmp 0x40463a
xor eax, eax
jmp 0x40471a
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
test byte [0x40708c], 1
je 0x405281
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.9
jmp 0x405281
mov byte [eax], 0x5c
mov byte [eax + 1], 0x72
add eax, 2
jmp 0x405445
lea ebx, [ecx - 0x20]
cmp bx, 0x5e
jbe 0x405687
mov ebx, ecx
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, ecx
shr bx, 8
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefset_host_properties]
mov byte [eax - 3], bl
mov ebx, ecx
and ecx, 0xf
shr bx, 4
movzx ecx, byte [ecx + str.0123456789abcdefset_host_properties]
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefset_host_properties]
mov byte [eax - 1], cl
mov byte [eax - 2], bl
jmp 0x405445
mov byte [eax], 0x5c
mov byte [eax + 1], 0x74
add eax, 2
jmp 0x405445
mov byte [eax], 0x5c
mov byte [eax + 1], 0x22
add eax, 2
jmp 0x405445
lea eax, [ebp - 0x1c4]
mov dword [esp], str._04x
mov dword [ebp - 0x1f0], eax
movzx eax, word [ebp - 0x1f0]
mov dword [esp + 4], eax
call dbg.wine_dbg_sprintf
jmp 0x4054c5
lea eax, [ecx + 1]
jmp 0x40492c
lea eax, [ebp - 0x144]
shr eax, 0x10
test eax, eax
je 0x4056d7
lea eax, [ebp - 0x144]
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 0x40565a
lea eax, [ebp - 0x144]
call sym._wine_dbgstr_wn.part.0.constprop.11
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.9
jmp 0x404e41
mov byte [eax], cl
add eax, 1
jmp 0x405445
test byte [0x40708c], 1
je 0x405266
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.9
jmp 0x405266
xor eax, eax
jmp 0x4048ae
lea eax, [ebp - 0x144]
mov dword [esp], str._04x
mov dword [ebp - 0x1ec], eax
movzx eax, word [ebp - 0x1ec]
mov dword [esp + 4], eax
call dbg.wine_dbg_sprintf
jmp 0x40565a
test byte [0x40708c], 1
je 0x405266
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.9
jmp 0x405266
test byte [0x40708c], 1
je 0x405266
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.9
jmp 0x405266