Function at 0x403f70
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 [0x40608c], 8
jne 0x4041a0
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]
sub esp, 8
mov dword [ebp - 0x25c], eax
test eax, eax
je 0x40408b
mov ecx, dword [ebp - 0x254]
cmp ecx, 1
jle 0x40407e
mov eax, dword [ebp - 0x25c]
mov ebx, dword [eax + 4]
movzx edx, word [ebx]
mov eax, edx
and eax, 0xfffffffd
cmp ax, 0x2d
jne 0x404ea9
mov eax, str.nologo
mov esi, 1
shr eax, 0x10
mov dword [ebp - 0x260], eax
jmp 0x40403f
mov dword [esp + 4], 0x407e6e
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
jne 0x404054
mov eax, 0xffffffff
mov word [0x406018], ax
mov ecx, dword [ebp - 0x254]
lea eax, [esi + 1]
cmp ecx, eax
jle 0x40407e
mov ebx, dword [ebp - 0x25c]
mov ebx, dword [ebx + eax*4]
movzx edx, word [ebx]
mov edi, edx
and edi, 0xfffffffd
cmp di, 0x2d
jne 0x404310
mov esi, eax
lea edi, [ebx + 2]
cmp dx, 0x2f
jne 0x403ff5
cmp word [ebx + 2], 0x2f
jne 0x403ff5
lea edi, [ebx + 4]
jmp 0x403ff5
mov dword [esp + 4], 0x407e72
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
jne 0x4040a0
xor eax, eax
mov ecx, dword [ebp - 0x254]
mov word [0x406018], ax
lea eax, [esi + 1]
cmp ecx, eax
jg 0x404022
test byte [0x40608c], 1
jne 0x404980
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], edi
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
jne 0x404250
test byte [0x40608c], 1
je 0x404015
mov eax, dword [ebp - 0x260]
test eax, eax
je 0x404ae3
mov dword [esp + 4], 0xffffffff
mov dword [esp], str.nologo
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
je 0x404102
jmp 0x404b04
mov ecx, eax
lea eax, [ecx + 1]
cmp word [eax + eax + str.nologo], 0
jne 0x404100
mov edi, 0x224c
mov edx, 0x6e
lea eax, [ebp - 0x136]
mov word [ebp - 0x138], di
mov edi, str.nologo
jmp 0x40416b
cmp dx, 9
je 0x404c83
cmp dx, 0xa
jne 0x404c25
mov ebx, 0x6e5c
add eax, 2
mov word [eax - 2], bx
lea ebx, [ecx - 1]
test ecx, ecx
jle 0x404ca0
lea ecx, [ebp - 0x16]
cmp eax, ecx
ja 0x404ca0
movzx edx, word [edi]
mov ecx, ebx
add edi, 2
cmp dx, 0xd
je 0x404c14
jbe 0x404130
cmp dx, 0x22
je 0x404c03
cmp dx, 0x5c
jne 0x404c25
mov ebx, 0x5c5c
add eax, 2
mov word [eax - 2], bx
jmp 0x404150
test ebx, ebx
je 0x404cd0
mov eax, ebx
shr eax, 0x10
je 0x4049b0
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x4049c3
cmp word [ebx], 0
je 0x4041ea
lea esi, [esi]
add ecx, 1
cmp word [ebx + ecx*2], 0
jne 0x4041e0
mov eax, 0x224c
lea edx, [ebp - 0x136]
lea edi, [ebp - 0x16]
mov word [ebp - 0x138], ax
nop
lea esi, [ecx - 1]
test ecx, ecx
jle 0x404bd3
cmp edx, edi
ja 0x404bd3
add ebx, 2
movzx eax, word [ebx - 2]
cmp ax, 0xd
je 0x404b31
ja 0x404ac0
cmp ax, 9
je 0x404ba4
cmp ax, 0xa
jne 0x404b44
mov eax, 0x6e5c
add edx, 2
mov ecx, esi
mov word [edx - 2], ax
jmp 0x404200
test byte [0x40608c], 1
je 0x40408b
test edi, edi
je 0x404fa3
mov eax, edi
shr eax, 0x10
je 0x404d28
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x404d3b
cmp word [edi], 0
je 0x4042aa
lea esi, [esi]
add ecx, 1
cmp word [edi + ecx*2], 0
jne 0x4042a0
mov eax, 0x224c
lea ebx, [ebp - 0x136]
lea edx, [ebp - 0x16]
mov word [ebp - 0x138], ax
nop
lea esi, [ecx - 1]
cmp ebx, edx
ja 0x404e79
test ecx, ecx
jle 0x404e79
add edi, 2
movzx eax, word [edi - 2]
cmp ax, 0xd
je 0x404db6
ja 0x404d70
cmp ax, 9
je 0x404e43
cmp ax, 0xa
jne 0x404de3
mov eax, 0x6e5c
add ebx, 2
mov ecx, esi
mov word [ebx - 2], ax
jmp 0x4042c0
lea edx, [esi*4 + 8]
sub ecx, eax
add edx, dword [ebp - 0x25c]
lea eax, [ebp - 0x258]
mov dword [esp + 8], 0x4110e0
sub ecx, 1
mov dword [0x4110a4], edx
mov dword [0x4110a0], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetFullPathNameW]
sub eax, 1
sub esp, 0x10
cmp eax, 0x103
ja 0x40408b
mov eax, dword [ebp - 0x258]
mov dword [esp + 4], 0x2e
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcsrchr]
mov esi, eax
test eax, eax
je 0x404cda
lea eax, [ebp - 0x24c]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [esp], 0x80000000
mov dword [ebp - 0x25c], eax
call eax
sub esp, 0xc
test eax, eax
jne 0x404a05
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 edi, 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
sub esp, 4
test edi, edi
jne 0x404a05
test byte [0x40608c], 8
jne 0x404fdd
cmp word [ebp - 0x238], 0
lea edx, [ebp - 0x238]
je 0x404439
nop
add edx, 2
cmp word [edx], 0
jne 0x404430
xor eax, eax
mov ecx, 0x5c
jmp 0x404449
movzx ecx, word [eax + str.ScriptEngine]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404442
lea eax, [ebp - 0x24c]
mov dword [esp], 0x80000000
mov dword [esp + 8], eax
lea eax, [ebp - 0x238]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x25c]
call eax
sub esp, 0xc
test eax, eax
jne 0x404a05
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 0x404a05
test byte [0x40608c], 8
jne 0x40523b
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 0x404a05
mov dword [esp], 0
lea esi, [ebp - 0x138]
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x248]
sub esp, 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x40ea98
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 0x404e61
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x1b8]
mov ecx, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x40b7b8
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 0x404e61
mov eax, dword [ebp - 0x1b8]
lea edx, [ebp - 0x238]
mov ecx, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x40b7a8
mov dword [esp], eax
call dword [ecx]
sub esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x1b8]
js 0x404e56
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp - 0x238]
mov dword [esp + 4], esi
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 0x404ecd
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax]
mov dword [esp + 8], 0x4112e8
mov dword [esp + 4], 0x4081dc
mov dword [esp], eax
call dword [ecx + 0x18]
sub esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax]
js 0x404ec4
mov dword [esp + 8], 0x4110c0
mov dword [esp + 4], 0x4081fc
mov dword [esp], eax
call dword [ecx + 0x18]
mov esi, 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 esi, esi
js 0x404ecd
mov esi, dword [ebp - 0x25c]
mov eax, dword [esi]
mov dword [esp + 4], 0x406044
mov dword [esp], esi
call dword [eax + 0xc]
sub esp, 8
test eax, eax
js 0x404ecd
mov ecx, dword [ebp - 0x260]
mov eax, dword [ecx]
mov dword [esp], ecx
call dword [eax + 0xc]
sub esp, 4
test eax, eax
js 0x404ecd
mov eax, dword [esi]
mov dword [esp + 8], 2
mov dword [esp + 4], str.WScript
mov dword [esp], esi
call dword [eax + 0x20]
sub esp, 0xc
test eax, eax
js 0x404ecd
mov eax, dword [esi]
mov dword [esp + 8], 2
mov dword [esp + 4], 0x407e38
mov dword [esp], esi
call dword [eax + 0x20]
sub esp, 0xc
test eax, eax
js 0x404ecd
mov eax, dword [esi]
mov dword [esp + 4], 5
mov dword [esp], esi
call dword [eax + 0x14]
sub esp, 8
test eax, eax
js 0x404ecd
mov eax, dword [ebp - 0x238]
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [ebp - 0x268], eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov ebx, eax
cmp eax, 0xffffffff
je 0x40537f
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileSize]
sub esp, 8
mov dword [ebp - 0x264], eax
mov dword [esp], ebx
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], ebx
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
call ebx
sub esp, 4
cmp esi, 0xffffffff
je 0x40537f
mov dword [esp], esi
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 dword [ebp - 0x260], eax
mov dword [esp], esi
call ebx
mov esi, dword [ebp - 0x260]
sub esp, 4
test esi, esi
je 0x40537f
mov eax, dword [ebp - 0x264]
mov dword [esp + 8], esi
mov dword [esp + 0x14], 0
mov esi, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call esi
sub esp, 0x18
mov dword [ebp - 0x26c], eax
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.oleaut32.dll_SysAllocStringLen]
mov ecx, dword [ebp - 0x26c]
sub esp, 8
mov ebx, eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x264]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x260]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0
call esi
mov esi, dword [ebp - 0x260]
sub esp, 0x18
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
sub esp, 4
test ebx, ebx
je 0x40537f
mov esi, dword [ebp - 0x268]
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 0x4053fb
mov esi, dword [ebp - 0x25c]
mov eax, dword [esi]
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [eax + 0x14]
sub esp, 8
test eax, eax
js 0x4053c1
mov esi, dword [ebp - 0x25c]
mov eax, dword [esi]
mov dword [esp], esi
call dword [eax + 0x1c]
mov eax, dword [0x4112e8]
sub esp, 4
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
sub esp, 4
mov esi, dword [ebp - 0x25c]
mov eax, dword [esi]
mov dword [esp], esi
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 0x404090
mov dword [esp + 0xc], str.No_file_name_specified_n
mov edi, 1
mov dword [esp + 8], str.wWinMain
mov dword [esp + 4], 0x40608c
mov dword [esp], 0
call fcn.004038c0
jmp 0x404090
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call fcn.00403610
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov dword [esp + 0xc], str.__p__p__s__x__n
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.wWinMain
mov dword [esp + 4], 0x40608c
mov dword [esp], 3
call fcn.004038c0
jmp 0x403f8c
test byte [0x40608c], 1
je 0x40408b
mov eax, esi
shr eax, 0x10
je 0x40512d
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x404cec
cmp word [esi], 0
je 0x404a5a
lea esi, [esi]
lea esi, [esi]
add ecx, 1
cmp word [esi + ecx*2], 0
jne 0x404a50
mov eax, 0x224c
lea ebx, [ebp - 0x136]
lea edx, [ebp - 0x16]
mov word [ebp - 0x138], ax
nop
lea edi, [ecx - 1]
cmp ebx, edx
ja 0x404fad
test ecx, ecx
jle 0x404fad
add esi, 2
movzx eax, word [esi - 2]
cmp ax, 0xd
je 0x404f16
ja 0x404d8f
cmp ax, 9
je 0x404f90
cmp ax, 0xa
jne 0x404f30
mov eax, 0x6e5c
add ebx, 2
mov ecx, edi
mov word [ebx - 2], ax
jmp 0x404a70
cmp ax, 0x22
je 0x404bc0
cmp ax, 0x5c
jne 0x404b44
mov eax, 0x5c5c
add edx, 2
mov ecx, esi
mov word [edx - 2], ax
jmp 0x404200
mov dword [ebp - 0x264], str.nologo
movzx eax, word [ebp - 0x264]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.00403610
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.ignored__s_switch_n
mov dword [esp + 8], 0x4081a8
mov dword [esp + 4], 0x40608c
mov dword [esp], 0
call fcn.004038c0
jmp 0x404015
mov eax, 0x725c
add edx, 2
mov ecx, esi
mov word [edx - 2], ax
jmp 0x404200
lea ecx, [eax - 0x20]
cmp cx, 0x5e
jbe 0x404c94
mov ecx, eax
mov byte [edx], 0x5c
add edx, 5
shr cx, 0xc
movzx ecx, cx
movzx ecx, byte [ecx + str.0123456789abcdefset_host_properties]
mov byte [edx - 4], cl
mov ecx, eax
shr cx, 8
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefset_host_properties]
mov byte [edx - 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 [edx - 1], al
mov byte [edx - 2], cl
mov ecx, esi
jmp 0x404200
mov eax, 0x745c
add edx, 2
mov ecx, esi
mov word [edx - 2], ax
jmp 0x404200
mov eax, 0x225c
add edx, 2
mov ecx, esi
mov word [edx - 2], ax
jmp 0x404200
mov byte [edx], 0x22
lea eax, [edx + 1]
test esi, esi
jle 0x404bed
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 fcn.00405b00
jmp 0x4049c3
mov edx, 0x225c
add eax, 2
mov word [eax - 2], dx
jmp 0x404150
mov edx, 0x725c
add eax, 2
mov word [eax - 2], dx
jmp 0x404150
lea ebx, [edx - 0x20]
cmp bx, 0x5e
jbe 0x404d1e
mov ebx, edx
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, edx
shr bx, 8
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefset_host_properties]
mov byte [eax - 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 [eax - 1], dl
mov byte [eax - 2], bl
jmp 0x404150
mov ebx, 0x745c
add eax, 2
mov word [eax - 2], bx
jmp 0x404150
mov byte [edx], al
mov ecx, esi
add edx, 1
jmp 0x404200
mov byte [eax], 0x22
lea edx, [eax + 1]
test ebx, ebx
jle 0x404cba
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 fcn.00405b00
jmp 0x404b04
mov eax, str._null_
jmp 0x4049c3
test byte [0x40608c], 1
je 0x40408b
mov eax, str._null_
mov dword [esp + 0x10], eax
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], 0x40608c
mov dword [esp], 0
call fcn.004038c0
jmp 0x404090
mov byte [eax], dl
add eax, 1
jmp 0x404150
movzx edi, di
mov dword [esp], str._04x
mov dword [esp + 4], edi
call fcn.00403610
mov dword [esp + 0x10], eax
mov edi, 1
mov dword [esp + 0xc], str.unsupported_switch__s_n
mov dword [esp + 8], 0x4081a8
mov dword [esp + 4], 0x40608c
mov dword [esp], 0
call fcn.004038c0
jmp 0x404090
cmp ax, 0x22
je 0x404dd0
cmp ax, 0x5c
jne 0x404de3
mov ecx, 0x5c5c
add ebx, 2
mov word [ebx - 2], cx
mov ecx, esi
jmp 0x4042c0
cmp ax, 0x22
je 0x404f03
cmp ax, 0x5c
jne 0x404f30
mov ecx, 0x5c5c
add ebx, 2
mov word [ebx - 2], cx
mov ecx, edi
jmp 0x404a70
mov eax, 0x725c
add ebx, 2
mov ecx, esi
mov word [ebx - 2], ax
jmp 0x4042c0
mov eax, 0x225c
add ebx, 2
mov ecx, esi
mov word [ebx - 2], ax
jmp 0x4042c0
lea ecx, [eax - 0x20]
cmp cx, 0x5e
jbe 0x404eb8
mov ecx, eax
mov byte [ebx], 0x5c
add ebx, 5
shr cx, 0xc
movzx ecx, cx
movzx ecx, byte [ecx + str.0123456789abcdefset_host_properties]
mov byte [ebx - 4], cl
mov ecx, eax
shr cx, 8
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefset_host_properties]
mov byte [ebx - 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 [ebx - 1], al
mov byte [ebx - 2], cl
mov ecx, esi
jmp 0x4042c0
mov eax, 0x745c
add ebx, 2
mov ecx, esi
mov word [ebx - 2], ax
jmp 0x4042c0
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
test byte [0x40608c], 1
jne 0x405145
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x40408b
mov byte [ebx], 0x22
lea eax, [ebx + 1]
test esi, esi
jle 0x404e93
mov edx, 0x2e2e
mov byte [ebx + 3], 0x2e
lea eax, [ebx + 4]
mov word [ebx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x138]
mov dword [esp], eax
call fcn.00405b00
jmp 0x404d3b
mov edx, 8
mov eax, 1
jmp 0x404317
mov byte [ebx], al
mov ecx, esi
add ebx, 1
jmp 0x4042c0
mov dword [esp], eax
call dword [ecx + 8]
sub esp, 4
test byte [0x40608c], 1
je 0x404950
mov dword [esp + 0xc], str.Script_initialization_failed_n
mov dword [esp + 8], str.wWinMain
mov dword [esp + 4], 0x40608c
mov dword [esp], 0
call fcn.004038c0
jmp 0x404950
mov eax, 0x225c
add ebx, 2
mov ecx, edi
mov word [ebx - 2], ax
jmp 0x404a70
mov eax, 0x725c
add ebx, 2
mov ecx, edi
mov word [ebx - 2], ax
jmp 0x404a70
lea ecx, [eax - 0x20]
cmp cx, 0x5e
jbe 0x40516e
mov ecx, eax
mov byte [ebx], 0x5c
add ebx, 5
shr cx, 0xc
movzx ecx, cx
movzx ecx, byte [ecx + str.0123456789abcdefset_host_properties]
mov byte [ebx - 4], cl
mov ecx, eax
shr cx, 8
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefset_host_properties]
mov byte [ebx - 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 [ebx - 1], al
mov byte [ebx - 2], cl
mov ecx, edi
jmp 0x404a70
mov eax, 0x745c
add ebx, 2
mov ecx, edi
mov word [ebx - 2], ax
jmp 0x404a70
mov eax, str._null_
jmp 0x404d3b
mov byte [ebx], 0x22
lea eax, [ebx + 1]
test edi, edi
jle 0x404fc7
mov edx, 0x2e2e
mov byte [ebx + 3], 0x2e
lea eax, [ebx + 4]
mov word [ebx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x138]
mov dword [esp], eax
call fcn.00405b00
jmp 0x404cec
lea eax, [ebp - 0x238]
shr eax, 0x10
je 0x405213
lea eax, [ebp - 0x238]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edi, eax
sub esp, 8
mov eax, str._invalid_
test edi, edi
jne 0x405100
cmp word [ebp - 0x238], 0
je 0x40502d
add edi, 1
cmp word [ebp + edi*2 - 0x238], 0
jne 0x40501f
lea edx, [ebp - 0x16]
mov eax, 0x224c
mov dword [ebp - 0x270], esi
lea ecx, [ebp - 0x136]
mov dword [ebp - 0x268], edx
mov word [ebp - 0x138], ax
lea eax, [ebp - 0x238]
mov dword [ebp - 0x26c], ebx
mov ebx, eax
lea esi, [edi - 1]
cmp ecx, dword [ebp - 0x268]
ja 0x4050c6
test edi, edi
jle 0x4050c6
add ebx, 2
movzx eax, word [ebx - 2]
cmp ax, 0xd
je 0x40517a
ja 0x4050a2
cmp ax, 9
je 0x4051ed
cmp ax, 0xa
jne 0x40518d
mov eax, 0x6e5c
add ecx, 2
mov edi, esi
mov word [ecx - 2], ax
jmp 0x40505c
cmp ax, 0x22
je 0x405200
cmp ax, 0x5c
jne 0x40518d
mov eax, 0x5c5c
add ecx, 2
mov edi, esi
mov word [ecx - 2], ax
jmp 0x40505c
mov eax, esi
mov ebx, dword [ebp - 0x26c]
mov esi, dword [ebp - 0x270]
mov byte [ecx], 0x22
test eax, eax
jle 0x405435
mov edi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], di
mov byte [eax], 0
lea eax, [ebp - 0x138]
mov dword [esp], eax
call fcn.00405b00
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], 0x40608c
mov dword [esp], 3
call fcn.004038c0
jmp 0x40441f
movzx esi, si
mov dword [esp], str._04x
mov dword [esp + 4], esi
call fcn.00403610
jmp 0x404cec
mov dword [esp + 0xc], str.Could_not_create_script_engine_n
mov dword [esp + 8], str.wWinMain
mov dword [esp + 4], 0x40608c
mov dword [esp], 0
call fcn.004038c0
jmp 0x404e6e
mov byte [ebx], al
mov ecx, edi
add ebx, 1
jmp 0x404a70
mov eax, 0x725c
add ecx, 2
mov edi, esi
mov word [ecx - 2], ax
jmp 0x40505c
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x4053b5
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx edx, byte [edi + str.0123456789abcdefset_host_properties]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], dl
movzx edx, 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], dl
movzx edx, byte [edi + str.0123456789abcdefset_host_properties]
mov byte [ecx - 1], al
mov edi, esi
mov byte [ecx - 2], dl
jmp 0x40505c
mov eax, 0x745c
add ecx, 2
mov edi, esi
mov word [ecx - 2], ax
jmp 0x40505c
mov eax, 0x225c
add ecx, 2
mov edi, esi
mov word [ecx - 2], ax
jmp 0x40505c
lea eax, [ebp - 0x238]
mov dword [esp], str._04x
mov dword [ebp - 0x268], eax
movzx eax, word [ebp - 0x268]
mov dword [esp + 4], eax
call fcn.00403610
jmp 0x405100
lea eax, [ebp - 0x1b8]
shr eax, 0x10
je 0x4054ce
lea eax, [ebp - 0x1b8]
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 0x405352
cmp word [ebp - 0x1b8], 0
je 0x405289
add eax, 1
cmp word [ebp + eax*2 - 0x1b8], 0
jne 0x40527b
mov edx, 0x224c
lea ecx, [ebp - 0x136]
mov dword [ebp - 0x260], ebx
mov word [ebp - 0x138], dx
lea edx, [ebp - 0x1b8]
jmp 0x4052cf
cmp ax, 9
je 0x4054bd
cmp ax, 0xa
jne 0x40545f
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
mov eax, dword [ebp - 0x25c]
lea ebx, [eax - 1]
mov dword [ebp - 0x25c], ebx
test eax, eax
jle 0x405318
lea eax, [ebp - 0x16]
cmp ecx, eax
ja 0x405318
add edx, 2
movzx eax, word [edx - 2]
cmp ax, 0xd
je 0x40544e
jbe 0x4052a9
cmp ax, 0x22
je 0x40543d
cmp ax, 0x5c
jne 0x40545f
mov eax, 0x5c5c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4052c9
mov eax, dword [ebp - 0x25c]
mov ebx, dword [ebp - 0x260]
mov byte [ecx], 0x22
test eax, eax
jle 0x405502
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x138]
mov dword [esp], eax
call fcn.00405b00
mov edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.ProgID_is__s_n
mov dword [esp + 8], str.get_engine_clsid
mov dword [esp + 4], 0x40608c
mov dword [esp], 3
call fcn.004038c0
jmp 0x4044e8
test byte [0x40608c], 1
je 0x40492f
mov dword [esp + 0xc], str.Could_not_get_script_text_n
mov dword [esp + 8], str.run_script
mov dword [esp + 4], 0x40608c
mov dword [esp], 0
call fcn.004038c0
jmp 0x40492f
mov byte [ecx], al
mov edi, esi
add ecx, 1
jmp 0x40505c
test byte [0x40608c], 1
je 0x40492f
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], 0x40608c
mov dword [esp], 0
call fcn.004038c0
jmp 0x40492f
test byte [0x40608c], 1
je 0x40492f
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], 0x40608c
mov dword [esp], 0
call fcn.004038c0
jmp 0x40492f
lea eax, [ecx + 1]
jmp 0x4050ef
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4052c9
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4052c9
lea ebx, [eax - 0x20]
cmp bx, 0x5e
jbe 0x4054f8
mov ebx, eax
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, eax
shr bx, 8
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefset_host_properties]
mov byte [ecx - 3], bl
mov ebx, eax
and eax, 0xf
shr bx, 4
movzx eax, byte [eax + str.0123456789abcdefset_host_properties]
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefset_host_properties]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x4052c9
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4052c9
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 fcn.00403610
mov edx, eax
jmp 0x405352
mov byte [ecx], al
add ecx, 1
jmp 0x4052c9
lea eax, [ecx + 1]
jmp 0x40533f