Function at 0x4010a0
Capabilities:
Accept command line arguments
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
xor ebp, ebp
push eax
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpW]
or esi, 0xffffffff
cmp dword [esp + 0x10], 3
mov edi, eax
jl 0x4010e5
mov ecx, dword [edi + 4]
push str._runtime
push ecx
call ebx
test eax, eax
jne 0x4010e5
mov esi, 2
cmp dword [esp + 0x10], 5
jl 0x401100
mov edx, dword [edi + 0xc]
push str._runtime
push edx
call ebx
test eax, eax
jne 0x401100
mov esi, 4
test byte [esp + 0x6c], 1
je 0x401218
cmp esi, 0xffffffff
je 0x401218
mov ebx, dword [edi + esi*4]
xor edi, edi
cmp word [ebx], di
je 0x401129
mov edi, edi
add edi, 1
cmp word [ebx + edi*2], bp
jne 0x401120
cmp word [str.Adobe_AIRVersions1.0Adobe_AIR.dll], bp
je 0x401140
add ebp, 1
cmp word [ebp*2 + str.Adobe_AIRVersions1.0Adobe_AIR.dll], 0
jne 0x401132
lea eax, [edi + ebp]
lea ecx, [eax + eax + 2]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
test edi, edi
mov esi, eax
jbe 0x401174
mov edx, ebx
sub edx, esi
mov ecx, edi
mov bx, word [edx + eax]
mov word [eax], bx
add eax, 2
sub edi, 1
jne 0x401165
xor eax, eax
test ebp, ebp
jbe 0x401196
lea ebx, [ebx]
mov dx, word [eax*2 + str.Adobe_AIRVersions1.0Adobe_AIR.dll]
mov word [esi + ecx*2], dx
add eax, 1
add ecx, 1
cmp eax, ebp
jb 0x401180
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov word [esi + ecx*2], 0
call ebx
cmp eax, 0xffffffff
jne 0x4011c7
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x54
ret
test esi, esi
je 0x40121e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov ebx, dword [esp + 0x74]
mov dword [ebx], eax
je 0x401374
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x68]
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [esp + 0x70]
mov dword [edx], eax
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 0xfffffffc
pop ebp
add eax, 4
pop ebx
add esp, 0x54
ret
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test byte [esp + 0x6c], 2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
je 0x40127c
push 0x20a
push 0
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call ebp
push 0
push str.Adobe_AIRVersions1.0Adobe_AIR.dll
mov esi, eax
push 0x105
push esi
call section..text
add esp, 0x10
test al, al
je 0x401374
push esi
call ebx
cmp eax, 0xffffffff
jne 0x401272
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x401282
test esi, esi
jne 0x4011d1
jmp 0x401282
mov ebp, dword [sym.imp.KERNEL32.dll_HeapAlloc]
test byte [esp + 0x6c], 4
je 0x4012f7
push 0x20a
push 0
call edi
push eax
call ebp
push 1
push str.runtimeAdobe_AIRVersions1.0Adobe_AIR.dll
mov esi, eax
push 0x105
push esi
call section..text
add esp, 0x10
test al, al
je 0x401374
push esi
call ebx
cmp eax, 0xffffffff
jne 0x4012ef
push 1
push str.runtimes_airwinAdobe_AIRVersions1.0Adobe_AIR.dll
push 0x105
push esi
call section..text
add esp, 0x10
test al, al
je 0x401374
push esi
call ebx
cmp eax, 0xffffffff
jne 0x4012ef
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4012f7
test esi, esi
jne 0x4011d1
test byte [esp + 0x6c], 8
je 0x4011ba
lea eax, [esp + 0x14]
push eax
push 0
push 0
push str.8DA920D5_C41C_42E0_BF31_87BA49984EE4
call sub.msi.dll_MsiSourceListClearAllW
test eax, eax
jne 0x4011ba
lea ecx, [esp + 0x6c]
push ecx
push eax
push str.701D2A09_14BE_45F8_9233_1CE0ED0023A9
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x7c], eax
call sub.msi.dll_MsiAdvertiseScriptW
mov eax, dword [esp + 0x6c]
add eax, 1
mov dword [esp + 0x6c], eax
add eax, eax
push eax
push 0
call edi
push eax
call ebp
mov esi, eax
test esi, esi
je 0x401374
lea ecx, [esp + 0x6c]
push ecx
push esi
push str.701D2A09_14BE_45F8_9233_1CE0ED0023A9
lea edx, [esp + 0x20]
push edx
call sub.msi.dll_MsiAdvertiseScriptW
cmp eax, 3
jl 0x401374
cmp eax, 4
jle 0x4011d1
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x54
ret