Function at 0x401110
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xf8
mov eax, dword [0x404004]
xor eax, esp
mov dword [esp + 0xf4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x14], esi
mov dword [esp + 8], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x403188
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x401189
push str.LoadIconMetric
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x401189
lea eax, [esp + 0xc]
push eax
push 1
push 0x65
push esi
call edi
lea eax, [esp + 0x10]
push eax
push 0
push 0x65
push esi
call edi
mov ecx, dword [esp + 0xc]
test ecx, ecx
jne 0x4011a0
push 0x65
push esi
call dword [sym.imp.USER32.dll_LoadIconW]
mov ecx, eax
mov dword [esp + 0xc], ecx
cmp dword [esp + 0x10], 0
jne 0x4011e6
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x31
call esi
push 0x32
mov edi, eax
call esi
mov esi, dword [esp + 0x14]
mov ecx, 0x10
test edi, edi
push 0
cmovle edi, ecx
test eax, eax
cmovle eax, ecx
push eax
push edi
push 1
push 0x65
push esi
call dword [sym.imp.USER32.dll_LoadImageW]
mov ecx, dword [esp + 0xc]
test eax, eax
cmove eax, ecx
mov dword [esp + 0x10], eax
movups xmm0, xmmword [str.CoronaLabs.Corona.App.Window]
mov ax, word [0x4031e4]
mov word [esp + 0xe8], ax
xor eax, eax
movups xmmword [esp + 0xb0], xmm0
push 0x7f00
movups xmm0, xmmword [0x4031bc]
push eax
mov word [esp + 0x20], ax
movups xmmword [esp + 0xc8], xmm0
mov dword [esp + 0x54], eax
movups xmm0, xmmword [0x4031cc]
mov dword [esp + 0x28], 0x30
mov dword [esp + 0x2c], 0xb
movups xmmword [esp + 0xd8], xmm0
mov dword [esp + 0x30], 0x401000
movq xmm0, qword [0x4031dc]
movq qword [esp + 0xe8], xmm0
xorps xmm0, xmm0
movlpd qword [esp + 0x44], xmm0
movlpd qword [esp + 0x4c], xmm0
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], ecx
call dword [sym.imp.USER32.dll_LoadCursorW]
push 4
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x40], eax
lea eax, [esp + 0xb0]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x70]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
mov dword [0x40437c], edi
test edi, edi
je 0x401576
mov edx, dword [ebp + 0x14]
lea ecx, [edx - 2]
cmp ecx, 9
ja case.0x4012fb.2
movzx eax, byte [ecx + 0x40159c]
jmp dword [eax*4 + 0x401590]
push edx
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x40437c]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edi, dword [0x40437c]
lea eax, [esp + 0xa0]
xorps xmm0, xmm0
push eax
push edi
movaps xmmword [esp + 0xa8], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
xorps xmm0, xmm0
mov dword [esp + 0x7c], 0
push 0x7f00
push 0
movlpd qword [esp + 0x64], xmm0
movlpd qword [esp + 0x6c], xmm0
movlpd qword [esp + 0x74], xmm0
movlpd qword [esp + 0x7c], xmm0
mov dword [esp + 0x58], 0x30
mov dword [esp + 0x5c], 0xb
mov dword [esp + 0x60], 0x401100
call dword [sym.imp.USER32.dll_LoadCursorW]
push 4
mov dword [esp + 0x70], eax
mov dword [esp + 0x68], esi
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x7c], str.CoronaLabs.Corona.RenderSurface
call dword [sym.imp.USER32.dll_RegisterClassExW]
mov eax, dword [esp + 0xac]
sub eax, dword [esp + 0xa4]
push 0
push esi
push 0
push dword [0x40437c]
push eax
mov eax, dword [esp + 0xbc]
sub eax, dword [esp + 0xb4]
push eax
push 0
push 0
push 0x56010000
push 0
push dword [esp + 0xa0]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x404380], eax
test eax, eax
je 0x401576
push eax
call dword [sym.imp.USER32.dll_SetFocus]
call dword [sym.imp.CoronaLabs.Corona.Native.dll_CoronaWin32LaunchSettingsNewRef]
mov edi, eax
call dword [sym.imp.CoronaLabs.Corona.Native.dll_CoronaWin32RuntimeNewRef]
push dword [0x40437c]
mov dword [esp + 0x18], eax
push edi
call dword [sym.imp.CoronaLabs.Corona.Native.dll_CoronaWin32LaunchSettingsSetMainWindowHandle]
push dword [0x404380]
push edi
call dword [sym.imp.CoronaLabs.Corona.Native.dll_CoronaWin32LaunchSettingsSetRenderSurfaceHandle]
mov eax, dword [esp + 0x18]
add esp, 0x10
test eax, eax
je 0x401487
cmp word [eax], 0
je 0x401487
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, eax
mov dword [esp + 0x1c], edx
test edx, edx
je 0x401487
mov ecx, dword [esp + 8]
xor esi, esi
test ecx, ecx
jle 0x401480
mov eax, dword [edx + esi*4]
test eax, eax
je 0x40147b
push eax
push edi
call dword [sym.imp.CoronaLabs.Corona.Native.dll_CoronaWin32LaunchSettingsAddLaunchArgument]
mov ecx, dword [esp + 0x10]
add esp, 8
mov edx, dword [esp + 0x1c]
inc esi
cmp esi, ecx
jl 0x401461
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push edi
call dword [sym.imp.CoronaLabs.Corona.Native.dll_CoronaWin32LaunchSettingsSetResourceDirectory]
push edi
push dword [esp + 0x20]
call dword [sym.imp.CoronaLabs.Corona.Native.dll_CoronaWin32RuntimeRun]
add esp, 0x10
test eax, eax
jne 0x4014b4
push eax
push eax
push 0x10
push dword [0x40437c]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4014d2
push dword [0x40437c]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4014d2
push 5
push dword [0x40437c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x80]
push 0
push 0
xorps xmm0, xmm0
mov dword [esp + 0xa0], 0
push 0
push eax
movaps xmmword [esp + 0x90], xmm0
movq qword [esp + 0xa0], xmm0
call esi
test eax, eax
je 0x401540
nop dword [eax + eax]
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x8c]
push eax
call esi
test eax, eax
jne 0x401510
push dword [esp + 0x14]
mov esi, dword [esp + 0x8c]
call dword [sym.imp.CoronaLabs.Corona.Native.dll_CoronaWin32RuntimeDeleteRef]
add esp, 4
push edi
call dword [sym.imp.CoronaLabs.Corona.Native.dll_CoronaWin32LaunchSettingsDeleteRef]
add esp, 4
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0xf4]
xor ecx, esp
call fcn.004015a6
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0xfc]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004015a6
mov esp, ebp
pop ebp
ret 0x10