Function at 0x415de0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x444512
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 0x415e1f
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.00422efa
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x415e53
mov ecx, eax
call fcn.00401bc0
mov ecx, eax
jmp 0x415e55
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 [0x458bc8], ecx
test eax, eax
je 0x415e78
push eax
call fcn.00402110
movzx eax, byte [0x4570a8]
xor ecx, ecx
sub al, 0x30
mov dword [0x458bd0], 0x280
push ebx
xor ebx, ebx
mov dword [0x458bd4], 0x1e0
push esi
push edi
xor edi, edi
mov dword [0x458bd8], ebx
cmp al, byte [0x4570a0]
movzx eax, byte [0x4570a9]
sete cl
mov dword [0x458bdc], ebx
sub al, 0x30
cmp al, byte [0x4570a1]
movzx eax, byte [0x4570aa]
lea edx, [ecx + 1]
cmovne edx, ecx
sub al, 0x30
cmp al, byte [0x4570a2]
movzx eax, byte [0x4570ab]
lea ecx, [edx + 1]
cmovne ecx, edx
sub al, 0x30
cmp al, byte [0x4570a3]
movzx eax, byte [0x4570ac]
lea edx, [ecx + 1]
cmovne edx, ecx
sub al, 0x30
cmp al, byte [0x4570a4]
movzx eax, byte [0x4570ad]
lea ecx, [edx + 1]
cmovne ecx, edx
sub al, 0x30
cmp al, byte [0x4570a5]
movzx eax, byte [0x4570ae]
lea edx, [ecx + 1]
cmovne edx, ecx
sub al, 0x30
cmp al, byte [0x4570a6]
movzx eax, byte [0x4570af]
lea esi, [edx + 1]
cmovne esi, edx
sub al, 0x30
cmp al, byte [0x4570a7]
lea ecx, [esi + 1]
cmovne ecx, esi
lea esi, [edi + 2]
test ecx, ecx
jne 0x415fba
push str.290304
call fcn.00429dbb
mov ecx, dword [0x458bdc]
add esp, 4
cmp byte [0x4570b9], 0x73
lea edi, [eax + 0x10000]
cmove ecx, esi
movsx eax, word [0x4570bf]
push dword [0x4570c8]
mov dword [0x458bd4], eax
movsx eax, word [0x4570c2]
mov dword [0x458bdc], ecx
movsx ecx, word [0x4570bc]
mov dword [0x458bd8], eax
movzx eax, word [0x4570c5]
mov dword [0x458bd0], ecx
mov ecx, dword [0x458bc8]
push eax
call fcn.00402130
mov ebx, dword [0x458bd8]
test bl, 2
jne 0x415ff7
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.00422c20
lea eax, [ebp - 0x238]
push eax
call fcn.004228e0
add esp, 0x10
mov ecx, dword [0x458bc8]
push edi
call fcn.00401d50
test eax, eax
je 0x416051
push 0x30
push 0x445750
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push str.Startup_failed.
call fcn.004228d0
add esp, 8
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [ebp - 0x10]
push eax
call fcn.004229f0
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 [0x458bdc], 0
mov eax, dword [0x458bc8]
mov dword [0x458bcc], eax
je 0x416130
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.00422d80
mov esi, eax
mov dword [0x458be0], 0x1e
movsx ecx, byte [esi + 1]
push ecx
call fcn.00429127
add esp, 8
mov bl, al
push 0
push str.oniwndp
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x4160b6
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 0x416103
lea eax, [esi + 3]
push eax
call fcn.00429dbb
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 [0x458bcc]
mov dword [0x458bd0], ecx
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x1c]
mov dword [0x458bd4], ecx
mov dword [0x458bd8], 0x100
mov dword [eax + 0x358], esi
jmp 0x416122
cmp bl, 0x73
jne 0x41611d
push 0
call dword [sym.imp.USER32.dll_ShowCursor]
mov ecx, dword [0x458bdc]
mov eax, dword [0x458bcc]
jmp 0x41612a
mov eax, dword [0x458bcc]
xor ecx, ecx
mov dword [0x458bdc], ecx
or dword [eax + 0x30c], ecx
push 0x4169f0
push 6
mov dword [eax + 0x354], fcn.00416200
call fcn.0040ab60
push 0x417730
push 7
call fcn.0040ab60
mov eax, dword [0x458bcc]
add esp, 0x10
mov dword [0x4570d0], 0xffffffff
mov eax, dword [eax]
test dword [eax + 0x58], 0x2000
jne 0x41618e
push 8
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.WINMM.dll_timeGetDevCaps]
test eax, eax
jne 0x41618e
mov eax, dword [ebp - 0x28]
push eax
mov dword [0x4570d0], eax
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
push 0x10
call fcn.004060d0
push eax
call fcn.004126d0
push 0x11
call fcn.004060d0
push eax
call fcn.00412860
add esp, 0x10
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [0x458bd8]
push dword [0x458bd4]
push dword [0x458bd0]
push 9
call fcn.004060d0
add esp, 4
push eax
call fcn.004152c0
push 0xa
call fcn.004060d0
push eax
call fcn.004154a0
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