Function at 0x4049f0
Capabilities:
Accept command line arguments
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x188
test byte [0x40708c], 8
mov ebx, dword [ebp + 0x10]
jne 0x404d78
call dword [sym.imp.kernel32.dll_GetCommandLineW]
lea edx, [ebp - 0x150]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.shell32.dll_CommandLineToArgvW]
mov dword [ebp - 0x15c], eax
test eax, eax
push edx
push edx
je 0x404aee
mov edx, dword [ebp - 0x150]
cmp edx, 1
jle 0x404ae1
mov eax, str.nologo
mov edi, 1
shr eax, 0x10
mov ebx, dword [ebp - 0x15c]
mov dword [ebp - 0x164], eax
jmp 0x404a89
mov dword [esp + 4], 0x409ea6
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
jne 0x404ab8
mov word [0x414008], 0xffff
inc edi
mov edx, dword [ebp - 0x150]
cmp edx, edi
jle 0x404ae1
mov eax, dword [ebx + edi*4]
mov cx, word [eax]
mov esi, ecx
and esi, 0xfffffffd
cmp si, 0x2d
jne 0x404c18
cmp cx, 0x2f
lea esi, [eax + 2]
jne 0x404a60
cmp word [eax + 2], 0x2f
jne 0x404a60
lea esi, [eax + 4]
jmp 0x404a60
mov dword [esp + 4], 0x409eaa
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
jne 0x404b00
inc edi
mov edx, dword [ebp - 0x150]
mov word [0x414008], 0
cmp edx, edi
jg 0x404a89
test byte [0x40708c], 1
jne 0x404f30
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esp + 4], str.nologo
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
jne 0x404e50
test byte [0x40708c], 1
je 0x404a7e
mov eax, dword [ebp - 0x164]
test eax, eax
je 0x4055ec
mov dword [esp + 4], 0xffffffff
mov dword [esp], str.nologo
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
test eax, eax
push esi
push esi
jne 0x405725
lea esi, [esi]
nop
mov edx, eax
lea eax, [eax + 1]
cmp word [edx + edx + 0x409e8a], 0
jne 0x404b58
lea esi, [ebp - 0x16]
mov word [ebp - 0x138], 0x224c
mov eax, 0x6e
lea ecx, [ebp - 0x136]
mov dword [ebp - 0x160], str.nologo
mov dword [ebp - 0x168], esi
mov dword [ebp - 0x16c], ebx
jmp 0x404bda
cmp ax, 9
je 0x4050f8
cmp ax, 0xa
jne 0x405092
mov word [ecx], 0x6e5c
add ecx, 2
lea esi, [esi]
cmp ecx, dword [ebp - 0x168]
lea esi, [edx - 1]
ja 0x405110
test edx, edx
jle 0x405110
mov eax, dword [ebp - 0x160]
mov edx, esi
mov ax, word [eax]
mov ebx, dword [ebp - 0x160]
add ebx, 2
cmp ax, 0xd
mov dword [ebp - 0x160], ebx
je 0x405078
jbe 0x404b98
cmp ax, 0x22
je 0x4050e8
cmp ax, 0x5c
jne 0x405085
mov word [ecx], 0x5c5c
add ecx, 2
jmp 0x404bb8
mov esi, eax
mov eax, dword [ebp - 0x15c]
sub edx, edi
mov dword [esp + 8], 0x414040
lea eax, [eax + edi*4 + 4]
dec edx
mov dword [0x414004], eax
lea eax, [ebp - 0x158]
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x104
mov dword [esp], esi
mov dword [section..bss], edx
call dword [sym.imp.kernel32.dll_GetFullPathNameW]
dec eax
sub esp, 0x10
cmp eax, 0x103
ja 0x404aee
mov eax, dword [ebp - 0x158]
mov dword [esp + 4], 0x2e
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcsrchr]
mov ebx, eax
test eax, eax
je 0x4055a8
lea edx, [ebp - 0x148]
call fcn.00404440
test eax, eax
jne 0x40516b
test byte [0x40708c], 1
je 0x404aee
mov eax, ebx
shr eax, 0x10
je 0x40587c
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
test eax, eax
push edx
push edx
jne 0x4058c8
cmp word [ebx], 0
je 0x4058d2
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x404cd8
mov word [ebp - 0x138], 0x224c
lea ecx, [ebp - 0x136]
lea esi, [ebp - 0x16]
mov dword [ebp - 0x15c], ebx
jmp 0x404d35
cmp ax, 9
je 0x405819
cmp ax, 0xa
jne 0x4057af
mov word [ecx], 0x6e5c
add ecx, 2
lea esi, [esi]
nop
lea eax, [edx - 1]
cmp ecx, esi
ja 0x40584e
test edx, edx
jle 0x40584e
mov edx, eax
mov eax, dword [ebp - 0x15c]
add eax, 2
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x15c]
mov ax, word [eax - 2]
cmp ax, 0xd
je 0x40580c
jbe 0x404cff
cmp ax, 0x22
je 0x4057ff
cmp ax, 0x5c
jne 0x4057a2
mov word [ecx], 0x5c5c
add ecx, 2
jmp 0x404d20
test ebx, ebx
je 0x40559e
mov eax, ebx
shr eax, 0x10
je 0x404f60
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
test eax, eax
push esi
push esi
jne 0x405594
mov dx, word [ebx]
test dx, dx
je 0x405682
lea esi, [esi]
mov ecx, eax
lea eax, [eax + 1]
cmp word [ebx + ecx*2 + 2], 0
jne 0x404db8
mov word [ebp - 0x138], 0x224c
lea eax, [ebp - 0x136]
lea esi, [ebp - 0x16]
mov dword [ebp + 0x10], ebx
jmp 0x404e1b
cmp dx, 9
je 0x405028
cmp dx, 0xa
jne 0x404fc5
mov word [eax], 0x6e5c
add eax, 2
lea esi, [esi]
lea edi, [ecx - 1]
cmp eax, esi
ja 0x405048
test ecx, ecx
jle 0x405048
mov ebx, dword [ebp + 0x10]
mov ecx, edi
mov dx, word [ebx]
mov ebx, dword [ebp + 0x10]
add ebx, 2
cmp dx, 0xd
mov dword [ebp + 0x10], ebx
je 0x405038
jbe 0x404de0
cmp dx, 0x22
je 0x405018
cmp dx, 0x5c
jne 0x404fb8
mov word [eax], 0x5c5c
add eax, 2
jmp 0x404e00
test byte [0x40708c], 1
mov ebx, esi
je 0x404aee
mov eax, esi
shr eax, 0x10
je 0x405613
mov dword [esp], esi
mov dword [esp + 4], 0xffffffff
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
test eax, eax
push esi
push esi
jne 0x405826
cmp word [ebx], 0
je 0x405830
nop
mov edx, eax
lea eax, [eax + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x404e90
mov word [ebp - 0x138], 0x224c
lea ecx, [ebp - 0x136]
lea esi, [ebp - 0x16]
mov dword [ebp - 0x15c], ebx
jmp 0x404eed
cmp ax, 9
je 0x4056a0
cmp ax, 0xa
jne 0x4056c7
mov word [ecx], 0x6e5c
add ecx, 2
lea esi, [esi]
lea eax, [edx - 1]
cmp ecx, esi
ja 0x40572f
test edx, edx
jle 0x40572f
mov edx, eax
mov ebx, dword [ebp - 0x15c]
add ebx, 2
mov dword [ebp - 0x15c], ebx
mov eax, dword [ebp - 0x15c]
mov ax, word [eax - 2]
cmp ax, 0xd
je 0x4056ad
jbe 0x404eb8
cmp ax, 0x22
je 0x405718
cmp ax, 0x5c
jne 0x4056ba
mov word [ecx], 0x5c5c
add ecx, 2
jmp 0x404ed8
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 fcn.00403d30
mov eax, 1
jmp 0x404af3
and ebx, 0xffff
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call fcn.00403ab0
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__p__p__s__x__n
mov dword [esp + 8], str.wWinMain
mov dword [esp + 4], 0x40708c
mov dword [esp], 3
call fcn.00403d30
jmp 0x404a0c
lea edi, [edx - 0x20]
cmp di, 0x5e
jbe 0x405108
mov edi, edx
mov byte [eax], 0x5c
shr di, 0xc
add eax, 5
and edi, 0xffff
mov bl, byte [edi + str.0123456789abcdefset_host_properties]
mov edi, edx
shr di, 8
mov byte [eax - 4], bl
and edi, 0xf
mov bl, byte [edi + str.0123456789abcdefset_host_properties]
mov edi, edx
shr di, 4
and edx, 0xf
and edi, 0xf
mov byte [eax - 3], bl
mov bl, byte [edi + str.0123456789abcdefset_host_properties]
mov byte [eax - 2], bl
mov bl, byte [edx + str.0123456789abcdefset_host_properties]
mov byte [eax - 1], bl
jmp 0x404e00
mov word [eax], 0x225c
add eax, 2
jmp 0x404e00
mov word [eax], 0x745c
add eax, 2
jmp 0x404e00
mov word [eax], 0x725c
add eax, 2
jmp 0x404e00
mov byte [eax], 0x22
test edi, edi
jle 0x405698
lea edx, [eax + 4]
mov word [eax + 1], 0x2e2e
mov byte [eax + 3], 0x2e
lea eax, [ebp - 0x138]
mov byte [edx], 0
mov dword [esp], eax
call fcn.00406210
jmp 0x404f76
mov word [ecx], 0x725c
add ecx, 2
jmp 0x404bb8
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x40560b
mov esi, eax
mov byte [ecx], 0x5c
shr si, 0xc
add ecx, 5
and esi, 0xffff
mov bl, byte [esi + str.0123456789abcdefset_host_properties]
mov esi, eax
shr si, 8
mov byte [ecx - 4], bl
and esi, 0xf
mov bl, byte [esi + str.0123456789abcdefset_host_properties]
mov esi, eax
shr si, 4
and eax, 0xf
and esi, 0xf
mov byte [ecx - 3], bl
mov al, byte [eax + str.0123456789abcdefset_host_properties]
mov bl, byte [esi + str.0123456789abcdefset_host_properties]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x404bb8
mov word [ecx], 0x225c
add ecx, 2
jmp 0x404bb8
mov word [ecx], 0x745c
add ecx, 2
jmp 0x404bb8
mov byte [eax], dl
inc eax
jmp 0x404e00
mov ebx, dword [ebp - 0x16c]
mov byte [ecx], 0x22
lea eax, [ecx + 1]
test esi, esi
jle 0x40512d
lea eax, [ecx + 4]
mov word [ecx + 1], 0x2e2e
mov byte [ecx + 3], 0x2e
mov byte [eax], 0
lea eax, [ebp - 0x138]
mov dword [esp], eax
call fcn.00406210
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.ignored__s_switch_n
mov dword [esp + 8], 0x40a1a8
mov dword [esp + 4], 0x40708c
mov dword [esp], 0
call fcn.00403d30
jmp 0x404a7e
mov dword [esp], 0
lea ebx, [ebp - 0x138]
call dword [sym.imp.ole32.dll_CoInitialize]
push eax
lea eax, [ebp - 0x148]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x410ab8
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 0x40566a
mov eax, dword [ebp - 0x138]
lea ecx, [ebp - 0x14c]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x40d7b8
mov dword [esp], eax
call dword [edx]
mov edi, eax
mov eax, dword [ebp - 0x138]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
test edi, edi
push eax
js 0x40566a
mov eax, dword [ebp - 0x14c]
lea ecx, [ebp - 0x154]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x40d7a8
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
test eax, eax
js 0x40565b
mov eax, dword [ebp - 0x154]
mov dword [esp + 4], ebx
mov dword [esp], str.wscript.exe
mov edi, dword [ebp - 0x14c]
mov dword [ebp - 0x15c], eax
call dword [sym.imp.oleaut32.dll_LoadTypeLib]
test eax, eax
push edx
push edx
js 0x40576c
mov eax, dword [ebp - 0x138]
mov edx, dword [eax]
mov dword [esp + 8], 0x414024
mov dword [esp + 4], 0x40a1dc
mov dword [esp], eax
call dword [edx + 0x18]
sub esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x138]
mov edx, dword [eax]
js 0x405765
mov dword [esp + 8], 0x414020
mov dword [esp + 4], 0x40a1fc
mov dword [esp], eax
call dword [edx + 0x18]
mov ebx, eax
mov eax, dword [ebp - 0x138]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
test ebx, ebx
push eax
js 0x40576c
mov eax, dword [edi]
mov dword [esp + 4], 0x407044
mov dword [esp], edi
call dword [eax + 0xc]
test eax, eax
push ecx
push ecx
js 0x40576c
mov ebx, dword [ebp - 0x15c]
mov eax, dword [ebx]
mov dword [esp], ebx
call dword [eax + 0xc]
test eax, eax
push edx
js 0x40576c
mov eax, dword [edi]
mov dword [esp + 8], 2
mov dword [esp + 4], str.WScript
mov dword [esp], edi
call dword [eax + 0x20]
sub esp, 0xc
test eax, eax
js 0x40576c
mov eax, dword [edi]
mov dword [esp + 8], 2
mov dword [esp + 4], 0x409e38
mov dword [esp], edi
call dword [eax + 0x20]
sub esp, 0xc
test eax, eax
js 0x40576c
mov eax, dword [edi]
mov dword [esp + 4], 5
mov dword [esp], edi
call dword [eax + 0x14]
test eax, eax
push ebx
push ebx
js 0x40576c
mov eax, dword [ebp - 0x154]
mov dword [esp], esi
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 [esp + 4], 0x80000000
mov dword [ebp - 0x164], eax
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov esi, eax
cmp eax, 0xffffffff
je 0x4058f0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [ebp - 0x160], eax
push edx
push edx
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]
call esi
cmp ebx, 0xffffffff
push ecx
je 0x4058f0
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 - 0x15c], eax
mov dword [esp], ebx
call esi
mov esi, dword [ebp - 0x15c]
test esi, esi
push eax
je 0x4058f0
mov eax, dword [ebp - 0x160]
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 8], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x168], edx
call edx
sub esp, 0x18
mov esi, eax
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.oleaut32.dll_SysAllocStringLen]
mov edx, dword [ebp - 0x168]
push ebx
push ebx
mov ebx, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov esi, dword [ebp - 0x15c]
mov eax, dword [ebp - 0x160]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call edx
sub esp, 0x18
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
test ebx, ebx
push esi
je 0x4058f0
mov ecx, dword [ebp - 0x164]
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 esi, eax
mov dword [esp], ebx
call dword [sym.imp.oleaut32.dll_SysFreeString]
test esi, esi
push ecx
js 0x405960
mov eax, dword [edi]
mov dword [esp + 4], 1
mov dword [esp], edi
call dword [eax + 0x14]
test eax, eax
push edx
push edx
js 0x405926
mov eax, dword [edi]
mov dword [esp], edi
call dword [eax + 0x1c]
mov eax, dword [0x414024]
push ebx
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
push esi
mov eax, dword [edi]
mov dword [esp], edi
call dword [eax + 8]
mov eax, dword [ebp - 0x154]
push edx
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
push ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x404af3
mov eax, str._invalid_
jmp 0x404f76
mov eax, str._null_
jmp 0x404f76
test byte [0x40708c], 1
je 0x404aee
mov eax, str._null_
mov dword [esp + 0x10], eax
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 fcn.00403d30
mov eax, 1
jmp 0x404af3
mov eax, str.nologo
mov dword [esp], str._04x
and eax, 0xffff
mov dword [esp + 4], eax
call fcn.00403ab0
jmp 0x40513e
mov byte [ecx], al
inc ecx
jmp 0x404bb8
and ebx, 0xffff
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call fcn.00403ab0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.unsupported_switch__s_n
mov dword [esp + 8], 0x40a1a8
mov dword [esp + 4], 0x40708c
mov dword [esp], 0
call fcn.00403d30
mov eax, 1
jmp 0x404af3
mov eax, dword [ebp - 0x14c]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
push ecx
test byte [0x40708c], 1
jne 0x405897
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x404aee
mov word [ebp - 0x138], 0x224c
mov byte [ebp - 0x136], 0x22
lea eax, [ebp - 0x136]
lea edx, [eax + 1]
jmp 0x405060
mov word [ecx], 0x745c
add ecx, 2
jmp 0x404ed8
mov word [ecx], 0x725c
add ecx, 2
jmp 0x404ed8
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x40575d
mov edi, eax
mov byte [ecx], 0x5c
shr di, 0xc
add ecx, 5
and edi, 0xffff
mov bl, byte [edi + str.0123456789abcdefset_host_properties]
mov edi, eax
shr di, 8
mov byte [ecx - 4], bl
and edi, 0xf
mov bl, byte [edi + str.0123456789abcdefset_host_properties]
mov edi, eax
shr di, 4
and eax, 0xf
and edi, 0xf
mov byte [ecx - 3], bl
mov al, byte [eax + str.0123456789abcdefset_host_properties]
mov bl, byte [edi + str.0123456789abcdefset_host_properties]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x404ed8
mov word [ecx], 0x225c
add ecx, 2
jmp 0x404ed8
mov eax, str._invalid_
jmp 0x40513e
mov byte [ecx], 0x22
test eax, eax
jle 0x405846
lea eax, [ecx + 4]
mov word [ecx + 1], 0x2e2e
mov byte [ecx + 3], 0x2e
mov byte [eax], 0
lea eax, [ebp - 0x138]
mov dword [esp], eax
call fcn.00406210
jmp 0x405629
mov byte [ecx], al
inc ecx
jmp 0x404ed8
mov dword [esp], eax
call dword [edx + 8]
push eax
test byte [0x40708c], 1
je 0x40556f
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 fcn.00403d30
jmp 0x40556f
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x4058c0
mov edi, eax
mov byte [ecx], 0x5c
shr di, 0xc
add ecx, 5
and edi, 0xffff
mov bl, byte [edi + str.0123456789abcdefset_host_properties]
mov edi, eax
shr di, 8
mov byte [ecx - 4], bl
and edi, 0xf
mov bl, byte [edi + str.0123456789abcdefset_host_properties]
mov edi, eax
shr di, 4
and eax, 0xf
and edi, 0xf
mov byte [ecx - 3], bl
mov al, byte [eax + str.0123456789abcdefset_host_properties]
mov bl, byte [edi + str.0123456789abcdefset_host_properties]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x404d20
mov word [ecx], 0x225c
add ecx, 2
jmp 0x404d20
mov word [ecx], 0x725c
add ecx, 2
jmp 0x404d20
mov word [ecx], 0x745c
add ecx, 2
jmp 0x404d20
mov eax, str._invalid_
jmp 0x405629
mov word [ebp - 0x138], 0x224c
mov byte [ebp - 0x136], 0x22
lea ecx, [ebp - 0x136]
lea eax, [ecx + 1]
jmp 0x405747
mov byte [ecx], 0x22
test eax, eax
jle 0x4058e8
lea eax, [ecx + 4]
mov word [ecx + 1], 0x2e2e
mov byte [ecx + 3], 0x2e
mov byte [eax], 0
lea eax, [ebp - 0x138]
mov dword [esp], eax
call fcn.00406210
jmp 0x4055ba
and ebx, 0xffff
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call fcn.00403ab0
jmp 0x4055ba
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 fcn.00403d30
jmp 0x405677
mov byte [ecx], al
inc ecx
jmp 0x404d20
mov eax, str._invalid_
jmp 0x4055ba
mov word [ebp - 0x138], 0x224c
mov byte [ebp - 0x136], 0x22
lea ecx, [ebp - 0x136]
lea eax, [ecx + 1]
jmp 0x405866
test byte [0x40708c], 1
je 0x405558
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 fcn.00403d30
jmp 0x405558
test byte [0x40708c], 1
je 0x405558
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 fcn.00403d30
jmp 0x405558
test byte [0x40708c], 1
je 0x405558
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 fcn.00403d30
jmp 0x405558