Function at 0x415cb0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x443c97
push eax
mov dword fs:[0], esp
sub esp, 0x22c
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x415cef
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x3b0
call fcn.00422f9a
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x415d23
mov ecx, eax
call fcn.00401be0
mov ecx, eax
jmp 0x415d25
xor ecx, ecx
mov eax, dword [ebp + 8]
mov dword [ecx + 0x320], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
mov dword [0x457bd8], ecx
test eax, eax
je 0x415d48
push eax
call fcn.00402130
movzx eax, byte [0x4560a0]
xor ecx, ecx
sub al, 0x30
mov dword [0x457be0], 0x280
push ebx
xor ebx, ebx
mov dword [0x457be4], 0x1e0
push esi
push edi
xor edi, edi
mov dword [0x457be8], ebx
cmp al, byte [0x456098]
movzx eax, byte [0x4560a1]
sete cl
mov dword [0x457bec], ebx
sub al, 0x30
cmp al, byte [0x456099]
movzx eax, byte [0x4560a2]
lea edx, [ecx + 1]
cmovne edx, ecx
sub al, 0x30
cmp al, byte [0x45609a]
movzx eax, byte [0x4560a3]
lea ecx, [edx + 1]
cmovne ecx, edx
sub al, 0x30
cmp al, byte [0x45609b]
movzx eax, byte [0x4560a4]
lea edx, [ecx + 1]
cmovne edx, ecx
sub al, 0x30
cmp al, byte [0x45609c]
movzx eax, byte [0x4560a5]
lea ecx, [edx + 1]
cmovne ecx, edx
sub al, 0x30
cmp al, byte [0x45609d]
movzx eax, byte [0x4560a6]
lea edx, [ecx + 1]
cmovne edx, ecx
sub al, 0x30
cmp al, byte [0x45609e]
movzx eax, byte [0x4560a7]
lea esi, [edx + 1]
cmovne esi, edx
sub al, 0x30
cmp al, byte [0x45609f]
lea ecx, [esi + 1]
cmovne ecx, esi
lea esi, [edi + 2]
test ecx, ecx
jne 0x415e8a
push str.288256
call fcn.0042961b
mov ecx, dword [0x457bec]
add esp, 4
cmp byte [0x4560b1], 0x73
lea edi, [eax + 0x10000]
cmove ecx, esi
movsx eax, word [0x4560b7]
push dword [0x4560c0]
mov dword [0x457be4], eax
movsx eax, word [0x4560ba]
mov dword [0x457bec], ecx
movsx ecx, word [0x4560b4]
mov dword [0x457be8], eax
movzx eax, word [0x4560bd]
mov dword [0x457be0], ecx
mov ecx, dword [0x457bd8]
push eax
call fcn.00402150
mov ebx, dword [0x457be8]
test bl, 2
jne 0x415ec7
push 0x104
lea eax, [ebp - 0x130]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x20
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.00422cc0
lea eax, [ebp - 0x238]
push eax
call fcn.00422980
add esp, 0x10
mov ecx, dword [0x457bd8]
push edi
call fcn.00401d70
test eax, eax
je 0x415f21
push 0x30
push 0x4447a0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push str.Startup_failed.
call fcn.00422970
add esp, 8
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [ebp - 0x10]
push eax
call fcn.00422a90
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp dword [0x457bec], 0
mov eax, dword [0x457bd8]
mov dword [0x457bdc], eax
je 0x416000
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.00422e20
mov esi, eax
mov dword [0x457bf0], 0x1e
movsx ecx, byte [esi + 1]
push ecx
call fcn.00428987
add esp, 8
mov bl, al
push 0
push str.oniwndp
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x415f86
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp bl, 0x70
jne 0x415fd3
lea eax, [esi + 3]
push eax
call fcn.0042961b
add esp, 4
mov esi, eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x20]
mov eax, dword [0x457bdc]
mov dword [0x457be0], ecx
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x1c]
mov dword [0x457be4], ecx
mov dword [0x457be8], 0x100
mov dword [eax + 0x358], esi
jmp 0x415ff2
cmp bl, 0x73
jne 0x415fed
push 0
call dword [sym.imp.USER32.dll_ShowCursor]
mov ecx, dword [0x457bec]
mov eax, dword [0x457bdc]
jmp 0x415ffa
mov eax, dword [0x457bdc]
xor ecx, ecx
mov dword [0x457bec], ecx
or dword [eax + 0x30c], ecx
push 0x4168d0
push 6
mov dword [eax + 0x354], fcn.004160d0
call fcn.0040a920
push 0x417650
push 7
call fcn.0040a920
mov eax, dword [0x457bdc]
add esp, 0x10
mov dword [0x4560c8], 0xffffffff
mov eax, dword [eax]
test dword [eax + 0x58], 0x2000
jne 0x41605e
push 8
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.WINMM.dll_timeGetDevCaps]
test eax, eax
jne 0x41605e
mov eax, dword [ebp - 0x28]
push eax
mov dword [0x4560c8], eax
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
push 0x10
call fcn.00405e30
push eax
call fcn.004125e0
push 0x11
call fcn.00405e30
push eax
call fcn.00412770
add esp, 0x10
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [0x457be8]
push dword [0x457be4]
push dword [0x457be0]
push 9
call fcn.00405e30
add esp, 4
push eax
call fcn.00415180
push 0xa
call fcn.00405e30
push eax
call fcn.00415360
mov ecx, dword [ebp - 0xc]
add esp, 0x20
xor eax, eax
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret