Function at 0x404310
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, 0x2a8
mov eax, dword [ecx]
mov ebx, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x270], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x274], eax
test byte [0x40708c], 8
jne 0x404bb8
call dword [sym.imp.kernel32.dll_GetCommandLineW]
lea edx, [ebp - 0x260]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.shell32.dll_CommandLineToArgvW]
mov dword [ebp - 0x26c], eax
sub esp, 8
test eax, eax
je 0x404434
mov edx, dword [ebp - 0x260]
cmp edx, 1
jle 0x404427
mov eax, str.nologo
mov ebx, 1
shr eax, 0x10
mov dword [ebp - 0x270], eax
jmp 0x4043cf
mov dword [esp + 4], 0x408e6e
mov edi, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [esp], esi
call edi
test eax, eax
jne 0x404400
mov eax, 0xffffffff
mov word [section..bss], ax
mov edx, dword [ebp - 0x260]
add ebx, 1
cmp edx, ebx
jle 0x404427
mov eax, dword [ebp - 0x26c]
mov edi, dword [eax + ebx*4]
movzx eax, word [edi]
mov esi, eax
and esi, 0xfffffffd
cmp si, 0x2d
jne 0x404550
lea esi, [edi + 2]
cmp ax, 0x2f
jne 0x4043a0
cmp word [edi + 2], 0x2f
jne 0x4043a0
lea esi, [edi + 4]
jmp 0x4043a0
mov dword [esp + 4], 0x408e72
mov dword [esp], esi
call edi
test eax, eax
jne 0x404450
mov edx, dword [ebp - 0x260]
xor edi, edi
add ebx, 1
mov word [section..bss], di
cmp edx, ebx
jg 0x4043cf
test byte [0x40708c], 1
jne 0x404d90
mov esi, 1
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 4], str.nologo
mov dword [esp], esi
call edi
test eax, eax
jne 0x404cb0
test byte [0x40708c], 1
je 0x4043c2
mov esi, dword [ebp - 0x270]
test esi, esi
je 0x4050f4
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 0x404f2d
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [edx + edx + 0x408e52], 0
jne 0x4044a8
mov ecx, 0x224c
mov dword [ebp - 0x274], ebx
lea esi, [ebp - 0x142]
mov word [ebp - 0x144], cx
mov ecx, str.nologo
jmp 0x404518
cmp ax, 9
je 0x4050c8
cmp ax, 0xa
jne 0x405056
mov eax, 0x6e5c
add esi, 2
mov word [esi - 2], ax
lea eax, [edx - 1]
test edx, edx
jle 0x404ef9
lea ebx, [ebp - 0x22]
cmp esi, ebx
ja 0x404ef9
mov edx, eax
movzx eax, word [ecx]
add ecx, 2
cmp ax, 0xd
je 0x405038
jbe 0x4044e0
cmp ax, 0x22
je 0x4050b0
cmp ax, 0x5c
jne 0x405049
mov eax, 0x5c5c
add esi, 2
mov word [esi - 2], ax
jmp 0x404500
mov eax, dword [ebp - 0x26c]
sub edx, ebx
mov dword [esp], edi
sub edx, 1
mov dword [esp + 8], 0x414100
lea eax, [eax + ebx*4 + 4]
mov dword [0x4140e0], edx
mov dword [0x4140e4], eax
lea eax, [ebp - 0x264]
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 0x404434
mov eax, dword [ebp - 0x264]
mov dword [esp + 4], 0x2e
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcsrchr]
mov ebx, eax
test eax, eax
je 0x40511c
lea eax, [ebp - 0x258]
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 0x404e20
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
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueW]
mov dword [ebp - 0x274], eax
call eax
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp - 0x258]
sub esp, 0x10
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x270], eax
call eax
mov edx, dword [ebp - 0x26c]
sub esp, 4
test edx, edx
jne 0x404e20
test byte [0x40708c], 8
jne 0x4053a1
cmp word [ebp - 0x244], 0
lea edx, [ebp - 0x244]
je 0x404679
add edx, 2
cmp word [edx], 0
jne 0x404670
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 0x404680
lea eax, [ebp - 0x258]
mov dword [esp], 0x80000000
mov dword [esp + 8], eax
lea eax, [ebp - 0x244]
mov dword [esp + 4], eax
call esi
sub esp, 0xc
test eax, eax
jne 0x404e20
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
mov eax, dword [ebp - 0x274]
call eax
mov esi, eax
mov eax, dword [ebp - 0x258]
sub esp, 0x10
mov dword [esp], eax
mov eax, dword [ebp - 0x270]
call eax
sub esp, 4
test esi, esi
jne 0x404e20
test byte [0x40708c], 8
jne 0x40565d
lea eax, [ebp - 0x254]
mov dword [esp + 4], eax
lea eax, [ebp - 0x1c4]
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
sub esp, 8
test eax, eax
js 0x404e20
mov dword [esp], 0
lea ebx, [ebp - 0x144]
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x254]
sub esp, 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x40fa68
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 0x40527c
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x1c4]
mov ecx, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x40c788
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 0x40527c
mov eax, dword [ebp - 0x1c4]
lea edx, [ebp - 0x244]
mov ecx, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x40c778
mov dword [esp], eax
call dword [ecx]
sub esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x1c4]
js 0x405271
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp - 0x244]
mov dword [esp + 4], ebx
mov dword [ebp - 0x270], eax
mov dword [esp], str.wscript.exe
call dword [sym.imp.oleaut32.dll_LoadTypeLib]
sub esp, 8
test eax, eax
js 0x4052da
mov eax, dword [ebp - 0x144]
mov ecx, dword [eax]
mov dword [esp + 8], 0x41430c
mov dword [esp + 4], 0x4091dc
mov dword [esp], eax
call dword [ecx + 0x18]
sub esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x144]
mov ecx, dword [eax]
js 0x4052d1
mov dword [esp + 8], 0x414308
mov dword [esp + 4], 0x4091fc
mov dword [esp], eax
call dword [ecx + 0x18]
mov ebx, 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 ebx, ebx
js 0x4052da
mov ebx, dword [ebp - 0x26c]
mov eax, dword [ebx]
mov dword [esp + 4], 0x407044
mov dword [esp], ebx
call dword [eax + 0xc]
sub esp, 8
test eax, eax
js 0x4052da
mov ecx, dword [ebp - 0x270]
mov eax, dword [ecx]
mov dword [esp], ecx
call dword [eax + 0xc]
sub esp, 4
test eax, eax
js 0x4052da
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 0x4052da
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 0x4052da
mov eax, dword [ebx]
mov dword [esp + 4], 5
mov dword [esp], ebx
call dword [eax + 0x14]
sub esp, 8
test eax, eax
js 0x4052da
mov eax, dword [ebp - 0x244]
mov dword [esp], edi
mov dword [esp + 0x18], 0
mov dword [ebp - 0x278], 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 0x4057e7
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileSize]
sub esp, 8
mov dword [ebp - 0x274], 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 0x4057e7
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 - 0x270], eax
mov dword [esp], ebx
call edi
mov edi, dword [ebp - 0x270]
sub esp, 4
test edi, edi
je 0x4057e7
mov ecx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x274]
mov dword [esp + 8], edi
mov dword [esp + 0x14], 0
mov dword [ebp - 0x27c], 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 - 0x27c]
sub esp, 8
mov ebx, eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp - 0x270]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x274]
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 0x4057e7
mov ecx, dword [ebp - 0x278]
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 0x405857
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 0x40581d
mov ecx, dword [ebp - 0x26c]
mov eax, dword [ecx]
mov dword [esp], ecx
call dword [eax + 0x1c]
mov eax, dword [0x41430c]
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 dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x404439
test ebx, ebx
je 0x4050ea
mov eax, ebx
shr eax, 0x10
je 0x404dc0
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 0x404dd5
cmp word [ebx], 0
je 0x4051b9
lea esi, [esi]
lea edi, [edi]
mov edx, eax
lea eax, [eax + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x404c00
mov ecx, 0x224c
mov dword [ebp - 0x26c], ebx
mov word [ebp - 0x144], cx
lea ecx, [ebp - 0x142]
jmp 0x404c68
cmp ax, 9
je 0x404f60
cmp ax, 0xa
jne 0x404f7e
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [edx - 1]
test edx, edx
jle 0x405000
lea ebx, [ebp - 0x22]
cmp ecx, ebx
ja 0x405000
mov edx, eax
add dword [ebp - 0x26c], 2
mov eax, dword [ebp - 0x26c]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x404fe8
jbe 0x404c30
cmp ax, 0x22
je 0x404fd0
cmp ax, 0x5c
jne 0x404f71
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x404c50
test byte [0x40708c], 1
je 0x404434
mov eax, esi
shr eax, 0x10
je 0x405172
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 0x405187
cmp word [esi], 0
je 0x40553d
nop
lea esi, [esi]
mov ebx, eax
lea eax, [eax + 1]
cmp word [esi + ebx*2 + 2], 0
jne 0x404cf8
mov eax, 0x224c
lea edi, [ebp - 0x142]
mov word [ebp - 0x144], ax
lea eax, [ebp - 0x22]
jmp 0x404d55
cmp dx, 9
je 0x4051e0
cmp dx, 0xa
jne 0x40520f
mov ecx, 0x6e5c
add edi, 2
mov word [edi - 2], cx
lea edx, [ebx - 1]
cmp edi, eax
ja 0x405294
test ebx, ebx
jle 0x405294
mov ebx, edx
movzx edx, word [esi]
add esi, 2
cmp dx, 0xd
je 0x4051f1
jbe 0x404d20
cmp dx, 0x22
je 0x405260
cmp dx, 0x5c
jne 0x405202
mov ecx, 0x5c5c
add edi, 2
mov word [edi - 2], cx
jmp 0x404d40
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 0x404439
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 - 0x274]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x270]
mov dword [esp + 0xc], str.__p__p__s__x__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.wWinMain
mov dword [esp + 4], 0x40708c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x40434b
test byte [0x40708c], 1
je 0x404434
mov eax, ebx
shr eax, 0x10
je 0x40555e
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 0x40512e
cmp word [ebx], 0
je 0x40563c
nop
lea esi, [esi]
mov esi, eax
lea eax, [eax + 1]
cmp word [ebx + esi*2 + 2], 0
jne 0x404e68
mov eax, 0x224c
lea edi, [ebp - 0x142]
mov word [ebp - 0x144], ax
lea eax, [ebp - 0x22]
jmp 0x404ec5
cmp dx, 9
je 0x405310
cmp dx, 0xa
jne 0x40533f
mov ecx, 0x6e5c
add edi, 2
mov word [edi - 2], cx
lea esi, [esi]
lea edx, [esi - 1]
cmp edi, eax
ja 0x40550a
test esi, esi
jle 0x40550a
mov esi, edx
movzx edx, word [ebx]
add ebx, 2
cmp dx, 0xd
je 0x405321
jbe 0x404e8c
cmp dx, 0x22
je 0x405390
cmp dx, 0x5c
jne 0x405332
mov ecx, 0x5c5c
add edi, 2
mov word [edi - 2], cx
jmp 0x404eb0
mov byte [esi], 0x22
mov ebx, dword [ebp - 0x274]
test eax, eax
jle 0x40516a
mov edi, 0x2e2e
mov byte [esi + 3], 0x2e
lea eax, [esi + 4]
mov word [esi + 1], di
mov byte [eax], 0
lea eax, [ebp - 0x144]
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 0x4043c2
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x404c50
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x4050e0
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 0x404c50
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x404c50
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x404c50
mov byte [ecx], 0x22
test eax, eax
jle 0x4051d2
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 sym.___wine_dbg_strdup
mov edx, eax
jmp 0x404dd5
mov eax, 0x725c
add esi, 2
mov word [esi - 2], ax
jmp 0x404500
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x405160
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 0x404500
mov eax, 0x225c
add esi, 2
mov word [esi - 2], ax
jmp 0x404500
mov eax, 0x745c
add esi, 2
mov word [esi - 2], ax
jmp 0x404500
mov byte [ecx], al
add ecx, 1
jmp 0x404c50
mov edx, str._null_
jmp 0x404dd5
mov dword [ebp - 0x274], str.nologo
movzx eax, word [ebp - 0x274]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_2
mov edx, eax
jmp 0x404f2d
test byte [0x40708c], 1
je 0x404434
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 0x404439
mov byte [esi], al
add esi, 1
jmp 0x404500
lea eax, [esi + 1]
jmp 0x404f1a
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 0x404439
mov eax, 0x224c
mov byte [ebp - 0x142], 0x22
lea ecx, [ebp - 0x142]
mov word [ebp - 0x144], ax
lea eax, [ecx + 1]
jmp 0x40501b
mov ecx, 0x745c
add edi, 2
mov word [edi - 2], cx
jmp 0x404d40
mov edx, 0x725c
add edi, 2
mov word [edi - 2], dx
jmp 0x404d40
lea ecx, [edx - 0x20]
cmp cx, 0x5e
jbe 0x4052c7
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 0x404d40
mov edx, 0x225c
add edi, 2
mov word [edi - 2], dx
jmp 0x404d40
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
test byte [0x40708c], 1
jne 0x405578
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x404434
mov byte [edi], 0x22
test edx, edx
jle 0x405556
mov edx, 0x2e2e
mov byte [edi + 3], 0x2e
lea eax, [edi + 4]
mov word [edi + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x144]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
jmp 0x405187
mov byte [edi], dl
add edi, 1
jmp 0x404d40
mov dword [esp], eax
call dword [ecx + 8]
sub esp, 4
test byte [0x40708c], 1
je 0x404b84
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 0x404b84
mov ecx, 0x745c
add edi, 2
mov word [edi - 2], cx
jmp 0x404eb0
mov edx, 0x725c
add edi, 2
mov word [edi - 2], dx
jmp 0x404eb0
lea ecx, [edx - 0x20]
cmp cx, 0x5e
jbe 0x4055a1
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 0x404eb0
mov edx, 0x225c
add edi, 2
mov word [edi - 2], dx
jmp 0x404eb0
lea eax, [ebp - 0x244]
shr eax, 0x10
je 0x40574e
lea eax, [ebp - 0x244]
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 0x4054dd
cmp word [ebp - 0x244], 0
je 0x405922
mov edx, eax
lea eax, [eax + 1]
cmp word [ebp + edx*2 - 0x242], 0
jne 0x4053e5
mov eax, 0x224c
mov dword [ebp - 0x26c], edx
lea edx, [ebp - 0x244]
lea ecx, [ebp - 0x142]
mov word [ebp - 0x144], ax
lea eax, [ebp - 0x22]
mov dword [ebp - 0x27c], ebx
mov ebx, edx
mov dword [ebp - 0x280], esi
mov esi, dword [ebp - 0x26c]
mov dword [ebp - 0x278], edi
mov dword [ebp - 0x26c], eax
jmp 0x405469
cmp dx, 9
je 0x40561a
cmp dx, 0xa
jne 0x4055b8
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edx, [esi - 1]
cmp ecx, dword [ebp - 0x26c]
ja 0x40549d
test esi, esi
jle 0x40549d
mov esi, edx
movzx edx, word [ebx]
add ebx, 2
cmp dx, 0xd
je 0x40562b
jbe 0x405438
cmp dx, 0x22
je 0x405609
cmp dx, 0x5c
jne 0x4055ab
mov edi, 0x5c5c
add ecx, 2
mov word [ecx - 2], di
jmp 0x405458
mov edi, dword [ebp - 0x278]
mov ebx, dword [ebp - 0x27c]
mov byte [ecx], 0x22
mov esi, dword [ebp - 0x280]
test edx, edx
jle 0x405938
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 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 0x404660
mov byte [edi], 0x22
test edx, edx
jle 0x405655
mov edx, 0x2e2e
mov byte [edi + 3], 0x2e
lea eax, [edi + 4]
mov word [edi + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x144]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
jmp 0x40512e
mov eax, 0x224c
mov byte [ebp - 0x142], 0x22
lea edi, [ebp - 0x142]
mov word [ebp - 0x144], ax
lea eax, [edi + 1]
jmp 0x4052af
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf_2
mov edx, eax
jmp 0x40512e
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 0x405289
mov byte [edi], dl
add edi, 1
jmp 0x404eb0
lea edi, [edx - 0x20]
cmp di, 0x5e
jbe 0x4057dd
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 0x405458
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x405458
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x405458
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x405458
mov eax, 0x224c
mov byte [ebp - 0x142], 0x22
lea edi, [ebp - 0x142]
mov word [ebp - 0x144], ax
lea eax, [edi + 1]
jmp 0x405525
lea eax, [ebp - 0x1c4]
shr eax, 0x10
je 0x40594a
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 0x4057b0
cmp word [ebp - 0x1c4], 0
je 0x405972
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebp + edx*2 - 0x1c2], 0
jne 0x4056a3
mov eax, 0x224c
lea ecx, [ebp - 0x1c4]
mov dword [ebp - 0x270], edi
mov word [ebp - 0x144], ax
lea eax, [ebp - 0x142]
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x26c], ecx
jmp 0x40570f
cmp cx, 9
je 0x405911
cmp cx, 0xa
jne 0x40589e
mov ebx, 0x6e5c
add eax, 2
mov word [eax - 2], bx
lea ecx, [edx - 1]
test edx, edx
jle 0x405778
lea ebx, [ebp - 0x22]
cmp eax, ebx
ja 0x405778
mov edx, ecx
add dword [ebp - 0x26c], 2
mov ecx, dword [ebp - 0x26c]
movzx ecx, word [ecx - 2]
cmp cx, 0xd
je 0x405900
jbe 0x4056df
cmp cx, 0x22
je 0x4058ef
cmp cx, 0x5c
jne 0x405891
mov ecx, 0x5c5c
add eax, 2
mov word [eax - 2], cx
jmp 0x4056ff
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 sym._wine_dbg_sprintf_2
mov edx, eax
jmp 0x4054dd
mov edi, dword [ebp - 0x270]
mov ebx, dword [ebp - 0x274]
mov byte [eax], 0x22
test ecx, ecx
jle 0x405988
mov edx, 0x2e2e
mov byte [eax + 3], 0x2e
lea ecx, [eax + 4]
mov word [eax + 1], dx
lea eax, [ebp - 0x144]
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 0x404720
mov byte [ecx], dl
add ecx, 1
jmp 0x405458
test byte [0x40708c], 1
je 0x404b63
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 0x404b63
test byte [0x40708c], 1
je 0x404b63
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 0x404b63
test byte [0x40708c], 1
je 0x404b63
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 0x404b63
lea edi, [ecx - 0x20]
cmp di, 0x5e
jbe 0x405940
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 0x4056ff
mov ebx, 0x225c
add eax, 2
mov word [eax - 2], bx
jmp 0x4056ff
mov ecx, 0x725c
add eax, 2
mov word [eax - 2], cx
jmp 0x4056ff
mov edi, 0x745c
add eax, 2
mov word [eax - 2], di
jmp 0x4056ff
mov word [ebp - 0x144], 0x224c
lea ecx, [ebp - 0x142]
mov byte [ebp - 0x142], 0x22
lea eax, [ecx + 1]
jmp 0x4054ca
mov byte [eax], cl
add eax, 1
jmp 0x4056ff
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 sym._wine_dbg_sprintf_2
jmp 0x4057b0
mov word [ebp - 0x144], 0x224c
lea eax, [ebp - 0x142]
mov byte [ebp - 0x142], 0x22
lea ecx, [eax + 1]
jmp 0x40579f