Function at 0x412fc9
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x43ec6e
call fcn.0041dbc8
sub esp, 0x430
push edi
push 2
pop eax
push eax
xor edi, edi
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x412ff3
xor eax, eax
inc eax
jmp 0x4132d6
push edi
call dword [sym.imp.ole32.dll_OleInitialize]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x3b0
call fcn.0041d936
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
test eax, eax
je 0x413020
mov ecx, eax
call fcn.00401ba1
mov ecx, eax
jmp 0x413022
mov ecx, edi
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 8]
mov dword [0x452cc0], ecx
mov dword [ecx + 0x320], eax
je 0x413043
push dword [ebp + 0xc]
call fcn.00401fcc
push ebx
mov ebx, edi
mov dword [0x452cc8], 0x280
push esi
mov esi, edi
mov dword [0x452ccc], 0x1e0
mov dword [0x452cd0], ebx
mov edx, edi
mov dword [0x452cd4], edi
mov al, byte [edx + 0x451090]
lea ecx, [esi + 1]
sub al, 0x30
cmp al, byte [edx + 0x451088]
cmovne ecx, esi
inc edx
mov esi, ecx
cmp edx, 8
jl 0x41306b
test esi, esi
jne 0x4130fb
push str.514048
call fcn.00425bf8
cmp byte [0x4510a1], 0x73
pop ecx
mov ecx, dword [0x452cd4]
lea esi, [eax + 0x10000]
push 2
pop eax
push dword [0x4510b0]
cmove ecx, eax
movsx eax, word [0x4510a7]
mov dword [0x452ccc], eax
movsx eax, word [0x4510aa]
mov dword [0x452cd4], ecx
movsx ecx, word [0x4510a4]
mov dword [0x452cd0], eax
movzx eax, word [0x4510ad]
mov dword [0x452cc8], ecx
mov ecx, dword [0x452cc0]
push eax
call fcn.00401fe3
mov ebx, dword [0x452cd0]
jmp 0x4130fd
mov esi, edi
test bl, 2
jne 0x413139
push 0x104
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x20
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0041d4e9
lea eax, [ebp - 0x43c]
push eax
call fcn.0041d388
add esp, 0x10
mov ecx, dword [0x452cc0]
push esi
call fcn.00401cfd
test eax, eax
je 0x41315c
push str.Startup_failed.
call fcn.00412d39
xor eax, eax
pop ecx
inc eax
jmp 0x4132d4
cmp dword [0x452cd4], 0
mov eax, dword [0x452cc0]
mov dword [0x452cc4], eax
je 0x413226
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.0041d79b
mov esi, eax
mov dword [0x452cd8], 0x1e
movzx ecx, word [esi + 2]
push ecx
call fcn.00424b4a
pop ecx
pop ecx
push edi
push str.oniwndp
mov bl, al
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x4131b1
push 2
pop eax
jmp 0x4132d4
cmp bl, 0x70
jne 0x4131fc
lea eax, [esi + 6]
push eax
call fcn.00425bce
mov esi, eax
lea eax, [ebp - 0x24]
pop ecx
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
mov eax, dword [0x452cc4]
mov dword [0x452cc8], ecx
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x20]
mov dword [0x452ccc], ecx
mov dword [0x452cd0], 0x100
mov dword [eax + 0x358], esi
jmp 0x41321a
cmp bl, 0x73
jne 0x413215
push edi
call dword [sym.imp.USER32.dll_ShowCursor]
mov edi, dword [0x452cd4]
mov eax, dword [0x452cc4]
jmp 0x413220
mov eax, dword [0x452cc4]
mov dword [0x452cd4], edi
or dword [eax + 0x30c], edi
push 0x413a13
push 6
mov dword [eax + 0x354], fcn.004132e3
call fcn.0040976c
push 0x4145cb
push 7
call fcn.0040976c
mov eax, dword [0x452cc4]
add esp, 0x10
or dword [0x4510b8], 0xffffffff
mov eax, dword [eax]
test dword [eax + 0x58], 0x2000
jne 0x413281
push 8
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.WINMM.dll_timeGetDevCaps]
test eax, eax
jne 0x413281
mov eax, dword [ebp - 0x14]
push eax
mov dword [0x4510b8], eax
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
push 0x10
call fcn.00405220
push eax
call fcn.0040feab
push 0x11
call fcn.00405220
push eax
call fcn.0040ff6c
add esp, 0x10
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [0x452cd0]
push dword [0x452ccc]
push dword [0x452cc8]
push 9
call fcn.00405220
pop ecx
push eax
call fcn.00412869
push 0xa
call fcn.00405220
push eax
call fcn.00412a19
add esp, 0x20
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret