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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
and dword [ebp - 8], 0
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
and dword [ebp - 4], 0
or dword [ebp - 0xc], 0xffffffff
cmp dword [ebp - 8], 3
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
mov esi, eax
mov ebx, str._runtime
jl 0x4010c8
push ebx
push dword [esi + 4]
call edi
test eax, eax
jne 0x4010c8
mov dword [ebp - 0xc], 2
cmp dword [ebp - 8], 5
jl 0x4010df
push ebx
push dword [esi + 0xc]
call edi
test eax, eax
jne 0x4010df
mov dword [ebp - 0xc], 4
test byte [ebp + 0xc], 1
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
je 0x4011fc
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
je 0x4011fc
mov eax, dword [esi + eax*4]
xor esi, esi
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edx
cmp word [eax], si
je 0x401122
inc ecx
cmp word [eax + ecx*2], si
jne 0x401118
mov dword [ebp - 0xc], ecx
cmp word [str.Adobe_AIRVersions1.0Adobe_AIR.dll], si
je 0x401139
inc edx
cmp word [edx*2 + str.Adobe_AIRVersions1.0Adobe_AIR.dll], si
jne 0x40112b
mov dword [ebp - 0x10], edx
add edx, ecx
lea eax, [edx + edx + 2]
push eax
push esi
call ebx
push eax
call edi
mov esi, eax
xor eax, eax
cmp dword [ebp - 0xc], eax
jbe 0x401172
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
sub edx, esi
mov ecx, esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], eax
jmp 0x401164
mov edx, dword [ebp - 0x14]
mov dx, word [edx + ecx]
mov word [ecx], dx
inc ecx
inc ecx
dec dword [ebp - 0xc]
jne 0x401161
xor ecx, ecx
cmp dword [ebp - 0x10], ecx
jbe 0x40118c
mov dx, word [ecx*2 + str.Adobe_AIRVersions1.0Adobe_AIR.dll]
inc ecx
mov word [esi + eax*2], dx
inc eax
cmp ecx, dword [ebp - 0x10]
jb 0x401179
xor ecx, ecx
mov word [esi + eax*2], cx
xor eax, eax
push eax
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4011d5
add eax, eax
push eax
push 0
call ebx
push eax
call edi
push 0
push eax
push dword [ebp - 0x14]
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov edx, dword [ebp - 4]
xor ecx, ecx
push esi
push ecx
mov word [edx + eax*2], cx
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4011d8
mov dword [ebp - 4], esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4011fc
push dword [ebp - 4]
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 3
pop eax
jmp 0x4013d8
cmp dword [ebp - 4], 0
jne 0x40139a
test byte [ebp + 0xc], 2
mov esi, 0x105
je 0x401263
push 0x20a
push 0
call ebx
push eax
call edi
push 0
push str.Adobe_AIRVersions1.0Adobe_AIR.dll
push esi
push eax
mov dword [ebp - 4], eax
call section..text
add esp, 0x10
test al, al
jne 0x401239
push 4
jmp 0x4011f6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401259
push dword [ebp - 4]
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 4], 0
cmp dword [ebp - 4], 0
jne 0x40139a
test byte [ebp + 0xc], 4
je 0x4012dc
push 0x20a
push 0
call ebx
push eax
call edi
push 1
push str.runtimeSDKAdobe_AIRVersions1.0Adobe_AIR.dll
push esi
push eax
mov dword [ebp - 4], eax
call section..text
add esp, 0x10
test al, al
je 0x401235
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4012d2
push 1
push str.runtimes_airwinAdobe_AIRVersions1.0Adobe_AIR.dll
push esi
push dword [ebp - 4]
call section..text
add esp, 0x10
test al, al
je 0x401235
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4012d2
push dword [ebp - 4]
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 4], 0
cmp dword [ebp - 4], 0
jne 0x40139a
test byte [ebp + 0xc], 0x10
je 0x401357
push 0x20a
push 0
call ebx
push eax
call edi
push 3
push str.runtimeSDKAdobe_AIRVersions1.0Adobe_AIR.dll
push esi
push eax
mov dword [ebp - 4], eax
call section..text
add esp, 0x10
test al, al
je 0x401235
push dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call edi
cmp eax, 0xffffffff
jne 0x401351
push 3
push str.runtimes_airwinAdobe_AIRVersions1.0Adobe_AIR.dll
push esi
push dword [ebp - 4]
call section..text
add esp, 0x10
test al, al
je 0x401235
push dword [ebp - 4]
call edi
cmp eax, 0xffffffff
jne 0x401351
push dword [ebp - 4]
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 4], 0
cmp dword [ebp - 4], 0
jne 0x40139a
test byte [ebp + 0xc], 8
je 0x4011f4
push 0xe
pop ecx
lea eax, [ebp - 4]
push 0x1c
mov esi, str.Versions1.0Adobe_AIR.dll
lea edi, [ebp - 0x4c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0040957e
pop ecx
pop ecx
test eax, eax
jne 0x401235
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [ebp - 4], 0
je 0x4011f4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [ebp + 0x14]
mov dword [esi], eax
test eax, eax
je 0x401235
push dword [ebp - 4]
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
pop edi
pop esi
pop ebx
leave
ret