Function at 0x4129fe
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x43c82e
call fcn.0041d4e8
sub esp, 0x228
push edi
push 2
pop eax
push eax
xor edi, edi
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x412a28
xor eax, eax
inc eax
jmp 0x412d0b
push edi
call dword [sym.imp.ole32.dll_OleInitialize]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x3b0
call fcn.0041d258
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
test eax, eax
je 0x412a55
mov ecx, eax
call fcn.00401b70
mov ecx, eax
jmp 0x412a57
mov ecx, edi
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 8]
mov dword [0x450ac8], ecx
mov dword [ecx + 0x320], eax
je 0x412a78
push dword [ebp + 0xc]
call fcn.00401f91
push ebx
mov ebx, edi
mov dword [0x450ad0], 0x280
push esi
mov esi, edi
mov dword [0x450ad4], 0x1e0
mov dword [0x450ad8], ebx
mov edx, edi
mov dword [0x450adc], edi
mov al, byte [edx + 0x44f090]
lea ecx, [esi + 1]
sub al, 0x30
cmp al, byte [edx + 0x44f088]
cmovne ecx, esi
inc edx
mov esi, ecx
cmp edx, 8
jl 0x412aa0
test esi, esi
jne 0x412b30
push str.258560
call fcn.00424564
cmp byte [0x44f0a1], 0x73
pop ecx
mov ecx, dword [0x450adc]
lea esi, [eax + 0x10000]
push 2
pop eax
push dword [0x44f0b0]
cmove ecx, eax
movsx eax, word [0x44f0a7]
mov dword [0x450ad4], eax
movsx eax, word [0x44f0aa]
mov dword [0x450adc], ecx
movsx ecx, word [0x44f0a4]
mov dword [0x450ad8], eax
movzx eax, word [0x44f0ad]
mov dword [0x450ad0], ecx
mov ecx, dword [0x450ac8]
push eax
call fcn.00401fa8
mov ebx, dword [0x450ad8]
jmp 0x412b32
mov esi, edi
test bl, 2
jne 0x412b6e
push 0x104
lea eax, [ebp - 0x12c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x20
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.0041d006
lea eax, [ebp - 0x234]
push eax
call fcn.0041cd87
add esp, 0x10
mov ecx, dword [0x450ac8]
push esi
call fcn.00401ccc
test eax, eax
je 0x412b91
push str.Startup_failed.
call fcn.0041276e
xor eax, eax
pop ecx
inc eax
jmp 0x412d09
cmp dword [0x450adc], 0
mov eax, dword [0x450ac8]
mov dword [0x450acc], eax
je 0x412c5b
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.0041d17d
mov esi, eax
mov dword [0x450ae0], 0x1e
movsx ecx, byte [esi + 1]
push ecx
call fcn.0042369a
pop ecx
pop ecx
push edi
push str.oniwndp
mov bl, al
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x412be6
push 2
pop eax
jmp 0x412d09
cmp bl, 0x70
jne 0x412c31
lea eax, [esi + 3]
push eax
call fcn.00424564
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 [0x450acc]
mov dword [0x450ad0], ecx
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x20]
mov dword [0x450ad4], ecx
mov dword [0x450ad8], 0x100
mov dword [eax + 0x358], esi
jmp 0x412c4f
cmp bl, 0x73
jne 0x412c4a
push edi
call dword [sym.imp.USER32.dll_ShowCursor]
mov edi, dword [0x450adc]
mov eax, dword [0x450acc]
jmp 0x412c55
mov eax, dword [0x450acc]
mov dword [0x450adc], edi
or dword [eax + 0x30c], edi
push 0x413448
push 6
mov dword [eax + 0x354], fcn.00412d18
call fcn.004094e2
push 0x414000
push 7
call fcn.004094e2
mov eax, dword [0x450acc]
add esp, 0x10
or dword [0x44f0b8], 0xffffffff
mov eax, dword [eax]
test dword [eax + 0x58], 0x2000
jne 0x412cb6
push 8
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.WINMM.dll_timeGetDevCaps]
test eax, eax
jne 0x412cb6
mov eax, dword [ebp - 0x14]
push eax
mov dword [0x44f0b8], eax
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
push 0x10
call fcn.0040511c
push eax
call fcn.0040f943
push 0x11
call fcn.0040511c
push eax
call fcn.0040fa04
add esp, 0x10
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [0x450ad8]
push dword [0x450ad4]
push dword [0x450ad0]
push 9
call fcn.0040511c
pop ecx
push eax
call fcn.0041229e
push 0xa
call fcn.0040511c
push eax
call fcn.0041244e
add esp, 0x20
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret