Function at 0x416720
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43236e
push eax
mov dword fs:[0], esp
sub esp, 0x22c
push edi
push 2
xor edi, edi
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0x416766
mov eax, 1
pop edi
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
add esp, 0x238
ret
push edi
call dword [sym.imp.ole32.dll_OleInitialize]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x3b0
call fcn.00423a6e
add esp, 4
mov dword [esp + 4], eax
cmp eax, edi
mov dword [esp + 0x238], edi
je 0x416798
mov ecx, eax
call fcn.00401a50
jmp 0x41679a
xor eax, eax
mov ecx, dword [esp + 0x240]
mov dword [eax + 0x320], ecx
mov ecx, dword [esp + 0x244]
cmp ecx, edi
mov dword [esp + 0x238], 0xffffffff
mov dword [0x43e3dc], eax
je 0x4167ca
push ecx
mov ecx, eax
call fcn.00401b10
mov dl, byte [0x43c180]
mov cl, byte [0x43c178]
push esi
sub dl, 0x30
xor esi, esi
xor eax, eax
cmp dl, cl
mov dword [0x43e3d8], 0x280
mov dword [0x43e3d4], 0x1e0
mov dword [0x43e3d0], edi
mov dword [0x43e3c8], edi
jne 0x416807
mov eax, 1
mov cl, byte [0x43c181]
mov dl, byte [0x43c179]
sub cl, 0x30
cmp cl, dl
jne 0x41681b
inc eax
mov dl, byte [0x43c182]
mov cl, byte [0x43c17a]
sub dl, 0x30
cmp dl, cl
jne 0x41682f
inc eax
mov cl, byte [0x43c183]
mov dl, byte [0x43c17b]
sub cl, 0x30
cmp cl, dl
jne 0x416843
inc eax
mov dl, byte [0x43c184]
mov ecx, dword [0x43c17c]
sub dl, 0x30
cmp dl, cl
jne 0x416857
inc eax
mov dl, byte [0x43c185]
sub dl, 0x30
cmp dl, ch
jne 0x416865
inc eax
mov dl, byte [0x43c186]
mov cx, word [0x43c17e]
sub dl, 0x30
cmp dl, cl
jne 0x41687a
inc eax
mov dl, byte [0x43c187]
sub dl, 0x30
cmp dl, ch
jne 0x416888
inc eax
cmp eax, edi
jne 0x4168f3
push str.178688
call fcn.004243bc
mov esi, eax
mov al, byte [0x43c191]
add esp, 4
add esi, 0x10000
cmp al, 0x73
jne 0x4168b4
mov dword [0x43e3c8], 2
movsx eax, word [0x43c194]
movsx ecx, word [0x43c197]
movsx edx, word [0x43c19a]
mov dword [0x43e3d4], ecx
movzx ecx, word [0x43c19d]
mov dword [0x43e3d8], eax
mov eax, dword [0x43c1a0]
push eax
push ecx
mov ecx, dword [0x43e3dc]
mov dword [0x43e3d0], edx
call fcn.00401bd0
test byte [0x43e3d0], 2
jne 0x416931
push 0x104
lea edx, [esp + 0x28]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x20
lea eax, [esp + 0x130]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00422cf0
lea edx, [esp + 0x138]
push edx
call fcn.00422d10
add esp, 0x10
mov ecx, dword [0x43e3dc]
push esi
call fcn.00401da0
test eax, eax
je 0x41698f
push 0x30
push str.Error
lea eax, [esp + 0x10]
push eax
push str.Startup_failed.
mov dword [esp + 0x18], edi
call fcn.00422950
add esp, 8
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 8]
push ecx
call fcn.00422960
add esp, 4
pop esi
mov eax, 1
pop edi
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
add esp, 0x238
ret
cmp dword [0x43e3c8], edi
mov eax, dword [0x43e3dc]
push ebx
mov dword [0x43e3cc], eax
je 0x416a82
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.00422ef0
mov esi, eax
movsx edx, byte [esi + 1]
push edx
mov dword [0x43e3c4], 0x1e
call fcn.0042348d
add esp, 8
push edi
push str.oniwndp
mov bl, al
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x4169fa
pop ebx
pop esi
mov eax, 2
pop edi
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
add esp, 0x238
ret
cmp bl, 0x70
jne 0x416a50
add esi, 3
push esi
call fcn.004243bc
mov esi, eax
add esp, 4
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esp + 0x1c]
sub edx, eax
mov eax, dword [0x43e3cc]
mov dword [0x43e3d8], ecx
mov dword [0x43e3d4], edx
mov dword [0x43e3d0], 0x100
mov dword [eax + 0x358], esi
jmp 0x416a68
cmp bl, 0x73
jne 0x416a63
push edi
call dword [sym.imp.USER32.dll_ShowCursor]
mov eax, dword [0x43e3cc]
jmp 0x416a6e
mov eax, dword [0x43e3cc]
mov dword [0x43e3c8], edi
mov edx, dword [eax + 0x30c]
mov ecx, dword [0x43e3c8]
or edx, ecx
mov dword [eax + 0x30c], edx
push 0x417380
push 6
mov dword [eax + 0x354], fcn.004164d0
call fcn.0040b0d0
push 0x4181f0
push 7
call fcn.0040b0d0
mov edx, dword [0x43e3cc]
mov eax, dword [edx]
mov ecx, dword [eax + 0x58]
add esp, 0x10
test ch, 0x20
mov dword [0x43c1a8], 0xffffffff
jne 0x416ae2
push 8
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.WINMM.dll_timeGetDevCaps]
test eax, eax
jne 0x416ae2
mov eax, dword [esp + 0x20]
push eax
mov dword [0x43c1a8], eax
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
push 0x10
call fcn.00403110
push eax
call fcn.00411870
push 0x11
call fcn.00403110
push eax
call fcn.004118f0
mov edx, dword [0x43e3d0]
mov eax, dword [0x43e3d4]
mov ecx, dword [0x43e3d8]
add esp, 0x10
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
push eax
push ecx
push 9
call fcn.00403110
add esp, 4
push eax
call fcn.004161e0
push 0xa
call fcn.00403110
push eax
call fcn.00416120
mov ecx, dword [esp + 0x258]
add esp, 0x20
pop ebx
pop esi
xor eax, eax
pop edi
mov dword fs:[0], ecx
add esp, 0x238
ret